Fitting with a number of our design elements being reused from previous projects in the class as mentioned in the Design Process module of this wiki, the electronics used were heavily based off of the joystick-controlled vehicle created for Build Exercise #1, as seen below. Note the Arduino, breadboard, and joystick orientations. Additionally, the 12V 100RPM Greartisan DC motor provided for Build Exercise #1 was also reused for our motor in designing the reusable plastic bag opener.
Figure 5.1: Joystick-controlled vehicle designed for Build Exercise #1
Repurposing the set up from Build Exercise #1 and instead adapting it to the motor positioned in the wooden frame, a new program was written for our reusable plastic bag opener, seen below:
Figure 5.2: Complete screenshot of all Arduino code used for this project. (A complete download of the .ino file containing the Arduino code can be found within the Appendix.)
Using the Arduino code, Arduino, breadboard, and joystick, the reusable plastic bag opener could be controlled manually by moving the joystick, which would rotate the motor either clockwise or counter-clockwise depending on the direction input on the joystick.