Be sure to install and set up the Drivers and Arduino IDE so that you can easily program your Hack-E-Bot.
- Be sure that the Hack-E-Bot’s power switch on the bottom is set to OFF before programming it.
- Open the Arduino IDE, then copy and paste the code from this GitHub page in to the window.
- From the Arduino IDE, under Tools->Board, select Adafruit Trinket 8MHz.
- Then, select USBtinyISP from the Tools->Programmer sub-menu.
- Plug in the Trinket using the USB cable and make sure you see the green LED lit (power good) and the red LED pulsing.
- Click the Upload button (or select File->Upload)
- If everything goes smoothly you should see the following (no red error messages) and of course, the red LED on the trinket will blink on/off once a second.
- If the program fails to upload, click the Upload button again, then quickly press the small Reset button on the Trinket. This should get the red LED to blink slowly meaning that the robot is waiting for the program.
You can now unplug the Hack-E-Bot. Once you turn the power switch to ON from the bottom of your robot, it will start your program.
To change your program, edit the text in the Arduino IDE to tweak the settings for your robot. Be sure that the power switch for your robot is set to OFF, then plug in your robot into the computer and Click the Upload button.
Now have fun and experiment with the settings for your robot. Set up a maze and see if you can get your robot all the way through it.