This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Motor controller
#54
(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.
Reply


Messages In This Thread
Motor controller - by djdsails - 2021-01-18, 01:13 AM
RE: Motor controller - by seandepagnier - 2021-01-18, 03:35 AM
RE: Motor controller - by CapnKernel - 2021-01-19, 07:00 AM
RE: Motor controller - by djdsails - 2021-01-20, 01:55 AM
RE: Motor controller - by CapnKernel - 2021-01-20, 03:08 AM
RE: Motor controller - by djdsails - 2021-01-28, 08:34 PM
RE: Motor controller - by seandepagnier - 2021-01-28, 10:46 PM
RE: Motor controller - by rastam4n - 2021-01-28, 11:33 PM
RE: Motor controller - by seandepagnier - 2021-01-28, 11:46 PM
RE: Motor controller - by djdsails - 2021-02-02, 02:44 PM
RE: Motor controller - by ironman - 2021-02-03, 08:51 AM
RE: Motor controller - by djdsails - 2021-02-03, 12:55 PM
RE: Motor controller - by ironman - 2021-02-03, 04:42 PM
RE: Motor controller - by djdsails - 2021-02-03, 05:11 PM
RE: Motor controller - by ironman - 2021-02-03, 05:55 PM
RE: Motor controller - by djdsails - 2021-02-03, 06:27 PM
RE: Motor controller - by djdsails - 2021-02-03, 08:08 PM
RE: Motor controller - by ironman - 2021-02-03, 10:24 PM
RE: Motor controller - by djdsails - 2021-02-04, 01:07 AM
RE: Motor controller - by ironman - 2021-02-04, 06:42 AM
RE: Motor controller - by djdsails - 2021-02-04, 02:15 PM
RE: Motor controller - by Andreas29 - 2021-02-04, 10:50 AM
RE: Motor controller - by Andreas29 - 2021-02-04, 04:56 PM
RE: Motor controller - by djdsails - 2021-02-04, 05:09 PM
RE: Motor controller - by ironman - 2021-02-04, 05:48 PM
RE: Motor controller - by djdsails - 2021-02-04, 06:15 PM
RE: Motor controller - by Andreas29 - 2021-02-04, 06:24 PM
RE: Motor controller - by djdsails - 2021-02-04, 07:00 PM
RE: Motor controller - by Andreas29 - 2021-02-04, 07:09 PM
RE: Motor controller - by ironman - 2021-02-04, 07:22 PM
RE: Motor controller - by Andreas29 - 2021-02-04, 07:35 PM
RE: Motor controller - by djdsails - 2021-02-04, 07:47 PM
RE: Motor controller - by ironman - 2021-02-04, 08:16 PM
RE: Motor controller - by djdsails - 2021-02-04, 08:23 PM
RE: Motor controller - by ironman - 2021-02-04, 09:34 PM
RE: Motor controller - by xfactor99 - 2021-02-04, 09:44 PM
RE: Motor controller - by CapnKernel - 2021-02-05, 12:10 AM
RE: Motor controller - by rastam4n - 2021-02-05, 12:16 AM
RE: Motor controller - by Andreas29 - 2021-02-05, 07:12 AM
RE: Motor controller - by ironman - 2021-02-05, 08:52 AM
RE: Motor controller - by CapnKernel - 2021-02-10, 02:31 AM
RE: Motor controller - by djdsails - 2021-02-05, 05:30 PM
RE: Motor controller - by xfactor99 - 2021-02-05, 06:26 PM
RE: Motor controller - by ironman - 2021-02-05, 06:28 PM
RE: Motor controller - by hreuver - 2021-02-05, 07:05 PM
RE: Motor controller - by djdsails - 2021-02-05, 07:18 PM
RE: Motor controller - by Andreas29 - 2021-02-05, 08:09 PM
RE: Motor controller - by djdsails - 2021-02-08, 09:36 PM
RE: Motor controller - by djdsails - 2021-02-08, 11:06 PM
RE: Motor controller - by ironman - 2021-02-09, 11:07 AM
RE: Motor controller - by djdsails - 2021-02-12, 12:01 AM
RE: Motor controller - by CapnKernel - 2021-02-12, 02:21 AM
RE: Motor controller - by djdsails - 2021-02-12, 02:52 AM
RE: Motor controller - by CapnKernel - 2021-02-12, 06:04 AM
RE: Motor controller - by djdsails - 2021-02-12, 12:37 PM
RE: Motor controller - by richarddaneel - 2021-02-23, 04:48 PM
RE: Motor controller - by xfactor99 - 2021-02-23, 06:44 PM
RE: Motor controller - by richarddaneel - 2021-02-23, 07:39 PM
RE: Motor controller - by richarddaneel - 2021-02-24, 09:15 AM
RE: Motor controller - by xfactor99 - 2021-02-24, 09:31 AM
RE: Motor controller - by richarddaneel - 2021-02-24, 12:57 PM
RE: Motor controller - by richarddaneel - 2021-02-24, 09:02 AM
RE: Motor controller - by xfactor99 - 2021-02-24, 09:14 AM
RE: Motor controller - by xfactor99 - 2021-02-23, 08:09 PM
RE: Motor controller - by richarddaneel - 2021-02-24, 07:31 AM
RE: Motor controller - by richarddaneel - 2021-02-24, 02:52 PM
RE: Motor controller - by rastam4n - 2021-02-25, 03:48 AM
RE: Motor controller - by richarddaneel - 2021-03-02, 02:03 PM
RE: Motor controller - by seandepagnier - 2021-02-25, 03:29 AM
RE: Motor controller - by seandepagnier - 2021-03-02, 08:45 PM
RE: Motor controller - by badutis - 2024-01-24, 12:15 PM
RE: Motor controller - by Max1947 - 2024-01-24, 12:18 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)