PyPilot works for me! - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: PyPilot works for me! (/showthread.php?tid=2228) |
RE: PyPilot works for me! - HugoG - 2020-04-03 Okay, I've found the cure for the issue in this topic: http://forum.openmarine.net/showthread.php?tid=1561&page=4 switching DIV_BOARD to 1 dit the trick in recognizing the motor controller. RE: PyPilot works for me! - topodom - 2020-12-14 (2020-01-11, 08:58 AM)CapnKernel Wrote: The motor driver is a VNH5019 I bought online, which hasn't had any of the problems I found in the VNH20SP30s I've bought. I didn't need to change motor.ino. I am working on making a pypilot by myself. I don't have any skills in eclectronics so I rely on CapnKernel's wiring diagram that is easier to understand than Sean's ones when you are a beginner . Tks for that it is really helpful. I have 2 questions : first Something is not clear about VNH5019 wiring. According to the diagram and pictures, only INA, PWM, INB, VDD and GND are wired. But if i look at Sean's code in motor.ino (lines 89 to 96) there is the wirerind deccription of the vnh2sp30 to the arduino. If i undestand well vnh2sp30 and VNH5019 are quite the same, at least in terms of code. So the description is this one : Code: vnh2sp30 <-> arduino <-> CPC5001 Here it seems that CS INB and EN should be wired too. Why this différence ? CS INB and EN are optional ? What are they suppose to do ? Second You said "I didn't need to change motor.ino." . I guess that you have uncommented the folwing lines at least : Code: #define VNH2SP30 // defined if this board is used
RE: PyPilot works for me! - seandepagnier - 2020-12-14 CS is current sense and is "optional" but you need some form of end of travel detection to prevent prolonged stalling the other pins are required RE: PyPilot works for me! - topodom - 2020-12-15 (2020-12-14, 05:07 PM)seandepagnier Wrote: CS is current sense and is "optional" but you need some form of end of travel detection to prevent prolonged stalling Ok tks Sean. And tks also for you geat job and sharing it. |