Reload Mechanism

Note

This page is a work in progress.

Below are the instructions to add an automatic reload mechanism to the CyberRunner robot. The reload mechanism uses a light sensor to detect when the marble is ready to be reset to the beginning. A solenoid then launches the ball through a tube path back to the start.

Tools

  • Toolkit with Allen wrenches and screwdrivers
  • Soldering iron
  • Wire clippers and strippers
  • Hot glue gun
  • Heat gun or hair dryer
  • Pliers

List of Purchased Components

List of 3D-Printed Components

Building the Reload Mechanism

  1. Remove the marble tray. marble_tray

  2. Install the legs on each corner of the labyrinth.

  3. Start assembling the new marble tray, which houses the LED, light sensor, and solenoid. Begin with the light sensor and LED wiring.

    • Solder the pins onto the light sensor PCB facing away from the light sensor. (Note: This is opposite to the direction shown in the photo)
    • Solder a 330 Ohm resistor to a (shortened) power lead of the white LED. Solder the other end of the resistor to a female jumper cable. This will connect to the light sensor PCB for power.
    • Create a grounding cable that splits from the (shortened) ground lead of the LED to two female jumper cables. These cables will connect to ground pins on the light sensor PCB and the Arduino. light_sensor

  4. Insert the LED into the designated hole in the printed marble tray. Bend its wires carefully along the corridor so they do not touch each other. Hot glue the wires and the LED in place.

  5. Insert the light sensor into its designated spot on the printed marble tray opposite the LED. Install the sensor cover (Part 2).

  6. Put the printed cap on the solenoid piston. Attach the solenoid to the printed marble tray using four M3x12 bolts. Ensure the piston faces inward to launch the marble.

  7. Secure the reload mechanism assembly to the labyrinth with two M3x8 bolts in the lower right holes of the connection points.

  8. Assemble the marble return corridor using the numbered parts:

    • Press-fit Part 3 into the printed marble tray and secure it to the labyrinth with one 3Mx8 bolt. Attach Part 4 to Part 3.
    • Connect Parts 4 and 5 using Part 6, securing it to the top of the labyrinth with two 3Mx8 bolts.
    • Press-fit Part 7 to Part 5. Connect Part 7 and Part 8 with Part 9. Secure Part 9 to the top of the labyrinth with two 3Mx8 bolts.
    • Attach the end mount to Part 8 and secure it above the maze start with two 3Mx8 bolts. reload_corridor

  9. Connect the cables for the light sensor, solenoid, Arduino, and relay according to the wiring diagram. Optionally, connect the solenoid and relay to the 24V power supply using a barrel jack connector in the electronics housing. reload_wiring

  10. Secure the relay in the electronics housing with M2x16 bolts and nuts. Press-fit the Arduino in the leg features. housing_layout

  11. Attach the housing to the labyrinth with two M3x12 bolts.

Configuring the Electronics

  1. Plug in the Arduino to your PC and upload this script to the Arduino Nano. Ensure that the BH1750 library is installed.

  2. If the Arduino is powered, you should hear the relay respond when the LED is blocked by the marble. Power the solenoid with the 24V power supply to engage the reload feature!