Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Sensor I made for my needs. Does presence detection using HC-SR04 sonar and temperature/humidity using DHT.

License

Notifications You must be signed in to change notification settings

bennydiamond/UnoAtelierSensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNO MQTT Presence & Temperature/Humidity sensor

This project is now archived. I moved home and no longer require this thing.

Arduino sketch that interface HC-SR04 ping sensor and AM2301 temperature.humidity sensor.

This code is to be used with an ATMEGA328p Uno board and a ENC28J60 Ethernet PHY device. A couple of standard libraries are included in project as they were modified for this project.

Specifics

Due to memory constraints of the ATMEGA328p, UIPEthernet lib have slightly modified compilation properties. For UIPEthernet:

  • UDP is disabled
  • ARP table hold max 4 entries
  • Reduced max open ports to 3
  • Reduced max TCP connections to 3
  • Reduced TCP packets buffer size to 4

Note: ENC28J60 was used because it was the only part I had on hand. RunningMedian library has been templated and simplified (for my needs) to hold uint8_t values rather than float.

Build setup

To be compiled using PlatformIO.

Hardware

ENC28J60 and UIPEthernet library requires usage of the ATMEAG328p SPI bus. Ping and DHT sensors only require digital IOs.

About

Sensor I made for my needs. Does presence detection using HC-SR04 sonar and temperature/humidity using DHT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published