Multifunction button with RF remote reciever transmitter connected to arduino un

Hi I want to make a lighting system of 6 different lights to turn on/off (toggle) independently using an arduino uno rev3 ( https://a.aliexpress.com/_mroKD99 ). It seems that 4 channel 433mhz rf remotes are standard but I would need 6 buttons for the 6 lights. Can I just use a 4 button rf remote and receiver and because I will connect the receiver to arduino digital input I can program a double press or long press of button 1 to control light 5 and double press button 2 to control light 6?

Meaning light off press 1 - light 1 on. Double press 1 - light 5 on. Double press 1 - light 5 off. Press 1 - light 1 off. But in any order.

From my understanding, these remote hard fix the button function so I can't make the buttons multifunctional? But is that only when the lights are connected directly to the remote reciever and by connecting to arduino digital input, I can make the buttons multifunctional? I would prefer this over a 6 button remote for the size. ( Germa Rf Remote Control Transmitter & 433mhz Wireless Receiver Learning Code 1527 Decoding Module 4 Ch Output Learning Button - Remote Control - AliExpress )

Start by learning how to set up and read a button press.
Then advance into how to turn an LED on and off.

Yes I agree. I mean to ask is it possible to make the rf remote buttons multifunctional so I can order the 4 button transmitter/reciever or is it not physically possible and I need to buy a 6 button system instead. I want help so I can know if I can buy this
https://a.aliexpress.com/_mKAoysB
Because it will take 2 months to ship so in the mean time I will learn the basics you said. I have seen tutorial videos of people programming the button like this How to Detect Short, Long, and Double Clicks with Arduino - YouTube but I have not seen it done with the rf remote buttons. Only wired button.

What do You mean by "rf remote buttons"?
Do You want to create a button reading device that also will transmit the result to another device, an rf reader?

i attached an image to explain

Your pictured 4 button control does not have "channels". It has separate "code" for each button. If like my control, it continues to send the same code as long as the button is pressed. So pressing for a second will send an unknown number of identical codes.
You will be able to determine exactly how your particular control operates when you get your system to work.
Good luck.
Paul

Thank you this was what I was trying to ask, you're suggesting that it will work for double press or long press "You will be able to determine exactly how your particular control operates when you get your system to work".

I will be able to read how it operates and "If like my control, it continues to send the same code as long as the button is pressed. So pressing for a second will send an unknown number of identical codes" I can program this by counting the number of codes sent in 1 second and corresponding that to long press or short press or double press.

One thing I was confused about is that the transmitter has different modes like toggle/momentary/latching and I was worried this would mean it is fixed in a way where I cannot distinguish the data of one press, two press, long press, that the receiver sends to arduino to control 2 lights with 1 button.

As long as it is physically possible with this transmitter/reciever - as you seem to suggest - I will place the order now to buy it and it will come in 1-2 months. https://a.aliexpress.com/_mKAoysB

I think this is what I was looking for GitHub - QuentinCG/Arduino-Wireless-Remote-Controller-Library: [Done] Wireless Remote Controller Library for Arduino (IC2272/2262)

"This library (with examples) is designed to be integrated in projects using IC2272/2262 (315MHz and 433MHz) remote controllers or equivalent system. It receives data from the controller. It is also possible to launch your own function every time data is received (asynchronously with interrupt)"

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