2020-03-29, 01:12 PM
(2020-03-26, 07:17 PM)seandepagnier Wrote: oscilliscope.. digital analyzer etc..
If you change to 1000 instead of 16000 in that line 644 of motor.ino. Unless it is not actually using pwm_mode==2 I am not sure why you get audible noise.
Changing from 16000 to 8000 would give you 2khz instead of 1khz and the sound should be much higher pitch.
I have pwm mode 2, but I also needed to enable VNH2SP30 or else the motor controller didn't work.