Editing Arduino Laser Cannon
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 92: | Line 92: | ||
<!-------------------------------> | <!-------------------------------> | ||
|-valign="top" | |-valign="top" | ||
− | | | + | |Go for a number of steps |
− | |... | + | |gnnn |
− | + | |go for a number of steps ( max. about 30,000 ) Direction set with d. | |
− | <!------------------------------- | + | Responds with "g starting<cr>" when rotation begins, then with "g done<cr>" when done. May be stopped early with stop command. |
+ | <!-------------------------------> | ||
|-valign="top" | |-valign="top" | ||
|Set the time delay between steps in ms ( max 255 ) | |Set the time delay between steps in ms ( max 255 ) | ||
|tnnn | |tnnn | ||
|Reports delay set. nnn = 0 to 255 | |Reports delay set. nnn = 0 to 255 | ||
− | <!------------------------------- | + | <!-------------------------------> |
|-valign="top" | |-valign="top" | ||
|Micro second delay in addition to to the ms delay. | |Micro second delay in addition to to the ms delay. | ||
|unnnn | |unnnn | ||
|Reports delay set. Ok to use values nnn = as high as 5000 us. | |Reports delay set. Ok to use values nnn = as high as 5000 us. | ||
− | <!------------------------------- | + | <!-------------------------------> |
|-valign="top" | |-valign="top" | ||
|Set the permutation of the motor wires. | |Set the permutation of the motor wires. | ||
|pn | |pn | ||
|Set the permutation, find the value that works for your motor. ( n = 0 to 5 ) Responds with the permutation set. | |Set the permutation, find the value that works for your motor. ( n = 0 to 5 ) Responds with the permutation set. | ||
− | <!------------------------------- | + | <!-------------------------------> |
|-valign="top" | |-valign="top" | ||
|Special command 1, Spin the motor in an interesting way. | |Special command 1, Spin the motor in an interesting way. | ||
|x1 | |x1 | ||
|Motor spins responds with "x special done<cr>" when it is done. May be stopped with the stop cammand. | |Motor spins responds with "x special done<cr>" when it is done. May be stopped with the stop cammand. | ||
− | <!------------------------------- | + | <!-------------------------------> |
|-valign="top" | |-valign="top" | ||
|Special command 2, Vibrate the motor first a lot then less and less to stop | |Special command 2, Vibrate the motor first a lot then less and less to stop |