I came here because I was looking for answers. You answered everything. Best voltage, best antenna arrangement, what about curly ones... All answered in entertaining informative content. Full marks. As a 23 year experienced software engineer your explanation of a const will stick with me forever. Legendary. :)
For anyone confused why the antenna should be 17,3 cm long ... its because it is approx. 1/4 of the wavelength of the carrier wave which is the optimum antenna length for transmission and recieving.
**important note** place a 100uF cap between VCC & GND close to the receiver. Any small ripple or noise or small abrupt changes in VCC will be amplified by the RX circuit and will show up as an output transition on the RX pin. This receiver is very sensitive and has poor power supply rejection ( very twitchy to noise on VCC)
As someone with no knowledge about radio transmitting, you did a good job explaining what's going on in that code example and how to do the basic test with the module. This isn't no knowledge of everything easy but with basic Arduino and coding knowledge, you should do well with this tutorial
Thank you Antony. I've just started with Arduino and my first simple project is to use this module. I've found lots of detailed coding but no one who has simply explained how to add the code to the library, until I found you. So far I have only installed the library and not set the circuits up but I'm already exited to finally get this far. Thank you John.
I am using a raspberry pi but I still watched this for information and I wanted to comment that this is one for the better videos as there is no music over the voice (what a pleasant change) and it is also fully explained well
Very good tutorial, thanks. I ended up using the HT12E and HT12D, encoder and decoder chips, to process the serial data into bytes, check address etc then connected the data busses, xmt and receive to Arduino pins, works well. You commented the code was unnecessarily complicated, with these chips no library is needed just pinmode settings, digital write and read. The decoder chip has a VT pin, valid transmission pin you can monitor in the loop section to see if a transmission is coming in.
He was commenting that the C/C++ syntax for a string constant (const char * ...) seems unnecessarily complicated, rather than the library. The Holtek (HT12E / HT12D) chips seem like a good way of doing it though. I looked into using them years ago but never got around to actually building something with them. If I manage to find them, I'll give it another go.
Thank you so much for this! I am currently using this module for a school project and I was not able to get it to work as needed until I got to this video.
Just to test it for myself, I put those little coil antennas on and got a few feet of distance! Made the length wire antenna you suggested and it's great! Thanks.
I'm testing a similar setup, have the transmitter on a nano with 6v and a cheap Baofeng radio with a 433mhz yagi and on a good day with line of sight I can get over 1km reception. I know that's not exactly what you're using but just to add a bit more info to the discussion.
12:13 ampersand means 'address of'. (pointer points to first byte of value. the function expects a pointer on first variable and expects a pointer on second variable too. pointer holds an address of memory) because normal variable used (not a pointer to dynamically allocated memory). to get something that is like a pointer of from a variable. we ask for address of that variable , where is it where it stores the value.
For those who use Uno (16Mhz) and mini (8Mhz) like I did, remember to set your uno speed to half. UNO: RH_ASK driver (1000, 11,12,10); Mini RH_ASK driver (2000, 11,12,10);
You should also be able to use shorter antennas that are equally effective as long as their lengths are exactly 86.5 mm or 43.25 mm (173/2 and 173/4, respectively (42.35 mm ~ 433 Hz).
Good Tutorial. Many thanks ! you can change the communications speed by the way lower speed = less errors = longer range = longer message time i tested speeds as low as 25 bits/sec , works but takes forever to send few bytes
Do you know what I love about your channel? the content you create is practical and actually informative and useful. Keep it clear and easily understandable, cheers 👍
Thanks Mr Dosage! I try to make it this way. It's difficult running the channel though because some people like different things. It's taken me 18 months to understand what people like. Just under half of my subscribers seem to come here to see what interesting things I get up to - They seem to like quick/snappy/interesting/getting started/informative type videos - They come for interesting/fast/clear info. Just under half seem to use the channel for entertainment purposes - They seem to prefer the long/drawn out/boring/talking/chilling out type videos (The type which I personally don't watch). The remaining subscribers seem to split into another two groups; One group watches/likes all videos regardless of the subject, and the other group watches certain ones in order to pick faults - presumably in order to make themselves feel better... LOL. If you can give me any feedback on this, that would be great!
have you tried to read any sensor values with the arduino mega before? if it works and you can see the value clearly then i think the problem is either in the transmitter or the receiver
Could this concept be used with the turn signal signal For instance if the turn signal is activated the transmitter will send signal to reciever indicating that the turn signal has been activated ??
@Curtis Evans, I read that the speed of light, 299,792,458 m/s, is divided by the frequency, 433,000,000 cycles/second, giving .69236meters per cycle, or 69.236cm and then 1/4 of that -- dunno why though -- is 17.3mm.
@@rongarza9488 Close, but you're out by a decimal place It's 0.173m, which is 17.3cm, not 17.3mm. But, yes, it's a quarter wavelength and that's how you calculate it.
Amazing video, but I still can't get either my receiver or transmitter to work at all. Do you have advice for how to test each individually to try and isolate the problem?
Very nice and briefly defined. can you please tell If I want to use Only Receiver and get to know what my Fan remote is transmitting? I want to control my fan using Arduino but instead of my Fan remote I want to transmit that frequency from Ardunio, how it can be done?
@@AntonyCartwright I have some lora modules that I am planning to take a look at next. Really wanted to get these ones working before I tried them out though :(
My transmitter/receiver combo is a four channel 433Mhz setup with a 1527 chipset working just fine as a standalone receiver and transmitter. Hooked up an led to the receiver and had no trouble turning it on and off with the transmitter. When I connect it to the Nano with data pin 0 connected to pin 2 on the Nano, code loaded with no errors, I get no output on the serial monitor. Baud rate is set to 9600 and com port is correct. I'm a bit stumped as to why this is not working for me??? I inserted a Serial.println message after the Serial.begin statement, and that shows up fine too, but nothing else???
Great video, thanks. For a better result I recommend investing some more money in a better receiver called RXB6. The RXB6 is a superheterodyne receiver and has a much better sensitivity and you will get a better range. Don't forget the 173mm antenna on both the transmitter and receiver.
The receiver board in my weather station has died it operates on 433 mhz and uses an lm358 op amp the same as this board 3 connections ground data and vcc will that receiver board be able to replace mine they look very similar?
i want to make my own transmitter receiver module with which crystal oscillators to use, i haven't yet found a vid to explain it, that would be cool if you made one
Do you have to have an arduino on both sides? If I wanted a very simple sensor, can I just power the transmitter side and pulse it's data line or does the Tx just not work without the processor?
wait so it is data vcc and gnd? I've put vcc on data and data on vcc then. but it still worked. now i tried it like in the video and it still works fine. What is this now, how is it possible?
This should work without antennas shouldn't it? And if it does i have a question about why is my printing so slow instead of 0.2 seconds like with yours it takes me 5 seconds or more just to print one.
Hello, When i plug my receiver into my arduino , arduino shuts off as if there is a short or something. iIve tested with my other arduino and my other receivers and the same thing happens is this normal?
It's not normal. The chances are that you're pulling too much current. While the Arduino is running, connect the receiver gnd to gnd, then vcc to vcc. Does it still do itm
It works with the regular blink code on the transmitter an your code on the receiver both on pin 13 but your code on the transmitter an receiver doesn't work,I opened the serial monitor an even solidered on antennas but nothing gets transmitted,what could I be doing wrong?
whether this transmitter receiver pair can be used for making a walkie-talkie? i mean with two pair of transmitter-receivers? If not, please give me a brief explanation. I am novice in RF communication, but i know about voltage, current & arduino.
These modules can not be used for walkie- talkie. The max bit rate is less than 2000 bits pr second. So their primary use is remote control of lights, garage doors or door bells etc.
Hi, Nice video. I bought some HC12 433mhz transceiver modules that I am hoping to use to link my pc with my drone so I can upload code remotely. Have you done anything link this before, or do u know if it is possible and what level of coding is involved. I am using an arducopter APM flight controller.
@@evanfrabell8884 Thanks, so the receiver hears both transmitters -- hopefully one at a time -- and then the program decides which transmitter the message it received came from. Super!
There are protocols for dealing with this, which comes down to how you might run a meeting of a few people in the same room. It works better if all participants can listen as well as talk. Rule 1: Listen before you start talking, to make sure no one else is already talking. Quite often, two or more people will start talking at once. This is most easily resolved if the person in charge of the meeting can tell everyone to shut up, then cue one person to speak. Failing that, the person receiving can acknowledge hearing the message. If there's no acknowledgment, rule 2 applies: Rule 2: If you weren't heard, shut up for a while, then try again. That method actually is used in some forms of wireless networking - wait a random amount of time (use a pseudo random number generator) then try again. This all relies on all participants being able to both talk and listen, though usually not doing both at the same time. As Evan said, each message also needs to contain the identity of the sender. If you just need two transmitters, one simple way would be to use two different wave bands, e.g one pair on 315MHz and one on 433MHz. Provided the transmitters aren't too close to the receivers, you should get enough separation to use both at once. You might want a separate microcontroller for each receiver though, or at least a separate core. If you use a dual core microcontroller, like the Raspberry Pi Pico, you may be able to get a separate instance of the library running on each core.
@@TooSlowTube Thanks, TooSlowTube. I think the problem was originally "solved" with something called the Aloha Protocol. But, I like your 433 / 315 idea. That would let me know who is transmitting without them having to identify themselves.
Great video, I have a question for transmitter. I don't want a arduino for transmitter and send fixed message for only error exception. For example "Door number 2039 is open". Is there a module you can recommend
You can't do that with this equipment. The libraries only tell you about data which has been pulled though, as far as I'm aware. You'd be better off getting GPS modules.
how to multiple RF(433Mhz) Transmitter Receiver module work in one place.beacause when i sent data the receiver end another receiver working that time.have you got some tips??
@AntonyCartwright when i download the .zip file from radiohead and follow the directions for putting the library into the sketch, ask_transmitter and ask_reciever dont show up. is this a problem with radiohead or can i fix it somehow?
So understanding this. I could use a magnetic reed switch to trigger sending say 13579, the other receives it, an if command reads the 13579, triggers a servo. And seeing i could do that once, i could send a seperate message with a second magentic reed switch to send 02468 to send a separate message to trigger the second servo? literally day 1 of coding for me here
I've been looking into making a wireless on/off rocker switch set up for the light bars in my truck. I'm wondering if this type of an rf switch would work to power on and off the lights without running wires into the cab. (Ie. Transmitter in cab receiver under the hood to control more then one like) is it possible to do with these?
I don't know if you still need an answer, but you can usually test a TV remote control by pointing it at a digital camera, and watching the display / screen on the camera. Digital cameras see far enough into the infrared to detect the output of most remotes, but it gets displayed as visible light.
There are Arduino libraries for LCD displays and OLED graphical displays. If you just want a text message, a simple text based LCD display should be enough. Just one thing - some LCDs have a way to adjust the contrast, and you often can't see anything until you do. If you're connecting a bare LCD panel to an Arduino, you usually have to add a 10k Ohm preset potentiometer (aka trimmer pot), to set the contrast. If this is unfamiliar to you, you might be better off with an OLED display.
Hi Antony, can yo do this link insted of arduino nano, but attiny85? And then is it possible to drive two brushed dc motors back and forward at the same time for drift?
dannymaciejewski That is exactly 1/4 length of 433Mhz frequency wavelength (692.4mm). Antennas are usually 1/4 or 1/2 length of the wavelength you want to transmit/receive.
I want to control two stepper motors with joystick and using 433Mhz Rf to make Wireless control.. So how can i change this code to work with my project?
I think I may have bought these in error yesterday. Can you send raw data through like a video feed, or even 2 devices on 2 different frequencies to send usb data?
Just being picky but the silver thing on the TX is not a crystal.. it's a complete crystal controlled transmitter IC. Same with the chip on the RX - that a complete receiver not an amplifier. The antenna length on the instructions that came with mine say 250mm ant on the TX and 320mm on the RX. Although 173mm is an exact quarter wavelength on 433Mhz, the longer lengths given on my info doc MIGHT be to achieve a better impedance match to the devices...... but.... edit: I can now see that there are variants of this Rx - TX pair. The antenna lengths above came from info with a pair in which the transmitter unit has only ONE coil on the board. No doubt 173mm is correct for the version above. Check the supplier's pictures. Online chat suggests the receiver is very poor quality and can be bettered with the equally cheap RXB12 receiver. (a supeheterodyne design)
Sir i tried to use this as to make my project but everytime i put another if statement inside the if statement its my led output is not function and also the transmiter send messgae and the receiver accept it and then the led output please help 😭😭😣😣😣😣
I'm having a hell of a time just getting the receiver tuned. Pretty sure the one I got is just bad out of the box because it doesn't draw any current at all from my bench power supply.
Hello Anthony, i have a question. my modules comes without that 3 turn coil on emitor module. Also the receptor module haven't that normal 0,5 W resistor solder on pcb face with smd components. is about that big resistor. i can't see the color to read the value. can u help me with value of that resistor? Thanks a lot !
This is brilliant, thanks! I acquired 2 sets a few years back but at that time there were no libraries for them, and I had to write my own basic drivers for them, using them like a raw serial link was dodgy at best for me. This will let me get a lot more use out of them.
Hey, great video.. I m trying bidirectional communication using these sensors. I have a transmitter and receiver on remote and a transmitter and receiver on robot. The robot will send the battery voltage to the remote, (only if the voltage is in acceptable limit the remote should work), then the remote will send command to the robot to move (forward backward sideward etc). I m doing this using arduino nano but bidirectional is not working. have you tried bidirectional communication, is it working?
@@saulpayan1171 there is an inbuilt example (reliable datagram) with the library which does bidirectional communication. You can try that. I was able to achieve it.
my transmission is off by a couple hundred is the ant lengh responsable for this? im tryin 2 tx on 433.920 but its 433.681 any ideas? also im using the rc switch lib instead of radiohead at the mo if that helps?
You might have the 315 MHz instead of the 433. To find the right length, use the equation (speed of light) = (frequency)(wavelength), so 3*10^8 = 315000000 * (wavelength). Use whatever frequency you have and solve for wavelength. Then, just keep dividing the wavelength by 2 until you get a reasonable length. In this equation, the wavelength comes to 95 cm, which is a long wire. Divide by 2 a couple of times to get 23.8 cm or even 11.9 cm, which is a good length.Sorry if this is kind of late.
Great video. I've been looking at how to get weather data from my external weather station to my internal display. This looks like a great way to do it. If I were to use an ESP8266 or ESP32 for the MCU, would there be a better way ( Internally with the ESP's capabilities) to communicate betwen them rather than the RF(433Mhz) unit? I noticed that while you were going through the library there was mention of the ESP8266 MCU.
Hi William, do you want to communicate with the external weather station to the ESP32 wirelessly or with wires? Because you could use the simple serial communication between the two sides, or, depending on your range, you could use LoRa modules for long range wireless communication. It depends on the setup you have.
I'd like to do it wireless. But I'm looking for a way of doing it within the capabilities of the ESp's rather thn having to add extra devices. Same is true of LoRa. I think you need to have an extra LoRa server for this to work. There must be some way to have the ESP's talk to each other over either over my WiFi orto each other directly!
William Miller So you will then need to have two ESP32 boards. One of the boards will be hooked up to the outside weather station to get the data and transmit it to the other board inside, where it can display the data. Since the ESP32 has WiFi capabilities, no external modules will be needed. I’m sure that there are many videos you can find about this online.
William Miller yes, with two ESPs, it's fairly easy. You can do this easily if you have a router by putting both into wificlient mode. Then just get the IPs and send/receive data. You can also make one ESP into an access point of you like... This will also work if you have no router...
4 года назад+1
You should open an account on Brave to receive BAT rewards as an additional option to Patreon.
Hey I really like your video! Pretty much exactly what I need right now - unfortunately I am very dissatisfied with the audio quality. I'd be happy to help you reduce the clipping, I think you can add another audio track in the youtube studio editor, so I could just send you the edited audio file in same length!
Hey, thanks. Unfortunately, at the time when I was recording those videos, RUclips wasn't paying me enough to warrant buying decent equipment. It was just me making free videos for people. Things are changing now, and so will my equipment. 😀
hey i dunno why but i got an error with my transmitter C:\Users\knoxt\AppData\Local\Temp\arduino_modified_sketch_890292\ask_transmitter.pde: In function 'void setup()': ask_transmitter:16:10: error: 'driver' was not declared in this scope if (!driver.init()) ^ C:\Users\knoxt\AppData\Local\Temp\arduino_modified_sketch_890292\ask_transmitter.pde: In function 'void loop()': ask_transmitter:28:5: error: 'driver' was not declared in this scope driver.send((uint8_t *)msg, strlen(msg)); ^ exit status 1 'driver' was not declared in this scope that was the error code
I came here because I was looking for answers. You answered everything. Best voltage, best antenna arrangement, what about curly ones... All answered in entertaining informative content. Full marks. As a 23 year experienced software engineer your explanation of a const will stick with me forever. Legendary. :)
Thanks for this comment! Xxx
For anyone confused why the antenna should be 17,3 cm long ... its because it is approx. 1/4 of the wavelength of the carrier wave which is the optimum antenna length for transmission and recieving.
would it work if i make a spring with that length of wire?
@@f.a3202 Yes, that works too
Gauge?
@@HappyHermittalso curious if gauge plays into transmission
**important note**
place a 100uF cap between VCC & GND close to the receiver. Any small ripple or noise or small abrupt changes in VCC will be amplified by the RX circuit and will show up as an output transition on the RX pin. This receiver is very sensitive and has poor power supply rejection ( very twitchy to noise on VCC)
W comment
As someone with no knowledge about radio transmitting, you did a good job explaining what's going on in that code example and how to do the basic test with the module. This isn't no knowledge of everything easy but with basic Arduino and coding knowledge, you should do well with this tutorial
Thank you Antony. I've just started with Arduino and my first simple project is to use this module. I've found lots of detailed coding but no one who has simply explained how to add the code to the library, until I found you. So far I have only installed the library and not set the circuits up but I'm already exited to finally get this far. Thank you John.
I am using a raspberry pi but I still watched this for information and I wanted to comment that this is one for the better videos as there is no music over the voice (what a pleasant change) and it is also fully explained well
Very good tutorial, thanks. I ended up using the HT12E and HT12D, encoder and decoder chips, to process the serial data into bytes, check address etc then connected the data busses, xmt and receive to Arduino pins, works well. You commented the code was unnecessarily complicated, with these chips no library is needed just pinmode settings, digital write and read. The decoder chip has a VT pin, valid transmission pin you can monitor in the loop section to see if a transmission is coming in.
He was commenting that the C/C++ syntax for a string constant (const char * ...) seems unnecessarily complicated, rather than the library. The Holtek (HT12E / HT12D) chips seem like a good way of doing it though. I looked into using them years ago but never got around to actually building something with them. If I manage to find them, I'll give it another go.
Thank you so much for this! I am currently using this module for a school project and I was not able to get it to work as needed until I got to this video.
Just to test it for myself, I put those little coil antennas on and got a few feet of distance! Made the length wire antenna you suggested and it's great! Thanks.
I'm testing a similar setup, have the transmitter on a nano with 6v and a cheap Baofeng radio with a 433mhz yagi and on a good day with line of sight I can get over 1km reception. I know that's not exactly what you're using but just to add a bit more info to the discussion.
Hi is there a tutorial for that for a beginner?
Is the yagi home made ? Can you provide a link to a drawing or sketches?
12:13
ampersand means 'address of'.
(pointer points to first byte of value.
the function expects a pointer on first variable and expects a pointer on second variable too.
pointer holds an address of memory)
because normal variable used (not a pointer to dynamically allocated memory).
to get something that is like a pointer of from a variable.
we ask for address of that variable , where is it where it stores the value.
For those who use Uno (16Mhz) and mini (8Mhz) like I did, remember to set your uno speed to half. UNO: RH_ASK driver (1000, 11,12,10); Mini RH_ASK driver (2000, 11,12,10);
You should also be able to use shorter antennas that are equally effective as long as their lengths are exactly 86.5 mm or 43.25 mm (173/2 and 173/4, respectively (42.35 mm ~ 433 Hz).
I struggled with this for like 1h but this video help me a lot! Thank you very much ❤
Good Tutorial. Many thanks !
you can change the communications speed by the way
lower speed = less errors = longer range = longer message time
i tested speeds as low as 25 bits/sec , works but takes forever to send few bytes
How can I pair other covered rf remote control with this module
Good explanation, But at some point the video starts to lag a long way behind the audio., which confused me..
stuartajc you're right. :(
Do you know what I love about your channel? the content you create is practical and actually informative and useful. Keep it clear and easily understandable, cheers 👍
Thanks Mr Dosage! I try to make it this way. It's difficult running the channel though because some people like different things. It's taken me 18 months to understand what people like. Just under half of my subscribers seem to come here to see what interesting things I get up to - They seem to like quick/snappy/interesting/getting started/informative type videos - They come for interesting/fast/clear info. Just under half seem to use the channel for entertainment purposes - They seem to prefer the long/drawn out/boring/talking/chilling out type videos (The type which I personally don't watch). The remaining subscribers seem to split into another two groups; One group watches/likes all videos regardless of the subject, and the other group watches certain ones in order to pick faults - presumably in order to make themselves feel better... LOL. If you can give me any feedback on this, that would be great!
Antony Cartwright can u start a car for this
Great video, but my circuit doesn't seem to be working. Could it be because I'm using a Mega instead of a Nano or Uno?
No...99% not
have you tried to read any sensor values with the arduino mega before? if it works and you can see the value clearly then i think the problem is either in the transmitter or the receiver
Could this concept be used with the turn signal signal For instance if the turn signal is activated the transmitter will send signal to reciever indicating that the turn signal has been activated ??
What I want to know is, how did you figure 173mm for your ant. length and not 165mm for 433MHz..?
@Curtis Evans, I read that the speed of light, 299,792,458 m/s, is divided by the frequency, 433,000,000 cycles/second, giving .69236meters per cycle, or 69.236cm and then 1/4 of that -- dunno why though -- is 17.3mm.
@@rongarza9488 Close, but you're out by a decimal place It's 0.173m, which is 17.3cm, not 17.3mm.
But, yes, it's a quarter wavelength and that's how you calculate it.
Amazing video, but I still can't get either my receiver or transmitter to work at all. Do you have advice for how to test each individually to try and isolate the problem?
Very nice and briefly defined. can you please tell If I want to use Only Receiver and get to know what my Fan remote is transmitting? I want to control my fan using Arduino but instead of my Fan remote I want to transmit that frequency from Ardunio, how it can be done?
great video.
Sadly, it looks like I have a duff bag of these from Bang Good.
Literally nothing is being sent or received :(
They're poor quality. Don't bother. Try reyax rylr modules. 🙂
@@AntonyCartwright I have some lora modules that I am planning to take a look at next.
Really wanted to get these ones working before I tried them out though :(
how far can the RF range cover in within plain sight and in building?
My transmitter/receiver combo is a four channel 433Mhz setup with a 1527 chipset working just fine as a standalone receiver and transmitter. Hooked up an led to the receiver and had no trouble turning it on and off with the transmitter. When I connect it to the Nano with data pin 0 connected to pin 2 on the Nano, code loaded with no errors, I get no output on the serial monitor. Baud rate is set to 9600 and com port is correct. I'm a bit stumped as to why this is not working for me??? I inserted a Serial.println message after the Serial.begin statement, and that shows up fine too, but nothing else???
Same here. Did you find any resolution?
Great video, thanks. For a better result I recommend investing some more money in a better receiver called RXB6. The RXB6 is a superheterodyne receiver and has a much better sensitivity and you will get a better range. Don't forget the 173mm antenna on both the transmitter and receiver.
The receiver board in my weather station has died it operates on 433 mhz and uses an lm358 op amp the same as this board 3 connections ground data and vcc will that receiver board be able to replace mine they look very similar?
The receiver is just a tuned circuit, so there is no reason why it shouldn't work, other than the tuning of the circuit via the variable inductor.
Can i have a copy of your weather station project sir?
What distance does it cover?
Can I read ultrasonic data and send it through this system? and what is the maximum distance with this? I need to know this urgently thank y o
i want to make my own transmitter receiver module with which crystal oscillators to use, i haven't yet found a vid to explain it, that would be cool if you made one
does the reciever know which transmitter to be listening for? ... can one transmitter drive 2 or more recievers by accident for example?
hi, in the small module i have missing the small coil, only have the bigger one, is it an important missing part?
Do you have to have an arduino on both sides? If I wanted a very simple sensor, can I just power the transmitter side and pulse it's data line or does the Tx just not work without the processor?
wait so it is data vcc and gnd? I've put vcc on data and data on vcc then. but it still worked. now i tried it like in the video and it still works fine. What is this now, how is it possible?
Does the aerial wire need to be straight or can it bend within the enclosure?
This should work without antennas shouldn't it? And if it does i have a question about why is my printing so slow instead of 0.2 seconds like with yours it takes me 5 seconds or more just to print one.
It's supposed to have an antenna of an extract length, from what I remember. To be honest though, these modules are not very good quality.
Hello,
When i plug my receiver into my arduino , arduino shuts off as if there is a short or something. iIve tested with my other arduino and my other receivers and the same thing happens is this normal?
It's not normal. The chances are that you're pulling too much current. While the Arduino is running, connect the receiver gnd to gnd, then vcc to vcc. Does it still do itm
It works with the regular blink code on the transmitter an your code on the receiver both on pin 13 but your code on the transmitter an receiver doesn't work,I opened the serial monitor an even solidered on antennas but nothing gets transmitted,what could I be doing wrong?
How much power does the transmitter consume?
Can you explain the 433 mhz transmitters and receiver module circuit diagram
whether this transmitter receiver pair can be used for making a walkie-talkie? i mean with two pair of transmitter-receivers? If not, please give me a brief explanation. I am novice in RF communication, but i know about voltage, current & arduino.
These modules can not be used for walkie- talkie. The max bit rate is less than 2000 bits pr second. So their primary use is remote control of lights, garage doors or door bells etc.
@@oladunk9986 thank you.
Hi, Nice video.
I bought some HC12 433mhz transceiver modules that I am hoping to use to link my pc with my drone so I can upload code remotely. Have you done anything link this before, or do u know if it is possible and what level of coding is involved. I am using an arducopter APM flight controller.
Andrew Walsh interesting idea, would love an update on your project!
Can I use a esp32 as transmitter And arduino uno as reciever?
How can I have 2 of these set up near each other without them interfering with each other?
What to do when there are two transmitters and one receiver ? How can the receiver distinguish one transmitter from the other?
@@evanfrabell8884 Thanks, so the receiver hears both transmitters -- hopefully one at a time -- and then the program decides which transmitter the message it received came from. Super!
There are protocols for dealing with this, which comes down to how you might run a meeting of a few people in the same room. It works better if all participants can listen as well as talk.
Rule 1: Listen before you start talking, to make sure no one else is already talking.
Quite often, two or more people will start talking at once. This is most easily resolved if the person in charge of the meeting can tell everyone to shut up, then cue one person to speak.
Failing that, the person receiving can acknowledge hearing the message. If there's no acknowledgment, rule 2 applies:
Rule 2: If you weren't heard, shut up for a while, then try again.
That method actually is used in some forms of wireless networking - wait a random amount of time (use a pseudo random number generator) then try again.
This all relies on all participants being able to both talk and listen, though usually not doing both at the same time. As Evan said, each message also needs to contain the identity of the sender.
If you just need two transmitters, one simple way would be to use two different wave bands, e.g one pair on 315MHz and one on 433MHz. Provided the transmitters aren't too close to the receivers, you should get enough separation to use both at once.
You might want a separate microcontroller for each receiver though, or at least a separate core. If you use a dual core microcontroller, like the Raspberry Pi Pico, you may be able to get a separate instance of the library running on each core.
@@TooSlowTube Thanks, TooSlowTube. I think the problem was originally "solved" with something called the Aloha Protocol. But, I like your 433 / 315 idea. That would let me know who is transmitting without them having to identify themselves.
Great video, I have a question for transmitter. I don't want a arduino for transmitter and send fixed message for only error exception. For example "Door number 2039 is open". Is there a module you can recommend
ATTINY85?
I'm working on a project and I need it to input the distance between the 2 arduinos in meters
You can't do that with this equipment. The libraries only tell you about data which has been pulled though, as far as I'm aware. You'd be better off getting GPS modules.
Can you tell me what the current consumption of receiver module when ideal ON but not receiving anything?
how to multiple RF(433Mhz) Transmitter Receiver module work in one place.beacause when i sent data the receiver end another receiver working that time.have you got some tips??
Thank you, Can you make a video using the SRX882 & STX882 V1.3
because they need just 3.6V
Best regards.
Hamza Lee hey, I'll try!!! I have those I think!
@AntonyCartwright when i download the .zip file from radiohead and follow the directions for putting the library into the sketch, ask_transmitter and ask_reciever dont show up. is this a problem with radiohead or can i fix it somehow?
So understanding this. I could use a magnetic reed switch to trigger sending say 13579, the other receives it, an if command reads the 13579, triggers a servo. And seeing i could do that once, i could send a seperate message with a second magentic reed switch to send 02468 to send a separate message to trigger the second servo?
literally day 1 of coding for me here
Hi
How can i send a string that have 24 byte 0&1 by rc switch transmiter
can the data become forward and reverse output ? if we want to add an esc or motor
Could you put a larger antenna on the receiver to gain further range , only currently getting about 15m from these
Buy a better receiver like RXB6. More expensive but a lot better. Don't forget the antenna, 173 mm on both transmitter and receiver.
I've been looking into making a wireless on/off rocker switch set up for the light bars in my truck. I'm wondering if this type of an rf switch would work to power on and off the lights without running wires into the cab. (Ie. Transmitter in cab receiver under the hood to control more then one like) is it possible to do with these?
can I use this set up to test tv, dvd or sat remote controls to see if every button is shooting IR out?
I don't know if you still need an answer, but you can usually test a TV remote control by pointing it at a digital camera, and watching the display / screen on the camera.
Digital cameras see far enough into the infrared to detect the output of most remotes, but it gets displayed as visible light.
Hello guys i have one question .. is this device enough to make a relay attack on cars?
is there something I should consider when the transmitter is connected to my arduino mega and my receiver to an esp32?
hi
Thank you Antony
I didn't try on Uno but it doesn't worked on esp32
i want to display the data at the receiver's end, how do i connect this
please help
There are Arduino libraries for LCD displays and OLED graphical displays. If you just want a text message, a simple text based LCD display should be enough.
Just one thing - some LCDs have a way to adjust the contrast, and you often can't see anything until you do. If you're connecting a bare LCD panel to an Arduino, you usually have to add a 10k Ohm preset potentiometer (aka trimmer pot), to set the contrast. If this is unfamiliar to you, you might be better off with an OLED display.
Hi Antony, can yo do this link insted of arduino nano, but attiny85? And then is it possible to drive two brushed dc motors back and forward at the same time for drift?
Can anyone please explain the significance of the exact 173mm length?
dannymaciejewski That is exactly 1/4 length of 433Mhz frequency wavelength (692.4mm). Antennas are usually 1/4 or 1/2 length of the wavelength you want to transmit/receive.
I want to control two stepper motors with joystick and using 433Mhz Rf to make Wireless control.. So how can i change this code to work with my project?
can you teach the code on how to send sensor data to receiver
very well put togeather and exsplaining!
im building a high altitude rocket, how can i get the range to 40,000+ feet?
I think I may have bought these in error yesterday. Can you send raw data through like a video feed, or even 2 devices on 2 different frequencies to send usb data?
Hi, i want to use 4 transmitter with one receiver. Do you think it is possible? Any interference problem?
Just being picky but the silver thing on the TX is not a crystal.. it's a complete crystal controlled transmitter IC. Same with the chip on the RX - that a complete receiver not an amplifier. The antenna length on the instructions that came with mine say 250mm ant on the TX and 320mm on the RX. Although 173mm is an exact quarter wavelength on 433Mhz, the longer lengths given on my info doc MIGHT be to achieve a better impedance match to the devices...... but....
edit: I can now see that there are variants of this Rx - TX pair. The antenna lengths above came from info with a pair in which the transmitter unit has only ONE coil on the board. No doubt 173mm is correct for the version above. Check the supplier's pictures. Online chat suggests the receiver is very poor quality and can be bettered with the equally cheap RXB12 receiver. (a supeheterodyne design)
Sir i tried to use this as to make my project but everytime i put another if statement inside the if statement its my led output is not function and also the transmiter send messgae and the receiver accept it and then the led output please help 😭😭😣😣😣😣
I'm having a hell of a time just getting the receiver tuned. Pretty sure the one I got is just bad out of the box because it doesn't draw any current at all from my bench power supply.
what to do when there are two transmitter and one receiver ? How to distinguish which one is nearer to the receiver?
Hi Great video!! Hello, anyone knows if its possible to use this 433Mhz receiver to receive commands from Key Garage transmitter?
Hello Anthony, i have a question. my modules comes without that 3 turn coil on emitor module. Also the receptor module haven't that normal 0,5 W resistor solder on pcb face with smd components. is about that big resistor. i can't see the color to read the value. can u help me with value of that resistor? Thanks a lot !
Use a multimeter! :-)
@@AntonyCartwright yes i know how to use a multimeter and also i know how to read color code but that resistor is missing from receptor module.
@@AntonyCartwright thanks i manage to freeze image and i saw brown -black-green-silver. so 10x100k tolerance +/- 10%
Can I give the received to a speaker ?
This is brilliant, thanks! I acquired 2 sets a few years back but at that time there were no libraries for them, and I had to write my own basic drivers for them, using them like a raw serial link was dodgy at best for me. This will let me get a lot more use out of them.
Hey, great video..
I m trying bidirectional communication using these sensors.
I have a transmitter and receiver on remote and a transmitter and receiver on robot.
The robot will send the battery voltage to the remote, (only if the voltage is in acceptable limit the remote should work), then the remote will send command to the robot to move (forward backward sideward etc).
I m doing this using arduino nano but bidirectional is not working.
have you tried bidirectional communication, is it working?
@@saulpayan1171 there is an inbuilt example (reliable datagram) with the library which does bidirectional communication. You can try that. I was able to achieve it.
Does it work with a Raspberry pi pico too?
can you transmit music?
my transmission is off by a couple hundred is the ant lengh responsable for this? im tryin 2 tx on 433.920 but its 433.681 any ideas? also im using the rc switch lib instead of radiohead at the mo if that helps?
You might have the 315 MHz instead of the 433. To find the right length, use the equation (speed of light) = (frequency)(wavelength), so 3*10^8 = 315000000 * (wavelength). Use whatever frequency you have and solve for wavelength. Then, just keep dividing the wavelength by 2 until you get a reasonable length. In this equation, the wavelength comes to 95 cm, which is a long wire. Divide by 2 a couple of times to get 23.8 cm or even 11.9 cm, which is a good length.Sorry if this is kind of late.
@@brendonlovejoy2376 got 1 of each and read the label its correct label.
How responsive is this method? 2.5ms, 4ms?
Could you provide links to some transmitters and receivers please ?
Great video.
I've been looking at how to get weather data from my external weather station to my internal display. This looks like a great way to do it. If I were to use an ESP8266 or ESP32 for the MCU, would there be a better way ( Internally with the ESP's capabilities) to communicate betwen them rather than the RF(433Mhz) unit?
I noticed that while you were going through the library there was mention of the ESP8266 MCU.
Hi William, do you want to communicate with the external weather station to the ESP32 wirelessly or with wires? Because you could use the simple serial communication between the two sides, or, depending on your range, you could use LoRa modules for long range wireless communication. It depends on the setup you have.
I'd like to do it wireless. But I'm looking for a way of doing it within the capabilities of the ESp's rather thn having to add extra devices. Same is true of LoRa. I think you need to have an extra LoRa server for this to work. There must be some way to have the ESP's talk to each other over either over my WiFi orto each other directly!
William Miller So you will then need to have two ESP32 boards. One of the boards will be hooked up to the outside weather station to get the data and transmit it to the other board inside, where it can display the data. Since the ESP32 has WiFi capabilities, no external modules will be needed. I’m sure that there are many videos you can find about this online.
Kal King, I'll give it a try. Thanks.
William Miller yes, with two ESPs, it's fairly easy. You can do this easily if you have a router by putting both into wificlient mode. Then just get the IPs and send/receive data. You can also make one ESP into an access point of you like... This will also work if you have no router...
You should open an account on Brave to receive BAT rewards as an additional option to Patreon.
Thanks, I'll look into it.
Thanks 🙏 all the best from Angola 🇦🇴
Thanks!
can we use node mcu with this code
Will this work with RFID tag like Key FOB?
10:00, "const means a variable that doesn't change" O.O
Hey I really like your video! Pretty much exactly what I need right now - unfortunately I am very dissatisfied with the audio quality. I'd be happy to help you reduce the clipping, I think you can add another audio track in the youtube studio editor, so I could just send you the edited audio file in same length!
Hey, thanks. Unfortunately, at the time when I was recording those videos, RUclips wasn't paying me enough to warrant buying decent equipment. It was just me making free videos for people. Things are changing now, and so will my equipment. 😀
Does anyone know if there is a way to use RF with only one arduino?
hey i dunno why but i got an error with my transmitter
C:\Users\knoxt\AppData\Local\Temp\arduino_modified_sketch_890292\ask_transmitter.pde: In function 'void setup()':
ask_transmitter:16:10: error: 'driver' was not declared in this scope
if (!driver.init())
^
C:\Users\knoxt\AppData\Local\Temp\arduino_modified_sketch_890292\ask_transmitter.pde: In function 'void loop()':
ask_transmitter:28:5: error: 'driver' was not declared in this scope
driver.send((uint8_t *)msg, strlen(msg));
^
exit status 1
'driver' was not declared in this scope
that was the error code
What gauge wire?
Kitne metar pe kam karta he
Mine is not working and I got the reciver that is adjustable I think that is the problem but I am not sure???
The out of sync audio kinda throws me off during the coding a bit. :')
how to make TX with out arduino only need 2 boutons (up and down ) and reception with 1 arduino
Does the circuit have a delay?
you make good quality videos and the very easy to follow and helpful thank you how do you not have 100k scribers
Thanks Nick!