Editing Compass Vibro Anklet Directions
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 104: | Line 104: | ||
compass chip | compass chip | ||
| | | | ||
Arduino --- Shift Register --- pager motor connector | |||
| | | | ||
battery | battery | ||
Line 122: | Line 122: | ||
6. Connect your computer to the Arduino with a data cable (it is recommended to unplug the battery when you do so). Make sure you’ve got a data connection. Try running Hello World or a similar program to make sure you’ve got everything working. | 6. Connect your computer to the Arduino with a data cable (it is recommended to unplug the battery when you do so). Make sure you’ve got a data connection. Try running Hello World or a similar program to make sure you’ve got everything working. | ||
7. Download the code into the Arduino. | 7. Download the code into the Arduino. The code is on the wiki. (link?) You will probably need to modify the Arduino code based on what you connected on the Arduino: if you connect anything differently, change the Arduino code so that it connects to the right place. This shouldn’t be a very difficult change in the code: just change the constants to reflect where you attached each wire. | ||
8. For testing purposes, you may want to connect the shift register to LEDs and try moving around with the breadboard. Each LED in turn should light up as you turn around. Note that the light will go off if you hold it in one place for a while. This is intentional: when the motors are vibrating against your ankle, they can get very annoying and itchy if they run all the time! | 8. For testing purposes, you may want to connect the shift register to LEDs and try moving around with the breadboard. Each LED in turn should light up as you turn around. Note that the light will go off if you hold it in one place for a while. This is intentional: when the motors are vibrating against your ankle, they can get very annoying and itchy if they run all the time! |