Im a newbie to arduino in general but get the basics. I would like to create a connection between my arduino Uno and a 4 button remote control that i have. (See attached Photo) I have confirmed which pins trip each button. My thoughts are the top right hand pin of each button would be connected to an output and the bottom right hand to GND. What is everyone's thoughts on this and any thoughts on what th programming would look like?
My aim is to connect this remote via the Arduino to my OpenHab server.
The next step is to measure the voltage on the switch pin to the board ground. And determine if the switches connect the control line to ground or to 5 volts.
Paul_KD7HB:
The next step is to measure the voltage on the switch pin to the board ground. And determine if the switches connect the control line to ground or to 5 volts.
I am trying to work out how i can connect the four button remote to the arduino and allow the arduino to control the remote. Once this is accomplished i will connect the arduino to my openhab system.
Sorry in reference to what the switches do, i am newbie to electronics so the only reading i got from my multi was the 6.1v. Should i be looking for something else?
Thanks for your patience, i appreciate this is probably basic stuff for you.
You now have to figure out whether those switches connect the controller's input to the +6V or the GND (0V).
So hold positive pin of your multimeter to one side of the switch, the negative to the battery - side.
Then press the switch.
If nothing happens, take the other side of the switch and the battery -.
Press the switch.
One of the two should give you a response: you should see the voltage go up or down, one of the two. That's the response you're going to simulate with the Arduino. How - that's going to depend on the response you see.
I like the current status of my gate very much in OpenHAB.
May reconsider to place an esp8266 at the gate, and sense the state. You could then also just interface the motor directly, there is usually a connection for a switch.
AutoMan:
So following your instructions the top right hand pin provides a response when pressed and returns to zero each time.
What response do you get when pressed? One side going high (to what level?) or one side going low (to zero)? the other side of the button normally stays at the same level (either a high or low voltage) when pressed.
wvmarle:
What response do you get when pressed? One side going high (to what level?) or one side going low (to zero)? the other side of the button normally stays at the same level (either a high or low voltage) when pressed.
When pressed one side displays a reading of ~50 whilst the other pin displays a reading of ~4 when pressed. Just to confirm i have removed the batteries when completing this test.
allanhurst:
Alternative - buy some tact switches ( 100 for a quid last time I looked) and use 4 of them connected to digital inputs of an arduino.........
Allan
Thanks Allan. Again a simple question but the idea is to have the arduino replicate the button press without the button press occurring physically. The Tact Switches are button switches are they not?