Dear forum members,
At the moment I'm following a course given by Mark Rober about mechanical and electrical engineering. A big part of this course if focused on learning to program with arduino. I do have some experience with electrical engineering but am very new to arduino. But because of this course I got very excited about arduino and everything that is possible and I would like to learn a lot more about it.
Now the goal of this part of the course of Mark is to break or enforce a bad/good habit. The habit I chose is watering the plants which I always forget.
My idea was to make a weekly timer to indicate when it is time to water the plants. And also to detect if this actually gets done by registering the presence of the watering can. So the alarm should only stop after I take the watering can and especially after the watering can gets placed back after the plants have had water. This to give a positive ore negative feedback. Negative feedback to keep the alarm going until the watering can is returned. And a positive when it is back on its place.
For this project I'm using an Arduino Uno r3. For the timer I use a DS1302 RTC module which I found a nice tutorial about already. And to detect the presence of the watering can I'm still doubting to use the HC-SR04 Ultrasonic Sensor or the IR-08H obstacle avoidance sensor. For the feedback I'm gonna use the 8x8 led display.
Now the problem is that I can not find a way to detect the replacement of the watering can! I can detect when it is there and when it is not there but I want to detect the moment that it goes from absent to present.
If someone could point me in the right direction it would be a great help.