2020-12-16, 07:05 PM
(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.
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!