2021-02-24, 12:57 PM
(2021-02-24, 09:31 AM)xfactor99 Wrote:Thanks Andreas, I will have to buy the correct unit (VNH5019) and try with that. Can I ask you, when the IMU is flat on my table it is very accurate however, if I pitch and roll the IMU while keeping the direction constant the direction changes a lot. So if I am in a rolling sea the values will change a lot, is this normal?(2021-02-24, 09:15 AM)richarddaneel Wrote:(2021-02-23, 07:39 PM)richarddaneel Wrote:Hi Andreas(2021-02-23, 06:44 PM)xfactor99 Wrote:(2021-02-23, 04:48 PM)richarddaneel Wrote: Hi Richard,
I use a Pololu (1367) G2 24V19 to drive my autopilot with the Tinypilot.:
I reported in this thread:
https://forum.openmarine.net/showthread.php?tid=1734.
So to awnser your question short:
I still use the nano.
The file motor.ino for the nano ist compiled/uploded with the option PWM-Style=RC
The connection btw. nano and pololu is two wires nano Pin 9 (RC-PWM) to Pololu RC
and Nano GND to Pololu GND.
I don´t remember well if you need to set up the pololu with the software it comes with it.
Maybe you shoud first connect power and motor to the pololu and move it with the software
This should basicly work. If you want you can attach end limit switches (verry recomendet) and volt, current sensors .....
Save sailing
Andreas
I now see I have another problem. I have got the older version of Pololu controller with NO RC pin see picture, I might have a problem.
Cheers
Richard
Hi Richard,
sorry about that.
so I don´t know about that pololu and how to drive it.
In the first picture you posted there was an RC pin ....
In my first test setup I worked first with LED.
and after with a simple h-Bridge consisting of cheap chinese relay .... to move the motor. (changing motor.ino and the correct pins as described in the comments of the code)
Save sailing
Andreas
cheers Richard