Just bought some components for Arduino. The plan is to set up a sensor to ensure that the bathroom door remains open. We keep our cats' litter box in there so we don't want the door to be closed for too long.
Comments
Log in with your Bluesky account to leave a comment
I can't believe that I just have a requirement, which is opposite to yours: keep the basement door closed so our newly adopted cat, Yantar, cannot hide there.
So, what is the solution? A sensor and a buzzer!
The most of time I spent was CAD'ing the case. Code copy-and-paste from Gemini 🤔.
Ok, for the record: I had to modify and fix Gemini-generated code in the end.
Does it mean that using LLM did not make sense? Absolutely no! It would have taken me a couple of hours to have the code I got after 5 minutes, including project creation.
Power Arduino via USB-charger 110V or battery(needs recharging). Arduino powers the sensor (Ard always powered use low power). If you want Ard near main plug run cable to Reed, if not, run 5V to door. Reduce cabling with wireless reed switch (battery last longer), Ard gets the signal via wifi/BT.
That was what I chose too. You should do a prototype! Don't forget the pulldown/pullup resistor (or enable internal to arduino) and maybe add a little debounce once you have it working.
Do you have a breadboard? Once you have that, jumper wires, and a few "jellybean" components (common sizes of resistors, caps, transistors) you should be very productive.
Comments
So, what is the solution? A sensor and a buzzer!
The most of time I spent was CAD'ing the case. Code copy-and-paste from Gemini 🤔.
Does it mean that using LLM did not make sense? Absolutely no! It would have taken me a couple of hours to have the code I got after 5 minutes, including project creation.