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
RPi4 not talking to arduino motor driver
#4
Thanks for your reply. There are two questions, 1, serial connection to arduino motor driver and 2, i2c connection to IMU (compass, accerometer/gyro).

The arduino board is connected to RPi4 serial port, physical pins 8, 10 (GPIO14, 15), this was working on old RPi3 with older opencpn/pypilot. This is not working on the RPi4 on the GPIO pins but does work via USB, the run between boards is longer than I would like to run a USB cable, I would prefer to use a serial connection but cannot get it to work.

The IMU is on i2c bus 3 (as default i2c bus is noisy with touch screen on it), I can see it with i2cdetect and can read it with a simple python script. I haven't found how to tell pypilot that it is on bus 3. Under "Autopilot" tab is says "Detected IMU: Auto discover" but if I go into calibration there is no data from the IMU.
Reply


Messages In This Thread
RE: RPi4 not talking to arduino motor driver - by MacleayIslandBruce - 2021-11-26, 04:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)