Momentary Switch activation

Hi all, I was hoping for some help.

I have been playing with code to use a remote control at a basic level to turn LED's on and off. That was successful.

My question is .. I have a built a model Routmeatser from Hachette. I have modified it use momentary switches on the base to operate the lighting in the bus as the internal circuit board handles that. I would like to use the remote control and Arduino to act as the momentary switch on the base to short the wires to operate.

Can this be done and what code what I use on each button to achieve this?

This is an example of button 1 to turn on the led

case 0xFF30CF: digitalWrite(RED, HIGH); break; //BUTTON 1 TURN ON RED LED

Obviously I cant sent voltage down the line I just want it to activate a short using Button 1 if that makes sense.

Many thanks in advance.

case 0xFF30CF:
digitalWrite(RED, HIGH);
break;

Looks okay, what happens when you tried ?

We need to see what you are controlling.

The Arduino can control a MOSFET as in the examples below:

1 Like

you can't just turn it on and leave it on. Youll need to PULSE it on then off after 1/4S or so.

i just want to push button 1 on the remote control and Arduino create a short between 2 switch wires for 2 seconds. As simple as that, im fairly new to arduino.

If you need a short between two wires you will need a relay contact.

The relay would be driven by one of the MOSFET circuits in the schematic given.

You SET a Flag, start a 2 second TIMER and turn ON the output.

When the Flag is SET you check the TIMER to see if it has expired, if it has, you RESET the flag and turn OFF the output.

Wow thank you bit more complex than i envisaged hehe. Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.