Hi! This is my first time making a project like this so bear with me. I will get right to the chase to not waste your time!
- This project can be easily modded
- COMPATIBLITY AT THE END
This project is for measuring sensitivity for people who struggle with SPD (Sensory Processing Disorder). SPD is a symptom of autism and many other neurodivergent illnesses. So if you struggle with SPD and want to also make something, this repo is for you.
- Collects data from gas, tempearature, sound and ultrasonic sensors.
- It then displays the results on a web through a local python file in your computer (
Shield.py
) - Then it will display this result on a LCD screen and a buzzer
- It usses RTOS to ensure workload is distributed
- ESP32
- Gas sensor (MQ 7 or 4)
- Temp sensor (The default code is asuming you are using TMP36 but if you are using some other kind of part number like LM35, i will tell you what to do)
- Sound sensor (I/O or analog works)
- Ultrasonic sensor (Assuming you are using HC-SR04)
Open the file SafeSense.ino
then select your board. install the library hd44780.h
. If you have a different Temp sensor, from line 72-74, replace it with the method your temperature sensor uses to find temperature- do the same for the ultra sonic sensor, just replace lines 93 to 101. Put your ssid (basically your wifi name) on line 32, and password of your wifi lon line 33.
If you are using a analog sound sensor, change line 90, with the method your sound sensor uses to calculate sound, and Change 91 to ANA
But if you are using a sound sensor which only gives ouout for largesound (no number, 0 or 1), then change line 91 to IO
Open Main.py
. on line 14 and 31, enter the Path of index.html.
Open SafeSense.desktop
Change:
- Line 3 to FULL PATH OF SafeSense.sh
- Line 4 to FULL PATH OF SafeSense folder
- LIne 5 to FULL PATH OF SafeSense.png
Now open your terminal and write the following command:
chmod +x PASTE_HERE_FULL_PATH_OF_SafeSense.desktop
mv PASTE_HERE_FULL_PATH_OF_SafeSense.desktop ~/.local/share/applications/
For linux/MACOS use the .desktop
For WIndows double click the batch file run.bat
- Adding support for I/O sound sensors
- Adding light sensors