Hello there!
Today I discovered my bed was adjustable.
But the wired remote that was inside didn't work so I played with the screws of it a little and it worked, but now after adjusting the position of the plug it has stopped functioning completely so I took it apart. It looks rather simple and only has 4 pins, which I assume do:
Red and black- power to the remote
Yellow and brown- tells the motor to go up or down
I want to rewire the motor pins to an arduino in order to control it remotely and get my bed to a flat position again as it is stuck.
Any help or insights would be great!
That looks to be a classical analog value remote with the buttons sending a specific voltage to the receiver on every depressed button. (here possibly two analog channels, since I see two resistor ladders.).
The process is to record these voltages with a multimeter and send the same values from your Arduino to emulate the remote.
At best from a DAC chip; a PWM output is possibly too slow.
I like where you are going with this. In the mean time I assume you probably need sleep. Many times intermittent issues are caused by cold or poor solder joints. It's difficult to diagnose from a picture but the 4 solder joints I have circled appear wonky. The first thing I would do is hit them with a soldering iron. If that works you can be well rested while working through your project. It may work, it may not.