» Electronics »DIY radio button

DIY button radio


Today I will tell you how to make a radio button do it yourself. I did not check the range, but it catches confidently throughout the apartment.

Using it, you can manage various loads. In my case, I chose a table lamp for the experiment.

For work, we need:
1) Soldering iron
2) Light
3) some radio parts
4)

To transmit the signal of the radio button, cheap and common RF modules are used: receiver and transmitter, photo below

As a basis, I took this diagram:

TRANSMITTER
DIY button radio


RECEIVER


The radio button is built on the common PIC12F675 or (629) microcontrollers.

For the button to work, these microcontrollers will need to be flashed. Firmware files are laid out at the end of the article.

The transmitter and receiver circuits were slightly modified. Since these circuits are designed to control 4 teams. But I as a trial version, I used only one command. The rest just did not connect.

Transmitter.

Receiver.

Further, according to the scheme, we make boards. Unfortunately, the board files were not saved, so there is no way to upload it.


Whatever you are tormented with, how to connect RF modules, here is their pinout.

TRANSMITTER.


RECEIVER.


I found such a relay on the Internet, it will switch the lamp on and off.


When connecting a relay, be very careful and attentive, ring the relay before connecting or ask those who know. For example, on my relay, on the one hand there are 3 outputs, and on the other 2. So where there are 3 outputs, the signal from the transmitter is fed to the 2 extreme ones, and the load is connected to the middle and 2 from the other side.

Next, solder everything into place.




Then I took the lamp.

I made two conclusions in the wire. It is these conclusions that will be connected to the relay. Just connect everything before plugging the lamp into a socket.

Now about the operation of the device itself. As you saw in the last photo, and on the receiver circuit itself, there is a K1 toggle switch. Its role is that when it is turned off, when you press the button on the transmitter, the relay on the receiver will turn on our lamp. And as soon as you release the button, the relay will also immediately turn off the lamp. Now if you turn on the toggle switch on the receiver, it goes into hold command mode.That is, if you press the button and release it, the relay will trip and the lamp will light all the time until you press the button again.

The diagram shows that there are three more free conclusions that you can connect different loads to.

Below: firmware files (TX transmitter, RX receiver), as well as video of the device

FIRMWARE Knopka_proshivka.rar [1.01 Kb] (downloads: 875)

VIDEO WORKS


RF modules can be bought here: - from 35 to 45 rubles.

Collections: Scheme
7
7
7

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose
11 comments
As for me, I need to put a starting p-n-p transistor, so as not to discharge the battery idle
In parallel with the relay coil, do not forget to put a diode.
Thank you, I can’t get the source.
igor_ustynskyy
I don’t know how it was done in this program ... the author does not give assembler code (or does not). I don’t think there is anything complicated with checks ... We need to take the assembler code of this program and add 4 more (or how much you need) characters. Broadcast in hex and flash controller
Do not tell me HOW to encrypt further?
If you want to use all 4 buttons from each transmitter, then the second transmitter must be further encrypted (5, 6, 7, 8) ... and the code will be different. But, I repeat, they won’t work at the same time, because the frequency is the same.
Let's go again) I have a transmitter number 1 with 4 buttons (all used) and a receiver number 1, which controls 4 loads. I’m making transmitter # 2, sewing the microcontroller with firmware as transmitter # 1, making receiver # 2 and also flashing firmware as the first receiver. When I press any of the 4 buttons on transmitter No. 1, it will control the loads connected to both receiver No. 1 and receiver No. 2. Right?

So, it is necessary that this did not happen. That is, receiver No. 1 understood the command only from transmitter No. 1 and receiver No. 2 only from transmitter No. 2.

As I understand it, you need to edit the firmware files for each such betting transmitter-receiver, but how?
The idea here is this. Here you push 1 (first) button on the transmitter - 1 receiver is triggered. Press 2 buttons - 2 receivers work, etc. (up to 4 here). It works at the same frequency (433 MHz) with encryption. In principle, you can do - a transmitter with a button No. 1 and a receiver (with decryption) from No. 1. Second transmitter with button No. 2 and receiver (with decryption) No. 2. These pairs "do not see each other" due to encryption by code. Another thing is if you simultaneously transmit, they will simply interfere with each other. To completely separate it, they make it to different frequencies (channels). But, it is much more expensive, etc.
Probably need to explain in more detail. Suppose I have a transmitter with 4 buttons and a receiver for it. When I make another transmitter and receiver, the transmitter from the first bet will control the receiver from the second and vice versa the transmitter from the second will work with the first. It is necessary that the transmitters work only with `` their '' receivers.
The transmitter has an encoder (on the PIC12 controller), and the receivers have a decoder (on the controller). And there can be up to 4 receivers (in this case) and they can be separate from each other. Those. 1 transmitter with 4 buttons and 4 separate receivers. Work at one frequency 433 MHz
Good afternoon! Can you tell me how to fix the firmware so that it would be possible to make several independent transmitter-receiver pairs? What would the transmitter fit only one receiver and not work with others. Thanks in advance!

We advise you to read:

Hand it for the smartphone ...