Remote Controlled IR Receiver to Switch Closure
by barnese in Circuits > Electronics
91 Views, 1 Favorites, 0 Comments
Remote Controlled IR Receiver to Switch Closure
This project allows a person to make a switch-closure happen using a remote control. This device acts as an attachment for switch-adapted toys that powers the toy for an adjustable length of time when activated via the child's communication device. This device was manufactured by request and will be used to teach children the cause and effect of pushing a button on their communication device.
Supplies
SparkFun Qwiic Single Relay
SparkFun RedBoard Qwiic
SparkFun Qwiic Adapter
IR Receiver Diode
Potentiometer
USB-C Power Cord
USB-C Wall Adapter
Aux Cable
3-D Printed Box Bottom
3-D Printed Box Top
Electrical Tape
Rubber Band
The RedBoard
The first step of this project is just setting up the RedBoard. The SparkFun Qwiic RedBoard functions similarly to an Arduino Uno but has a "Qwiic Connect" port for different attachments. For this device, I used the Qwiic connect to attach the relay to the RedBoard. To that end, the attached circuit design only shows how I setup the potentiometer and the IR receiver.
Downloads
The Code
The attached code was used for this device. (Note: The position of the potentiometer allows the individual to control how long the switch is activated for. )
Downloads
The Box
I designed a box to fit the RedBoard, the relay, the potentiometer and the IR receiver. There are two holes in the sides of the box - one for the power cable and one for the switch plug. The box was designed with holes in the lid and a platform to elevate the potentiometer and IR receiver to allow them to be accessed by the user. The platform has a cutout in the back to allow for the components to be connected to the RedBoard and to give me a way to pull the platform back. The box lid was fastened to the box via a rubber band.
Assembling
After the box was printed and the RedBoard was programmed, the RedBoard was placed in the bottom of the box with the relay and the platform was inserted halfway into the box. The potentiometer and the IR receiver were then plugged into the RedBoard and the platform was fully inserted. The potentiometer and the IR receiver were aligned with the holes in the box lid and taped down with electrical tape to keep them from moving. The box lid was then placed on top of the box and fastened down with a rubber band.