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
#3
Hi djdsails,

(2021-01-18, 03:35 AM)seandepagnier Wrote: the pypilot motor controller uses a microprocessor.   This is essentially an arduino nano and was done for several reasons.   I recommend studying the schematic for the pypilot motor controller and use a $3 arduino nano clone to drive your controller.

So you cannot easily wire this generic controller to the pi zero pins, however it is possible if you hack pypilot.   I don't recommend doing this because the performance is bad, there is no feedback and no protection for the pi.

Can you tell us more about your requirements, what you have, and what you'd like to do?

While I'm here, I'm going to add to what seandepagnier said.  Here's a schematic for an older version, from the PyPilot website:

 https://pypilot.org/schematics/hbridge_controller.pdf

This version uses an H-bridge made of discrete MOSFETs, but other solutions are possible.  

If your motor controller needs an analog voltage, it would be possible (although not easy) to get the Arduino nano to generate the analog voltage you want, by modifying the code which runs on the nano (motor.ino) to emit a square wave of varying on/off time (PWM), and convert this to a varying voltage with a low pass filter:

 https://github.com/pypilot/pypilot/blob/.../motor.ino
 https://www.allaboutcircuits.com/technic...g-voltage/

But perhaps by "motor controller" you mean a motor driver, the thing that switches the high current, as the H-bridge does.  An alternative is to use a chip such as the VNH5019 or BTS7960 which does all the switching.  They are cheap and it's quite easy to hook up the nano to one of these chips.  Example:

 https://forum.openmarine.net/attachment.php?aid=1078

This shows connection to a VNH5019.  Note, as seandepagnier has said, there is no fault detection, no feedback, and no protection for the Pi.  It's just a proof of concept (which works).
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: 1 Guest(s)