M
M
Maikesteps2016-01-24 20:00:45
Arduino
Maikesteps, 2016-01-24 20:00:45

How to control arduino with RF remote?

UPD: Solved.
There is a remote control for 12 channels:
PIAAEUJIxYGPe_dCBRfRlmPkckm-tZOewmJfLEIh
There is a receiver for 315 mhz (the same penny with Ali)
Kodi counted the buttons on the remote control.
I can’t understand how to steer the processes in arduino with this remote control, the programmer is so-so from me.
There are a lot of examples on the Internet how to steer an arduino with radio sockets / lamps, but there is absolutely no way to steer an arduino with a remote control.
Maybe someone will throw in a code that would, for example, change the PWM signal at the output when the code arrives from the button "1" to the lower side, when the button "2" arrives to the larger one. And the same with buttons 3 and 4, but on a different output.
Using the RC-Switch or RemoteControl library (I could count the code of the buttons as both, although they are different there, but this is not a problem).
More details about what I want to do - lighting control on LED strips. Mosfits are connected to the PWM. When you press the "2" button on the remote control, the brightness increases to the maximum (gradually, somewhere around 5-10 levels). When you press the "1" button, it decreases to turn off.
Then I'm on my own...
I just want to understand how it works in the code.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Volkov, 2016-01-25
@a_volkov1987

To begin with, it would be nice to find out what kind of "same" remote control and receiver you have and in what form it gives you the code of the pressed button.
In general terms, your task comes down to scanning information from the receiver and one case statement, in which you, depending on the code of the pressed button, write code to perform certain actions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question