Jump to content

Photo

Refurbishing steering wheel controller with new electronics?


76 replies to this topic

#76 BigO OFFLINE  

BigO

    River Patroller

  • 4,381 posts
  • Location:Phoenix, AZ

Posted Wed Feb 21, 2018 6:09 AM

True enough, as long as no steps/pulses are ever missed being read from the encoder. The software itself would have to track the absolute position as the typical two bit incremental encoder has no such absolute position capability. When you restrict the encoder's motion to a finite range (vs. continuous rotation), one missed state change from the encoder would create a mismatch between the calculated/assumed position and the physical/actual position of the pedal.  

 

One way to combat that issue would be to use an encoder with a zero pulse to reset the sync to a known position. This could be implemented as a switch at zero/no throttle position. Either scheme would require another bit of input in some form or other.

 

Rather than a full blown rotary encoder, one might consider a form of absolute position encoding with the same two bits of resolution. This would give the throttle pedal four distinct output patterns: one for idle and three more e.g. low, medium, high positions. Not ideal, but better than an on/off throttle. This type of arrangement could be polled at will as you would only have to detect current state rather than change of state. This could be implemented with mechanical switches of some flavor. In this configuration, if you go with three bits you get eight distinct pedal positions.



#77 Swami OFFLINE  

Swami

    Stargunner

  • 1,643 posts
  • Location:Twin Cities, MN

Posted Fri Feb 23, 2018 9:49 AM

True enough, as long as no steps/pulses are ever missed being read from the encoder. The software itself would have to track the absolute position as the typical two bit incremental encoder has no such absolute position capability. When you restrict the encoder's motion to a finite range (vs. continuous rotation), one missed state change from the encoder would create a mismatch between the calculated/assumed position and the physical/actual position of the pedal.  

 

One way to combat that issue would be to use an encoder with a zero pulse to reset the sync to a known position. This could be implemented as a switch at zero/no throttle position. Either scheme would require another bit of input in some form or other.

 

Rather than a full blown rotary encoder, one might consider a form of absolute position encoding with the same two bits of resolution. This would give the throttle pedal four distinct output patterns: one for idle and three more e.g. low, medium, high positions. Not ideal, but better than an on/off throttle. This type of arrangement could be polled at will as you would only have to detect current state rather than change of state. This could be implemented with mechanical switches of some flavor. In this configuration, if you go with three bits you get eight distinct pedal positions.

Those options could be helpful. One nice thing about using the y-axis position for acceleration is that you could probably check it's performance/continuity with a game like Slither.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users