Pen Clicker

by rpsche26 in Circuits > Arduino

16 Views, 0 Favorites, 0 Comments

Pen Clicker

5C9E359D-1DE8-4335-B3EC-D39F0EFABE2B.jpeg

This device clicks and unclicks a pen when placed in its base. It is done to highlight fidget behaviors

Git Repository here

Supplies

  1. Metro Mini
  2. IR LED
  3. IR Reciever
  4. Servo Motor
  5. Solder Board
  6. Soldering equipment
  7. Breadboard (optional- for testing/prototyping)
  8. 3 pieces of scrap wood

Circuit

circuit (9).png
D2B0C38A-98FA-4835-989C-99F45C147665_1_105_c.jpeg
C50E39A7-B1E6-4F08-8B01-24E8A194EB69_1_102_o.jpeg

(The two loose wires at the top are to attach the motor to power and ground)

  1. Connect 5V power from the Arduino to the power bus
  2. Connect the GRND of the Arduino to the Ground bus
  3. For the IR LED
  4. Connect the power bus with a 36ohm resistor to a row.
  5. Connect the anode leg of the IR LED to this row and the Cathode leg to a different row
  6. Connect this other row to the ground bus
  7. For the IR Sensor
  8. connect the power bus with a 100ohm resistor to a row
  9. Connect the anode leg of the IR sensor to this row and the cathode leg to a seperate row
  10. On the same row as the resistor and anode leg wire a connection to Anolog pin 0 of the Arduino
  11. For the motor
  12. Connect the motor power to the power bus
  13. Connect the motor ground to the ground bus
  14. Connect the control wire of the motor to digital pin
  15. Test Code for each component can be found at fidgetLabGit/fidgetLabGit/fidgetlab/clicker/TestCode or below

3D Print

3d1.jpg
3d2.jpg
3d3.jpg
3d4.png
3d5.png
3d6.png
  1. Download 3D model
  2. Print 3D model

Soldering

F69QIICMO7G0HMY.png
IMG_6142.jpeg
IMG_6140.jpeg
IMG_6140.jpeg
IMG_6142.jpeg
IMG_6140.jpeg
IMG_6138.jpeg
  1. Wire Power from the 5V of the metro mini to three separate headers
  2. Solder the power to two of the headers using a 36ohm resistor and a 100ohm resistor.
  3. The 36 ohm resistor is for the IR LED
  4. The 100 ohm resistor is for the sensor
  5. The header without a resistor is for the motor
  6. Now connect three headers to ground
  7. The IR LED, Sensor, and the motor are connected to these headers
  8. For the motor “control” wire, connect a header to digital pin 8
  9. On the same connection as the 100 ohm resistor and header to power the IR sensor, connect a wire to A0.

Assembly

IMG_6086.jpeg
IMG_6109.jpeg
IMG_6108.jpeg
  1. 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.
  2. Cut to same height, and screw together to secure
  3. Using the excess wood, build a base inside the cavity created by the wood.
  4. Drill a hole into this base, to hold the pen
  5. Secure the motor on top using duct tape.
  6. Drill two holes in the back wall of the wood to allow for the LED and Sensor atop the base


References

  1. IR Sensor setup
  2. Arduino servo motor documentation