Pen Clicker
This device clicks and unclicks a pen when placed in its base. It is done to highlight fidget behaviors
Git Repository here
Supplies
- Metro Mini
- IR LED
- IR Reciever
- Servo Motor
- Solder Board
- Soldering equipment
- Breadboard (optional- for testing/prototyping)
- 3 pieces of scrap wood
Circuit
(The two loose wires at the top are to attach the motor to power and ground)
- Connect 5V power from the Arduino to the power bus
- Connect the GRND of the Arduino to the Ground bus
- For the IR LED
- Connect the power bus with a 36ohm resistor to a row.
- Connect the anode leg of the IR LED to this row and the Cathode leg to a different row
- Connect this other row to the ground bus
- For the IR Sensor
- connect the power bus with a 100ohm resistor to a row
- Connect the anode leg of the IR sensor to this row and the cathode leg to a seperate row
- On the same row as the resistor and anode leg wire a connection to Anolog pin 0 of the Arduino
- For the motor
- Connect the motor power to the power bus
- Connect the motor ground to the ground bus
- Connect the control wire of the motor to digital pin
- Test Code for each component can be found at fidgetLabGit/fidgetLabGit/fidgetlab/clicker/TestCode or below
3D Print
- Download 3D model
- Print 3D model
Downloads
Soldering
- Wire Power from the 5V of the metro mini to three separate headers
- Solder the power to two of the headers using a 36ohm resistor and a 100ohm resistor.
- The 36 ohm resistor is for the IR LED
- The 100 ohm resistor is for the sensor
- The header without a resistor is for the motor
- Now connect three headers to ground
- The IR LED, Sensor, and the motor are connected to these headers
- For the motor “control” wire, connect a header to digital pin 8
- On the same connection as the 100 ohm resistor and header to power the IR sensor, connect a wire to A0.
Assembly
- Using three pieces of scrap wood, place two pieces standing up facing each other, then place the third (also standing up) in between the two.
- Cut to same height, and screw together to secure
- Using the excess wood, build a base inside the cavity created by the wood.
- Drill a hole into this base, to hold the pen
- Secure the motor on top using duct tape.
- Drill two holes in the back wall of the wood to allow for the LED and Sensor atop the base
References
- IR Sensor setup
- Arduino servo motor documentation