2021-02-12, 06:04 AM
(This post was last modified: 2021-02-12, 06:06 AM by CapnKernel.)
(2021-02-12, 02:52 AM)djdsails Wrote: i modified the #define lines (which were no where near line 115 in my ide nor at line 155 in the link above that you posted before) but found the text and matched it up and made the changes.
Sounds good
(2021-02-12, 02:52 AM)djdsails Wrote: nothing is lighting up on the vnh5019
could it be a bad vnh5019? since nothing is lighting up on the board?
Let's work backwards. First, your motor. If you connect the motor across 12V, does it turn? If you reverse the connections, does it turn the other way?
Measure your 5V supply with a voltmeter. Is it 5V (+/-0.2V will be fine)?
Next, connect the motor to the VNH5019 but don't connect the VNH5019 to the nano.
On the VNH5019, power it by connecting pin 7 to 5V, and pin 10 to GND. Then connect pin 3 (PWM) to 5V.
Next, with a wire connected to 5V, touch pin 1 (ENA). The motor should turn one way, and one VNH5019 LED will go on. Then take the wire off pin 1 (ENA) and touch pin 5 (ENB). The motor should turn the other way, and the other VNH5019 LED will go on. (One LED is red and one is green. There's no power LED)
If this all worked, then you know your VNH5019 is fine.
The next step will be to connect the RPi W0 to the nano, and the nano to the VNH5019. But let me know what happens with the VNH5019 test, and I'll help you more after that.