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
OpenPlotter RPI 4 and hat
#1
I have been working on installing rf controls through my Rpi4 and Sean's hat recently to provide autopilot controls at the helm station instead of just in the cabin navigation station.  The RPI works fine with OpenPlotter, Pypilot, and the autopilot, but I have been unable to get the RF transmitters to communicate with the hat.  The blue LED flashes on a command from the transmitter and the backlight works on the hat, but there is no other data on the LCD screen and no transfer of data from the transmitter to the autopilot.
Any ideas of what needs to be fixed would be helpful.
Reply
#2
Yes, it is most likely you must enable and start the pypilot_hat service which is separate from pypilot itself. This service renders to the LCD display as well as reads and relays the remote controls.
Reply
#3
(2025-11-07, 11:57 PM)seandepagnier Wrote: Yes, it is most likely you must enable and start the pypilot_hat service which is separate from pypilot itself.  This service renders to the LCD display as well as reads and relays the remote controls.

Thanks Sean for the quick reply.  Where can I find the Pypilot_hat service and what are the specific commands that I need to enable and start the service?
Reply
#4
its normally in debian systems, check if it is running
systemctl status pypilot_hat

then to enable and start
systemctl enable pypilot_hat
systemctl start pypilot_hat

you need to enable pi in the raspbi-config if it is not enabled it won't work.
Reply
#5
Sean, thank you for the quick reply.

I have performed the four commands listed above to no avail.

How would I enable pi in the rasbi-config?
Reply
#6
did you run the raspbi-config command and enable spi then reboot?
Reply
#7
Sean, thanks for the response.

SSH, VNC, SPI, I2V and Serial Port are all enabled in Rasp Config
sysemctl status pypilot_hat Loaded:loaded Active: active (running)

After reboot:

pi@pi:~ $ systemctl status pypilot_hat
* pypilot_hat.service - pypilot hat
Loaded: loaded (/etc/systemd/system/pypilot_hat.service; enabled; preset: >
Active: active (running) since Sat 2025-11-08 22:45:12 EST; 6min ago
Main PID: 662 (pypilot_hat)
Tasks: 1 (limit: 1573)
CPU: 396ms
CGroup: /system.slice/pypilot_hat.service
`-662 /usr/bin/python3 /usr/local/bin/pypilot_hat

Nov 08 22:49:59 pi pypilot_hat[662]: retrying to setup gpio with edge detect.
Nov 08 22:49:59 pi pypilot_hat[662]: WARNING Failed to add edge detection on pi>
Nov 08 22:49:59 pi pypilot_hat[662]: retrying to setup gpio with edge detect.
Nov 08 22:49:59 pi pypilot_hat[662]: WARNING Failed to add edge detection on pi>
Nov 08 22:49:59 pi pypilot_hat[662]: retrying to setup gpio with edge detect.
Nov 08 22:49:59 pi pypilot_hat[662]: WARNING Failed to add edge detection on pi>
Nov 08 22:49:59 pi pypilot_hat[662]: retrying to setup gpio with edge detect.
Nov 08 22:49:59 pi pypilot_hat[662]: WARNING Failed to add edge detection on pi>
Nov 08 22:49:59 pi pypilot_hat[662]: retrying to setup gpio with edge detect.
Nov 08 22:49:59 pi pypilot_hat[662]: WARNING Failed to add edge detection on pi>
lines 1-19/19 (END)
Reply
#8
does anything display on the screen?
Reply
#9
Sean,

Nothing displays on the screen. The screen is backlit. This is the case on both my R Pi4 and R Pi 5
Reply
#10
what happens if you stop pypilot hat:

sudo systemctl stop pypilot_hat

then run it from the console:
sudo pypilot_hat

and post the output? I am wondering if it is using the wrong lcd driver. Otherwise it could be defective lcd.. Can you connect to localhost:33333 in a browser?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)