2020-02-15, 10:08 AM
(This post was last modified: 2020-02-15, 10:11 AM by CapnKernel.)
(2020-02-14, 04:36 PM)Ola_H Wrote:(2019-12-31, 06:33 AM)CapnKernel Wrote: Last night was the first time I hooked the Rpi Zero W up to the nano with the VNH5019. It's working! I can rotate the RPi and the motor responds accordingly. I can't wait to try it out on my boat!
My VNH5019 arrived today.
Did you connect both EnA and EnB on VNH5019 to D10 on Arduino?
For my test version I didn't connect ENA and ENB to anything, because my reading of the Pololu datasheet is that these pins are pulled high, and thus default to enabled.
In the next version that I'm designing now, I will connect CS from the VNH5019 to a voltage divider and read it on the nano's A0.
(2020-02-15, 03:13 AM)seandepagnier Wrote: I suggest ena and enab to pin D2 and D3, but use D9 for PWM. It's all in the motor.ino sketch which already supports it with #define VNH2SP30
To get the VNH5019 working, as far as I remember, I just changed these four lines in motor.ino:
Code:
#define VNH2SP30 // defined if this board is used
#define DISABLE_TEMP_SENSE // if no temp sensors avoid errors
#define DISABLE_VOLTAGE_SENSE // if no voltage sense
#define DISABLE_RUDDER_SENSE // if no rudder sense
This is exciting! Tell us how you go!