A little post to help with the switching functions of S1 (switch 1) and S2 (switch 2) on the RCXHL units. Note: whenever RCXHL is used it refers to BOTH the 2HL and 5HL versions.
First up on some RC2HL the S2 function was programmed to automatically act as a reversing light. If this is the case then you will not be able to use S2 to switch headlights or machine guns. You may however be able to change the firmware running on your RC2HL to change from S2 being a reverse light. Contact us for help either a $15 programming cable will be required or chip swap.
How S1 & S2 work:
On the board S1 & S1 are just a pair of jumper pins. Most boards will have these pins labelled and importantly tell you which pin is the V+ pin and which the V0 pin. V+ pin is directly connected to the 5+Volt supply so it always capable of providing 5 volts. It is the V0 pin that is "switched". When the switch is activated V0 connects to ground completing the circuit.
It is important to be aware of both the polarity of the switch pins and that they turn on/off a 5 volt supply.
Now how the switches are activated depends on what board you are using. On either board if S2 is a reverse light it switches on whenever the throttle is in reverse. Otherwise:
RC2HL:
S1: 100% CH4
S2: -100% CH4
RC5HL (Taipan Protocol)
S1: -100% CH5
S2: -50% CH5
If you want S1 & S1 to switch LED lights they can be connected up to S1 & S2 with the addition of a 220 ohm resistor to limit the current. Again note polarity when connecting.
If you want to turn ON/OFF your headlights or switch between hull and turret machine guns or switch on/off your smoke unit then it is best to use a relay. I realise some of you may not be familiar with relays nor confident of soldering up a circuit for them. Fortunately, such a practice of using relays is so common that ready made relay boards are easy to source and one such board is now available through the webshop.
As you can see in the picture above there are 3 'input' pins to control the relay and an output terminal
VCC connects to the V+ pin of your switch
IN1 connects to the V0 pin of your switch
GND connects to the GND pin of the programming port
When connected in this fashion the activation of the switch breaks the normally closed connection between COM and NC and connects COM to the NO terminal. Switching the headlight is easy you simply cut one of the wires going to the headlight. Put one cut end into the COM terminal and the other end into the NC terminal. When the switch is activated the connection is broken and the headlight turns off.
Switching Machine guns is a little more complicated. A diagram would be best but have not got one on hand right now. What I do have is a series of videos showing a 2 channel relay board in action. The dual relay boards are simply two of the above units on a single board.
Here are the videos:
Cheers
Kevin GStatistics: Posted by Admin — Sun Jul 21, 2013 10:08 am
]]>