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
#42
(2021-02-05, 05:30 PM)djdsails Wrote: new pi zero  on order with pins pre soldered, and got a micro to mini usb cable on the way as well to try xfactor99's idea

thank you andreas ironman and xfactor for the help so far with troubleshooting,
please let me know if you think of anything else i can try!

also does it matter when logging into the PI zero pypilot wifi via the puTTy that i used the 192.168.14.1 vs the 10.10.10.3 ip address?

also i have not tried the echo code on post #27 should i try that? thanks

Hi djdsails,

some considerations,

for begining and testing keep it as simple as possible:
will say yust use tinypilot and in accespoint mode (Then the IP is 192.168.14.1) after you have loged in with your control device (mobile phone, tabet, pc ,rpi) into the AP "tinypilot".
If you run your TP as client connected to Openplotter on an other device your IP might be 10.10.10.xx,    I would leave that for when the basics are working.

you need: the pi(zero or other, not pi4)) with tinypilot, an imu and an arduino with motor. ino. (I see you have the nokia also working as well). get this working. I started with 3x led connected to the arduino (green/red for Stb andPort and yellow for the clutch). I had an other nano for that LED setup as the motor.ino is not the same than the one for RC control.


The arduino you can connect to the pi rx-tx and tx-rx. 5v and gnd (Common ground is verry important, please doublecheck your drawing posted above for this detail !!!)
Here it is also important that the rx pin of the pi only gets 3,3v so i use a voltage devider, just 2 
simple resistors.(drawing from ironman: https://forum.openmarine.net/showthread....5#pid13665)
I dont use an optocoupler btw. the pi and the nano now for more than 2 years and never had a problem, I yust carry a complete spare setup for incase. I reported here: https://forum.openmarine.net/showthread....31#pid8631

For testing purposes I first used USB connection (instead of 5.5,Gnd,TX,RX) btw. Pi and nano, no code modification.

After you got this working you can start to hook up your drive with an controller attached to the nano. I use an Pololu.
You can ad ruder sensor or en switches, votlage sense ect. but see that as an indipendent step.

Also then you can get your gps/wind data in and control it via OpenCPN / Openplotter.

But first a simple Autopilot to work.

Its good fun and learning.

Greetings Andreas
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)