Editing Hack Notes CVA 090326
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 19: | Line 19: | ||
=The Code= | =The Code= | ||
*Rewrite the code to activate motors directionally rather than the previous pulsing scheme. We'll start by dividing the circle into eight zones, four of which cause only one motor to vibrate, and the other four defined by an overlap which causes two motors to vibrate. If it's possible to detect that two adjacent ones are on rather than just one on, this could give us a resolution of 8 using just four pager motors: | *Rewrite the code to activate motors directionally rather than the previous pulsing scheme. We'll start by dividing the circle into eight zones, four of which cause only one motor to vibrate, and the other four defined by an overlap which causes two motors to vibrate. If it's possible to detect that two adjacent ones are on rather than just one on, this could give us a resolution of 8 using just four pager motors: | ||
{|- | {|- | ||
! Motor | ! Motor | ||
! Range (in degrees, 0=North) | ! Range (in degrees, 0=North) | ||
Line 38: | Line 38: | ||
*OK, we got that working, but let's try without overlapping: | *OK, we got that working, but let's try without overlapping: | ||
{|- | {|- | ||
! Motor # | ! Motor # | ||
! Range (in degrees, 0=North) | ! Range (in degrees, 0=North) |