Light Button Pusher
This bot is designed to push a button when the light goes under a certain level. It is designed for a very specific problem I encounter frequently, but could be useful to you in many creative cases.
Supplies
M3x30 bolts x 3:
https://www.amazon.com/DYWISHKEY-Pieces-Stainless-Socket-Screws/dp/B07VPGQ1RZ
Mini breadboard:
https://www.amazon.com/Breadborad-Solderless-Breadboards-Distribution-Connecting/dp/B082VYXDF1/ref=sr_1_2_sspa?keywords=mini+breadboard&qid=1651112677&sr=8-2-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyMDdCSTBLWE4wTlNRJmVuY3J5cHRlZElkPUEwODQwOTczMzk5MkJUNUJFMjRDRCZlbmNyeXB0ZWRBZElkPUEwOTM3NjM1MUxSWVZFMzU0QUdKWiZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=
Photoresistor:
https://www.amazon.com/eBoot-Photoresistor-Sensitive-Resistor-Dependent/dp/B01N7V536K/ref=asc_df_B01N7V536K/?tag=hyprod-20&linkCode=df0&hvadid=242033424131&hvpos=&hvnetw=g&hvrand=5869195018920211781&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1026952&hvtargid=pla-397676869569&psc=1
10kOhm Resistor:
https://www.amazon.com/EDGELEC-Resistor-Tolerance-Resistance-Optional/dp/B07HDGX5LM/ref=sr_1_2_sspa?crid=1PH3G0DI8VWQ2&keywords=10k%2Bohm%2Bresistor&qid=1651112820&s=industrial&sprefix=10%2Bkohm%2Bresistor%2Cindustrial%2C83&sr=1-2-spons&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUFEV0RGTThBRk9EVlUmZW5jcnlwdGVkSWQ9QTA0MjM4NTdHWUszTVNQRzY0STAmZW5jcnlwdGVkQWRJZD1BMDMwNTUyMTE0VjZENlNXWkJSQzUmd2lkZ2V0TmFtZT1zcF9hdGYmYWN0aW9uPWNsaWNrUmVkaXJlY3QmZG9Ob3RMb2dDbGljaz10cnVl&th=1
Jumper Cables:
https://www.amazon.com/Elegoo-EL-CP-004-Multicolored-Breadboard-arduino/dp/B01EV70C78/ref=asc_df_B01EV70C78/?tag=hyprod-20&linkCode=df0&hvadid=222785939698&hvpos=&hvnetw=g&hvrand=13918789063711337212&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1026952&hvtargid=pla-362913641420&psc=1
360 degree Continuous rotation servo:
https://www.amazon.com/dp/B09J86CD22/ref=sspa_dk_detail_0?psc=1&pd_rd_i=B09J86CD22&pd_rd_w=JUYkW&pf_rd_p=b9951ce4-3bd8-4b04-9123-0fda35d6155e&pd_rd_wg=M3uTW&pf_rd_r=Q9VPJJP4VN6YQN5NZ9W2&pd_rd_r=120ad908-c337-4ad1-b50a-621ec3f9d822&s=toys-and-games&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyR1JXRjFBUEhBWjFCJmVuY3J5cHRlZElkPUEwNzYxNDk5M05PU1E4MzRFMU9CRyZlbmNyeXB0ZWRBZElkPUEwMTU4ODg0MkdTUUJEWUxGWjhPSSZ3aWRnZXROYW1lPXNwX2RldGFpbCZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=
Power Switch:
https://www.amazon.com/Adafruit-line-Switch-Barrel-ADA1125/dp/B00KLDPX8U
Case:
https://www.thingiverse.com/thing:4575578
Power adapter:
https://www.amazon.com/Replacement-Universal-Charger-Adaptor-Keyboard/dp/B07PLX5RGP/ref=asc_df_B07PLX5RGP/?tag=hyprod-20&linkCode=df0&hvadid=385629036881&hvpos=&hvnetw=g&hvrand=12854108650473807063&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1026952&hvtargid=pla-827870911906&psc=1&tag=&ref=&adgrpid=80170968378&hvpone=&hvptwo=&hvadid=385629036881&hvpos=&hvnetw=g&hvrand=12854108650473807063&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1026952&hvtargid=pla-827870911906
Program the Board
Attach the Arduino board to your computer and use your preferred environment to upload the attached code.
Downloads
Attach the Light Sensor
This step relies on the tutorial found here: https://arduinogetstarted.com/tutorials/arduino-light-sensor
Attach the legs of the photoresistor to jumper cables. This will let us cable it our of the case later.
Attach one end of the photoresistor the breadboard.
Attach another jumper cable on that same row connected to the 5v pin on the arduino.
Attach one 10kohm resistor to the other photoresistor leg via the breadboard.
Attach a cable to both the photoresistor and 10kohm resistor with the breadboard, then attach the other end to A1 (This is different from the attached image, be aware)
Attach one more cable between ground and the other end of the 10Kohm resistor.
Attach the Servo.
Referenced from: https://create.arduino.cc/projecthub/arcaegecengiz/how-to-use-servo-motors-with-arduino-b02bed
Use a jumper to attach the orange signal cable to D9 on the Arduino.
Use a Jumper to attach the red power cable to the power row on the breadboard (where the 5v cable is attached)
Use a jumper to attach the brown ground cable to a ground pin on the Arduino.
Attach other cables between the board and servo as necessary to reach your button.
Print the Case
Print the top and bottom parts of the case at your preferred 3d printer
Assemble the Product
Slide the Arduino board into the base and the breadboard into the slot on the lid
Close the Case
Place the case lid on top, and screw the bolts into the 3 slots. The bolts will fit tightly, and seal the top and bottom together.
Attach to the Button
Secure the servo to the wall using your favorite adhesive method. I used a small command strip. The torque of the button should be low enough that most household adhesives will hold.
Plug In.
Attach the power switch to the power adapter and the power port on the arduino.
Turn on and Run
Flip the power switch and your device should be up and running!