View Single Post
Old 02-22-2015, 12:16 PM   #1728 (permalink)
thingstodo
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 749
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Holy mackeroni, I forgot about the encoder ticks. That needs to be programmable! I'll include that next with the rotor time constant addition. Then I'll send you a big fat .hex file and .c and .h files that have it all. Here's a pinout for the control board. (You don't need the index pin for the encoder. the microcontroller will just ignore it in the case of an ac induction motor):

Ran into a bit of a problem .. or it could be a problem .. my hohner encoder is 9V - 24V, not 5V. I'll look at my other encoder, but it is the same brand and a similar vintage.

I guess I will start without the encoder and 'see what happens'.

Powering the encoder with the raw 24V from the DC/DC is a possibility, then using optoisolators to drop the voltage down to 5V would work but it's going to take me some time.

If the 5V ground and the 24V ground are common, I could use a resistor divider to drop the signals down to 5V. The optoisolators can take a clean square wave and add some slope to the signals. I know I could look at the schematic, but I'd likely end up verifying with you anyway!
Attached Thumbnails
Click image for larger version

Name:	IMAG2336 hohner id plate encoder.jpg
Views:	75
Size:	81.0 KB
ID:	17069  

Last edited by thingstodo; 02-22-2015 at 02:47 PM.. Reason: Correcct voltage to 24V instead of 12V
  Reply With Quote