View Single Post
Old 05-02-2018, 02:43 PM   #3177 (permalink)
wootwootman
EcoModding Lurker
 
Join Date: Mar 2018
Location: Sacramento, CA
Posts: 17
Thanks: 9
Thanked 4 Times in 4 Posts
I verified that it's a 2013 Nissan Leaf motor (EM57), so it should be compatible. As far as the motor-type, I haven't looked at the config settings in a while so I'll take another look at them this evening after work.

Going over the schematic again, I don't think I populated C8,C9, or C10 (the LPF caps before the I/QEA/QEB inputs on the PIC). This would leave the signals basically unfiltered, but since I'm not running the motor or any voltage higher than board level (24VDC), I don't think this is the issue.

I'll be sure to populate them before I start powering the motor, just gotta choose the right values.

512ticks/rev * 10,000rpm (max EM57 rpm) = 5.12Mticks/min ~= 85kticks/sec

Since the encoder signals are square waves (which i believe need fast rise/fall times?), I'll raise the cutoff frequency like....four times? So 340kHz. Since there's already a 1k resistor, that leaves me with ~470pF for a cap value. Someone please correct me if I'm wrong
  Reply With Quote