Below, on the left, is a pseudocode flowchart of our first electronic element and on the right is one of our early tests for the written code described in the flowchart:
This first code uses four electronic components: a photoresister, a seven segment display, a neopixel ring and a servo motor. This code, in practice, will cause a countdown from a neopixel ring and a seven segment display once a photoresister has been covered, causing its readings to dip below a predetermined threshold. This countdown, starting at 3 and going down to a blank display for the seven-segment display, and starting at red, then turning yellow, then green, then rainbow on the neopixel ring, will be succeeded by a servo motor moving from 0º to 135º. In the course of our RGM, the photoresistor is covered by a cascade of sticky notes and the eventual movement from the servo motor pushes a roll of tape down a ramp.
Below, on the left, is a pseudocode flowchart of our second electronic element and on the right is one of our early tests for the written code described in the flowchart:
This second code uses two electronic components: a limit switch and a servo motor. Once the limit switch has been hit, the servo motor moves from 90º to 180º, pauses for 2 seconds, then moves to 0º. In the course of our RGM, this means that once the roll of tape has hit the limit switch, the servo motor will move to knock over the book and then move in the other direction to hit a lever to release a ball.
For a more technical description of our electronic code, see the code page: