hi guys, im currently working on my project called Integrated Pomodoro Desk Lamp…where it is designed to help user to make use of their study time efficiently.
here are the list of project’s components.
- HC-05 Bluetooth
- SR-04 Ultrasonic Sensor
- 5v relay
- Arduino Uno
- Desk lamp.
the purpose of the ultrasonic in this circuit is to act as a switch to turn on the hc-05 bluetooth whenever the ultrasonic input are high(the sensor detect presence). i’ve already made a transistor as the bluetooth switch from 2N2222. The entire circuit are designed to measure the duration of the user to be present in front of the desk lamp, which will be measured in the application, made from Blynk App. the only thing is now my programming.
somehow, my whole program made my ic to bypass my ultrasonic sensor. the idea is to must first present in front of the sensor. if the ultrasonic sensor is on high, it will then proceed to switch on the bluetooth and launch Blynk. however, with my current programmed sketch, it will always make my ultrasonic on HIGH and proceed to bluetooth and blynk.
IPDL_MK_10.ino (1.41 KB)