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
Bluetooth remote control for OpenCPN
#4
(2020-12-14, 12:06 PM)jaykay Wrote: @BellaX your remote is really stylish and looks super useful! Congratulations! You should be selling these. I fully agree that even with a touchscreen, you do need a keyboard and a mouse, or some other remote control device.

I made an inexpensive wired remote control from an off-the-shelf numpad and mapped the most important OpenCPN keyboard shortcuts to it.

[Image: Trust-numpad-185x300.jpg]    [Image: OpenCPN-numpad-5-181x300.jpg]

The configuration and software used for Raspberry Pi can be found on my blog post about the OpenCPN remote control.

JayKay


Thank you @JayKay:

The first idea was to use a cheap IR remote control Chip. The RC was working but I never managed to bring LIRC to work.
Last year I found out that LIRC via GPIO is broken in Raspbian Buster. We successfully tested ir-keymap on a banana-pi 
running sunix but the same does not work for Buster.

Last week I made a small piece of software for another project that needed I2C. So I got the idea to decode the IR-signals
using an 8-Pin PIC12F1822 and let the RPi grab it via I2C. This works very well! Whenever a keycode comes in it pulls an IRQ
line connected to the Pi. The Pi is set up to detect this interrupt and starts a small script to read out one byte only from
the PIC controller.

This means no permanent polling of GPIOs, no problems with task switching, not wasting any processing time. Another
benefit is you can use it with any Arduino or ESP32 or any other microcontroller board that supports I2C.

The pcbs for the IR-Remote and the receiver are in production and will arrive next week!


Attached Files Image(s)
       
Reply


Messages In This Thread
Bluetooth remote control for OpenCPN - by BellaX - 2020-01-30, 08:16 PM
RE: Bluetooth remote control for OpenCPN - by BellaX - 2020-12-16, 07:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)