I'm arduino noob and I'm making a project. I have an external controller with some buttons, powered by controller's 4,5 source, converted to just below 3V, about 2.8V. I want to connect them to arduino through wires and get their state. I checked the voltage on the buttons, it's about the said 2.8V. If I press one button, voltage sinks to zero, but ON ALL BUTTONS. The controller can recognize what button is pressed but how do I know which button was pressed? It will output either all LOW or all HIGH.
Welcome to the forum
Please provide details of this mysterious controller
Hi! It's old rc controller, used to control a drone, but now when the drone is broken, I wanted to connect it to arduino so I can use it to control other stuff. It has some joysticks and buttons, I was succesful with connecting the joystick but I have trouble with the buttons. They all seem to be connected together but the controller works just fine.
You need to work out exactly how the buttons are wired and draw a schematic
Hi! Welcome to the Forum.
One possibility is that the buttons are connected into a resistor ladder. That means after each button there's a resistor and the outputs of these resistors are connected to the same line. When you analogRead() this line you'll get different voltages for each button, so that you can identify which one was pressed.
Look for resistor ladder and voltage divider concepts.
So if you are measuring the voltage directly across button 1 and you push button 2, the voltage across button 1 goes from 2.8V to 0V, is that correct?
This might be it! I looked at the board, there was not much to see but I think there is tha resistor ladder. I'm gonna measure it if it's working like that. Tysm
It looks like it's resistor ladder. I'm going to rewire it to normal buttons for better manipulation.
This?