Difference between revisions of "Ryde remote controls"

From BATC Wiki
Jump to navigation Jump to search
(17 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
[[File:Infrared-Sensors.jpg|200px]]
 
[[File:Infrared-Sensors.jpg|200px]]
  
These sensors are 3 legged devices with +ve, gnd and output which is connected directly to pin 11 of the RPi GPIO port.
+
These sensors are 3 legged devices with +ve ground and output.  The +ve should be connected to a 3.3v supply via a suitable resistor (typically 100 ohms) and the output is connected directly to pin 11 of the RPi GPIO port.
 +
 
 +
====5 volt devices====
  
 
Older devices may need to be used on a +5v supply and must be fitted with a resistor to ground on the high impedance output to reduce the voltage to 3.3v for the Rpi GPIO port.   
 
Older devices may need to be used on a +5v supply and must be fitted with a resistor to ground on the high impedance output to reduce the voltage to 3.3v for the Rpi GPIO port.   
  
Connect 5v to the device and use an oscilloscope to measure the voltage on the output - connect a 47K resistor to ground and check the level drops to 3.3v - if not adjust the resistor value to suit.
+
Connect 5v to the device and use an oscilloscope to measure the voltage on the output - connect a 47K resistor to ground and check the level drops to 3.3v - if not adjust the resistor value to suit.
  
===Remote control Handset===
+
===Remote control Handsets===
  
 
The following remotes are already programmed in to the standard firmware:
 
The following remotes are already programmed in to the standard firmware:
  
* Remote 1 - Simple NEC remote
+
* Virgin Media remote
* Remote 2 - Nebula DigiTV DVB-T USB receiver
+
* Nebula DigiTV DVB-T USB receiver
* Remote 3 - Ebay DVB-T / DVB-S combo box
+
* Ebay DVB-T / DVB-S combo box
* Remote 4 -  
+
* LG 42 inch TV
 +
* LG Blu-Ray Player
 +
* Samsung 32 inch TV
 +
* Elekta Bravo TV
 +
* WDTV Live Media Player
 +
* Hauppauge MediaMVP Network Media Player
 +
* Technosat TS-1 Satellite Receiver
 +
* Technosat TS-3500 Satellite Receiver
 +
* Digi-Wav £2 F2100 Universal Remote
 +
* Octagon SF8008 Sat RX Remote
 +
* RTL-SDR Basic Remote
 +
 
 +
Photos of some of these remotes are on this page: [[Ryde Remote Photos]]
 +
 
 +
You can select the remote control by SSH in to the Ryde main menu > 3 Select the Remote Control Type.
 +
 
 +
===Using a custom remote control===
 +
 
 +
The Ryde receiver can be customised to use another suitable remote control - note not all remote controls will work.
 +
 
 +
You can program the Ryde to use a different type of remote by SSH the Ryde main menu > 4 IR Check.  This takes you to the command line.  Press the following buttons on your remote control and note the code displayed against each button pressed. 
 +
 
 +
Then you will need to amend the file
 +
 
 +
/home/pi/ryde/handset.yaml
 +
 
 +
so that it looks something like this:
 +
 
 +
---
 +
name: My Remote Name
 +
driver: rc-5
 +
buttons:
 +
    POWER:  0x0d
 +
    UP:    0x16
 +
    DOWN:  0x17
 +
    LEFT:  0x18
 +
    RIGHT:  0x19
 +
    SELECT: 0x1a
 +
    BACK:  0x14
 +
    MENU:  0x15
 +
    ZERO:  0x00
 +
    ONE:    0x01
 +
    TWO:    0x02
 +
    THREE:  0x03
 +
    FOUR:  0x04
 +
    FIVE:  0x05
 +
    SIX:    0x06
 +
    SEVEN:  0x07
 +
    EIGHT:  0x08
 +
    NINE:  0x09
 +
 
 +
Do not worry if your remote does not have number buttons.  Menu, Up, Down, Left, Right and Select are sufficient to get started.  Just delete the lines for the buttons that you don't have.
 +
 
 +
You also need to set the protocol that the remote uses in this file and 2 other places - you can see the protocol in the brackets when you press a key:
  
You can select the remote control by SSH in to the Ryde main menu > 4 Remote > 2 Set RC type
+
Testing events. Please, press CTRL-C to abort.
 +
9801.580057: lirc protocol(rc5): scancode = 0x5
 +
9801.580077: event type EV_MSC(0x04): scancode = 0x05
 +
9801.580077: event type EV_SYN(0x00).
  
===Using a custom remote conrol===
+
So in this example, the protocol is rc-5 and the code to enter in the file is 0x05.
  
The Ryde receiver can be customised to use an suitable remote control - note not all remote controls will work.
+
You then need to also ammend the protocol in the file:
  
You can program the Ryde to use a different type of remote by SSH in to the menu and selecting Remote Control......
+
/home/pi/ryde-build/rx.sh
  
..........
+
The protocol also gets entered on the 5th line of /home/pi/ryde-build/rx.sh
  
.............
+
#!/bin/bash
 +
 +
# File to set conditions for Ryde and start it.
 +
 +
sudo ir-keytable -p rc-5 >/dev/null 2>/dev/null
 +
 +
cd /home/pi/ryde
 +
python3 -m rydeplayer /home/pi/ryde/config.yaml >/dev/null 2>/dev/null &
 +
 +
exit
  
* If you do program a different remote control plus publish details on this dedicated forum page - link TBD
+
Once you have edited and saved both files, you can press ctrl-c to exit the remote control code monitor screen, and then type menu to return to the menu and then start the receiver.  Test your remote.
  
* If you do have a different remote control but are unable to program it, please post a request on the forum page - link TBD
+
If it all works, please post details of your remote and its codes on the BATC Forum here [https://forum.batc.org.uk/viewtopic.php?f=130&t=6759 BATC Forum Ryde Remote Controls].  The software team can then add the remote to the main build so that it is available to all users.

Revision as of 17:54, 15 July 2020

The Ryde DATV receiver is designed to work with an Infrared remote control handset.

Infrared sensor

A Infrared sensor is needed on the receiver and can be one salvaged from an old consumer electronic part or purchased new - typical example is https://uk.farnell.com/vishay/tsop2438/ir-receiver-45m-0-12mw-m2-side/dp/4913097

Infrared-Sensors.jpg

These sensors are 3 legged devices with +ve ground and output. The +ve should be connected to a 3.3v supply via a suitable resistor (typically 100 ohms) and the output is connected directly to pin 11 of the RPi GPIO port.

5 volt devices

Older devices may need to be used on a +5v supply and must be fitted with a resistor to ground on the high impedance output to reduce the voltage to 3.3v for the Rpi GPIO port.

Connect 5v to the device and use an oscilloscope to measure the voltage on the output - connect a 47K resistor to ground and check the level drops to 3.3v - if not adjust the resistor value to suit.

Remote control Handsets

The following remotes are already programmed in to the standard firmware:

  • Virgin Media remote
  • Nebula DigiTV DVB-T USB receiver
  • Ebay DVB-T / DVB-S combo box
  • LG 42 inch TV
  • LG Blu-Ray Player
  • Samsung 32 inch TV
  • Elekta Bravo TV
  • WDTV Live Media Player
  • Hauppauge MediaMVP Network Media Player
  • Technosat TS-1 Satellite Receiver
  • Technosat TS-3500 Satellite Receiver
  • Digi-Wav £2 F2100 Universal Remote
  • Octagon SF8008 Sat RX Remote
  • RTL-SDR Basic Remote

Photos of some of these remotes are on this page: Ryde Remote Photos

You can select the remote control by SSH in to the Ryde main menu > 3 Select the Remote Control Type.

Using a custom remote control

The Ryde receiver can be customised to use another suitable remote control - note not all remote controls will work.

You can program the Ryde to use a different type of remote by SSH the Ryde main menu > 4 IR Check. This takes you to the command line. Press the following buttons on your remote control and note the code displayed against each button pressed.

Then you will need to amend the file

/home/pi/ryde/handset.yaml

so that it looks something like this:

---
name: My Remote Name
driver: rc-5
buttons:
    POWER:  0x0d
    UP:     0x16
    DOWN:   0x17
    LEFT:   0x18
    RIGHT:  0x19
    SELECT: 0x1a
    BACK:   0x14
    MENU:   0x15
    ZERO:   0x00
    ONE:    0x01
    TWO:    0x02
    THREE:  0x03
    FOUR:   0x04
    FIVE:   0x05
    SIX:    0x06
    SEVEN:  0x07
    EIGHT:  0x08
    NINE:   0x09

Do not worry if your remote does not have number buttons. Menu, Up, Down, Left, Right and Select are sufficient to get started. Just delete the lines for the buttons that you don't have.

You also need to set the protocol that the remote uses in this file and 2 other places - you can see the protocol in the brackets when you press a key:

Testing events. Please, press CTRL-C to abort.
9801.580057: lirc protocol(rc5): scancode = 0x5
9801.580077: event type EV_MSC(0x04): scancode = 0x05
9801.580077: event type EV_SYN(0x00).

So in this example, the protocol is rc-5 and the code to enter in the file is 0x05.

You then need to also ammend the protocol in the file:

/home/pi/ryde-build/rx.sh

The protocol also gets entered on the 5th line of /home/pi/ryde-build/rx.sh

#!/bin/bash

# File to set conditions for Ryde and start it.

sudo ir-keytable -p rc-5 >/dev/null 2>/dev/null

cd /home/pi/ryde
python3 -m rydeplayer /home/pi/ryde/config.yaml >/dev/null 2>/dev/null &

exit

Once you have edited and saved both files, you can press ctrl-c to exit the remote control code monitor screen, and then type menu to return to the menu and then start the receiver. Test your remote.

If it all works, please post details of your remote and its codes on the BATC Forum here BATC Forum Ryde Remote Controls. The software team can then add the remote to the main build so that it is available to all users.