Love the video. Very well done and detailed. I am trying to do this with 2 Mega 2560 R3 boards. Followed your example 1 to the letter but neither Serial Monitor will output any message sent from the other board. Any advice?
I found this video very helpful but just a query. I am planning to send a cubesat made with arduino into space. Just need some guidance for live details from sensors..
Can u plz specify the details of the capacitor you used. Can we use a normal capacitor. And what is its range when we add several walls in between? Can I use it for 100meter communication but with several walls in between like in an apartment. What's its range with walls and obstruction.
EXCELLENT!! _ Thank you very much for your work and time :¬) Thank you, Merci, Grazie, Gracias, shieh-shieh, dhanyavaad, Spasibo, Arigato, Danke, Dziekuje and Mulțumesc.
Hello, wonderful project! , a question, we could replace the HC-12 cards and use the RF1276 to give a greater range using the same configuration of the arduino code?
hi can you make a tutorial to control brushless motor with potentiometer with HC 12 module. (master HC-12 with potentiometer and slave HC-12 with brushless motor) using this we can control gimbal roll .we can add gimbal to toy grade drones and we can control roll with this.
Hi Dejan, great video! I'm currently working on building an arduino based quadrocopter. Could you recommend using the HC-12 module for this (since you said it's range is up to 1.8 km)? I'm currently testing the nrf24 module but had some problems with it.
There are different models of the NRF with different antennas. The one I bought had a range of maybe 700 - 800 with open space (there's also a guy on RUclips who does the testing and goes more in the details about the different types). This depends also how the transmitter and receiver are tilted relative to each other. I did tests as I programmed the transmitter to send some data to the receiver which was hooked to a laptop where I looked at the data through the serial interface. Between 300 and 400 meter there was a performance drop (meaning not everything was received) which got better after that point (I don't know why). At about 600 meter the performance started dropping. Keep in mind that there will be variation when the quadrocopter is flying and the receiver and transmitter aren't aligned anymore. Also the performance got significant worse when obsticels were in the way (trees, bushes...) All in all I wasn't happy with the nrf so I'm looking for better alternatives. It can be that there is actually a better nrf module (better antenna) and if you're planning on building something that can fly and you're not too concerned over the range when there will be no problem.
Dani Master - could u pls tell me how to build a arduino quadcopter or give me ur contact no., I'm just 14 yrs old boy who build quadcopter so i need a bit guidance from you pls
sir super video, can you help me to make a project to position stepper motor by entering position values by HMI...? it should be wirelessly by using HC-12 module
Hello, I am with a project that is yours, it is about communication between two arduinos through an HC-12 to that project. I wanted to add something else: an activation on some digital pin in the receiver, can it be?
hello sir, i am working on a project in which i need a communicate underground from ground, so i need your opinion about the sensor which i should use for communication, and even i want to measure distance of my BOT from surface(ground).
wonderful... how about using something like this to make a wireless oscilloscope BNC probe input? 0 to100k to 200k hertz bandwidth? thanks...:) so not to start from scratch
Hi, I'm looking for a similar project. I would like to put the accelerometer on a motorized satellite dish, and at home see the Azimuth and Elevation of the dish pointing on the LCD display. Can you replace the Stepper Motor and code with an LCD display in your project? Thanks for the reply
Banggood sell both the HC-12 module, and an identical GT-38 module, with the GT-38 version costing slightly more than the HC-12. Does anyone know if units are identical with the same default settings, and whether one is better than the other?
Hi! I tried to transmitt a double array from an arduino mega to an arduino uno via SoftwareSerial. But i can't figure out, how to transmitt the datas correctly, because all numbers after the "," of the transmitted number dont show up on the receiver. I try to transmit coordinates. Do you know how to deal with this problem? Thank you for an answer. Greetings
I hope you respond to me. I'm trying to send data to multiple points using a DTU Serial Transmitter. Let's say I have 3 units spaced apart where the first A unit receives incoming bytes ASCII "DATA1" from the Transmitting unit which is a computer. The computer sends "DATA1" out the serial to the first receiver which is in range. However B and C transceiver are out of range of the Computer's Transmitter. So I receive the data in "DATA1" in Transceiver A and now I want to relay that to Transceiver B. However B may be in range enough to receive some of the bytes from the Computer but not all. It is well within the range to receive from Transceiver A. Once relayed from A to B, B transceiver relays the original "DATA1" to C. Here's where the problem in my code is getting confused. You see When T(a) receives DATA1 received from the Computer, it opens a window and then relays that same DATA1 to B and B to C but when C gets it, it relays to nobody. The binaries overlap in the over the air PSK causing confusion. A receives the same DATA1 from B and C and the game of DATA1 ping pong begins. Is there a simple way to overcome this issue? Here is a code sample I'm using. Thanks if you can help. if (dataIN1 == "! DATA1
") { tbDataIn1.Text = dataIN1.ToString(); //So check to see if data has already been received. If not open form. Else ignore datain. bool Isopen = false; foreach (Form f in Application.OpenForms) { if (f.Text == "Form2") { Isopen = true; f.BringToFront(); break; } } if (Isopen == false) { Form2 form = new Form2(); form.Show(); } //Automatically relay data to another floor Thread.Sleep(250); try { if (serialPort1.IsOpen) { //DTU is sending serialPort1.WriteLine("!"); serialPort1.WriteLine("DATA1" + Environment.NewLine); } } catch { } Thread.Sleep(500); // So I put this sleep here to prevent it from receiving any bytes during this time. timer1.Enabled = true; timer1.Start(); } Receive Bytes. If so open form. if Form is open ignore incoming bytes in the buffer. Sleep 250ms Resend received data now Sleep 500ms so you don't receive anymore data. The Serial Buffer is now filing with data. I can't shut the Serial Buffer down either because it must remain open.
Hi Dejan, I wan't to ask about the baud rate of the module, if I change the baud rate to be 115200 or more in the module, then I use delayMicroseconds(10) in the arduino, is it OK?
Hello! Sir I'm working on a energy monitoring project fro which I am using Hc-12 module for data transmission as it is quite cheap and easily accessible. Sir i am exactly using the same code as yours for checking the wireless communication between the modules and i am also using one uno and one mega but their is exchange of messages between the two serial monitors then i exactly followed your steps to ground the SET pin for configuring AT commands I am not able to get any responce from either of the modules, sir can you help me out with this that what i am doing wrong?
configure HC12 to laptop wifi is it possible? instead of using 2 HC12?? Using laptop as a transmitter the python script will perform some action and the signal will send to the receiver bot(arduino) using hc12??
thank very much for your tuto i have a question The idear was : to connect esp8266 server by physical wire ( using wire protocol) to the stand Alone esp8266 hc12 witch send the commande to the hc12 receiver. I have a esp8266 webserver using websocket witch control gpio's very well by loading SPIFF html page on my smartphone (garage door , sensor ect) . I want to extend my project by using a pair of HC12 (si4463) What i want to do is to add a 1 esp8266 (with 1 HC12 ) acting as a bridgge (wired with the esp8266 server) to communicate to an other esp8266 witch have a HC12 . I am blocked at this point. what the goal : when Websocket receive a JS message from my html page So if i can achive this the result would magic. 1) HTML send JS request to websocket 2) if websocket receive the request code (1) example. 3) Esp8266 server send by serial protocol (wire) the code (1) 4) Then esp8266 HC12 pick the code (1) and send it to the final esp8266 HC12
Deep space is beyond the Karman line of 100km and well into thousands of kilometers beyond. This module only gives a range of about 1.8KM with a good SMA antenna. Deep space communication is on a whole other level, in the 20GHz range with several watts of power. Even the antennae required are enormous.
I am using RF-UART-433-1KM 433MHz RF Transceiver Module(UART)1km, but when I connect them between two atmega9515 micro-controllers, they can't communicate. I tried communication with wires and it works. Can you help why this happens>?
.. there is something wrong with this device.. it work only a few days..i let it run for a few days non stop..it overheated and dead on the tx pin.. all st link chip are cursed..
Good luck with that. You're talking about 5-10 watts of RF power. Not only is that extremely illegal in just about every country, but any decent radio that can transmit with that much power is going to be very expensive.
Pleas I warn you your 18650 battary's are fake because it's not possible to put 9900mah in such a cell the maximum in this size is around 3000mah . Nice video :)
Loving Your Videos, every time I’m in doubt I go to RUclips and I find one of your awesome videos.
Straight Ahead “How to mechatronics!”
you are an absolute life saver! so much effort and such a great tutorial! couldnt ask for more
Hello, So far you are the best to demonstrate arduino tutorials.
I have a question, How can i increase the range of this to as max as possible?
Love the video. Very well done and detailed.
I am trying to do this with 2 Mega 2560 R3 boards.
Followed your example 1 to the letter but neither Serial Monitor will output any message sent from the other board.
Any advice?
I'm having the same problem
Excellent tutorial... Just what I was looking for. Thanks :)
Great video, thank you for taking the time to make these!
What is the rating of the decoupling capacitor please? Thanx
I found this video very helpful but just a query. I am planning to send a cubesat made with arduino into space. Just need some guidance for live details from sensors..
Doesnt it require any address to receive or send data? Does it readily catches the data from another hc12?
good explanation
These are very good projects to get me started. I appreciate your time and efforts spent doing them very much!
Great tutorials , keep going bro......
I love your tutorials
Thanks alot
Muito bom aprendi bastante e já estou fazendo também. Parabéns!
Good video. Inspire me to investigate this module some more.
good video and project, thanks
Thank You
Great content as always
Useing wich program you drowning the circuit with component
Can u plz specify the details of the capacitor you used. Can we use a normal capacitor. And what is its range when we add several walls in between? Can I use it for 100meter communication but with several walls in between like in an apartment. What's its range with walls and obstruction.
and how is the voltage? 50V?
Nice one
Hey! Really nice job! I like it.
Do you think is the same with a servo?
EXCELLENT!! _ Thank you very much for your work and time :¬)
Thank you, Merci, Grazie, Gracias, shieh-shieh, dhanyavaad, Spasibo, Arigato, Danke, Dziekuje and Mulțumesc.
Hello, wonderful project! , a question, we could replace the HC-12 cards and use the RF1276 to give a greater range using the same configuration of the arduino code?
Nice nice
Will this work through water, say 20m?
Hi ! Great video ! It is possibile to create a communication between 3 hc-12 module? 1 reciver and 2 trasmitter?
can you make a video with how to make a radio/transmitter to talk with your friends between cars
hi can you make a tutorial to control brushless motor with potentiometer with HC 12 module.
(master HC-12 with potentiometer and slave HC-12 with brushless motor) using this we can control gimbal roll .we can add gimbal to toy grade drones and we can control roll with this.
it can transmitter & receiver at the same time?
Great video is it possible to make the same circuit with esp8266 instead of arduino
Hi Dejan,
great video! I'm currently working on building an arduino based quadrocopter. Could you recommend using the HC-12 module for this (since you said it's range is up to 1.8 km)?
I'm currently testing the nrf24 module but had some problems with it.
Thank you very much I will try that!
What were the problems you got? Because I'm thinking of the same thing to do with the NRF modules.
NRF's range is low compared to HC-12.
There are different models of the NRF with different antennas. The one I bought had a range of maybe 700 - 800 with open space (there's also a guy on RUclips who does the testing and goes more in the details about the different types). This depends also how the transmitter and receiver are tilted relative to each other.
I did tests as I programmed the transmitter to send some data to the receiver which was hooked to a laptop where I looked at the data through the serial interface. Between 300 and 400 meter there
was a performance drop (meaning not everything was received) which got better after that point (I don't know why).
At about 600 meter the performance started dropping.
Keep in mind that there will be variation when the quadrocopter is flying and the receiver and transmitter aren't aligned anymore.
Also the performance got significant worse when obsticels were in the way (trees, bushes...)
All in all I wasn't happy with the nrf so I'm looking for better alternatives. It can be that there is actually a better nrf module (better antenna) and if you're planning on building something that can fly and you're not too concerned over the range when there will be no problem.
Dani Master - could u pls tell me how to build a arduino quadcopter or give me ur contact no., I'm just 14 yrs old boy who build quadcopter so i need a bit guidance from you pls
Can we wirelessly control HC-12 with phone ? If Yes, what will be the range ?
Can I use this setup for home motion sensor with a camera connected that kicks on with motion?
sir super video,
can you help me to make a project to position stepper motor by entering position values by HMI...? it should be wirelessly by using HC-12 module
Just for curious about the arduino code, will two modules, receiver and transmitter automatically pair with each other or have to type some code ?
Hi... Can one use two HC-12 modules (per link) for full duplex? And can one use it for digital audio transmission?
Hello, I am with a project that is yours, it is about communication between two arduinos through an HC-12 to that project. I wanted to add something else: an activation on some digital pin in the receiver, can it be?
Hi! Can you tell me the type of the capacitor used in this video ?
might be far too late but 22uF - 2mF is sufficient
is there any method to connect many ardino with one wire less antina
Hellow Dejan, i greatly inspired by ur videos
Can i implement the same code for HC-11?
hello sir,
i am working on a project in which i need a communicate underground from ground, so i need your opinion about the sensor which i should use for communication, and even i want to measure distance of my BOT from surface(ground).
nice video
Can u help me controlling BLDC motor wirelessly via HC12 or how to send integer value say (0-1023) via HC12
Pleace, can you do a proyect for automatic doc food?
wonderful... how about using something like this to make a wireless oscilloscope BNC probe input? 0 to100k to 200k hertz bandwidth? thanks...:) so not to start from scratch
can you make a video on pir sensor with arduino and lora sx1278????
please help me i this......
I have 12 switches connected wired to arduino Mega, how do I use HC-12 so that my 12 switches will be wirelessly connected? Thanks
can i get the schematic diagram for the second example (the button)?
2:19
Why do you need a decouping capacitor?
If you connect power without decouping capacitor,
What's wrong with you?
sir can you make and smart car mobile controlled having feature obstacle tackleing and depth sensor .. with dept monitor
Hi! Have you ever tried to send json data (with Arduino Json library) with HC12 before? Thanks
Hi Dejan, nice video, nice tutorial.
whether to the pin configuration like that? Please reply
If i want use pin miso and mosi in arduino, can the pin configuration is different like that?
Hi, I'm looking for a similar project. I would like to put the accelerometer on a motorized satellite dish, and at home see the Azimuth and Elevation of the dish pointing on the LCD display. Can you replace the Stepper Motor and code with an LCD display in your project? Thanks for the reply
Banggood sell both the HC-12 module, and an identical GT-38 module, with the GT-38 version costing slightly more than the HC-12.
Does anyone know if units are identical with the same default settings, and whether one is better than the other?
Hi, this comunication, can be bidirectional?
How to send pwm signal or we can send with this or not plz help i have to my project it will help me a lot plz help me
Hi! I tried to transmitt a double array from an arduino mega to an arduino uno via SoftwareSerial. But i can't figure out, how to transmitt the datas correctly, because all numbers after the "," of the transmitted number dont show up on the receiver. I try to transmit coordinates. Do you know how to deal with this problem? Thank you for an answer. Greetings
I love that 9900mAh batteries :)
I hope you respond to me. I'm trying to send data to multiple points using a DTU Serial Transmitter. Let's say I have 3 units spaced apart where the first A unit receives incoming bytes ASCII "DATA1" from the Transmitting unit which is a computer. The computer sends "DATA1" out the serial to the first receiver which is in range. However B and C transceiver are out of range of the Computer's Transmitter. So I receive the data in "DATA1" in Transceiver A and now I want to relay that to Transceiver B. However B may be in range enough to receive some of the bytes from the Computer but not all. It is well within the range to receive from Transceiver A. Once relayed from A to B, B transceiver relays the original "DATA1" to C.
Here's where the problem in my code is getting confused. You see When T(a) receives DATA1 received from the Computer, it opens a window and then relays that same DATA1 to B and B to C but when C gets it, it relays to nobody. The binaries overlap in the over the air PSK causing confusion. A receives the same DATA1 from B and C and the game of DATA1 ping pong begins.
Is there a simple way to overcome this issue? Here is a code sample I'm using. Thanks if you can help.
if (dataIN1 == "!
DATA1
")
{
tbDataIn1.Text = dataIN1.ToString();
//So check to see if data has already been received. If not open form. Else ignore datain.
bool Isopen = false;
foreach (Form f in Application.OpenForms)
{
if (f.Text == "Form2")
{
Isopen = true;
f.BringToFront();
break;
}
}
if (Isopen == false)
{
Form2 form = new Form2();
form.Show();
}
//Automatically relay data to another floor
Thread.Sleep(250);
try
{
if (serialPort1.IsOpen)
{
//DTU is sending
serialPort1.WriteLine("!");
serialPort1.WriteLine("DATA1" + Environment.NewLine);
}
}
catch
{
}
Thread.Sleep(500);
// So I put this sleep here to prevent it from receiving any bytes during this time.
timer1.Enabled = true;
timer1.Start();
}
Receive Bytes. If so open form.
if Form is open ignore incoming bytes in the buffer.
Sleep 250ms
Resend received data
now Sleep 500ms so you don't receive anymore data.
The Serial Buffer is now filing with data. I can't shut the Serial Buffer down either because it must remain open.
Hi Dejan, I wan't to ask about the baud rate of the module, if I change the baud rate to be 115200 or more in the module, then I use delayMicroseconds(10) in the arduino, is it OK?
What is the uuid for hc 12 module thanks in advanve
Hi ,one hc 12 can communicate with how many number of hc12 devices ?
How to transmit multiple variables using HC 12?
Hi great work, is possible send between modules with this code dates for example temperature with ADC analogRead , thank for your reply.
Alejandro Cardona Moreno out can send any data, you just have to be able to set it up in a from at that both arduinos can read
ok thanks I will try with your code
With these helical antennas i'm not getting signal in outdoors. Kindly help me
Hello! Sir I'm working on a energy monitoring project fro which I am using Hc-12 module for data transmission as it is quite cheap and easily accessible. Sir i am exactly using the same code as yours for checking the wireless communication between the modules and i am also using one uno and one mega but their is exchange of messages between the two serial monitors then i exactly followed your steps to ground the SET pin for configuring AT commands I am not able to get any responce from either of the modules, sir can you help me out with this that what i am doing wrong?
configure HC12 to laptop wifi is it possible? instead of using 2 HC12?? Using laptop as a transmitter the python script will perform some action and the signal will send to the receiver bot(arduino) using hc12??
How to use multiple channel in HC-12
What happens when your out of range and suddenly get in range again ? IT suddenly starts working or do yiu need to do something
is this module fast enough to play music so you can play music in multiple rooms?
I need help on a code for controlling relays wirelessly
Can you make a video for communication for deep space from earth
I don't think it would be all that of a good idea to rely on an Arduino if you are planning to travel to Zeta Reticuli.
can use the HC12 module as one transmitter with multiple receiver mode? if possible how to address each module?
each receiver uses the same code as shown in the video, so yes, you can have multiple receivers
How to use RF module 433 Mhz without arduino library ..so i want use usart protocol of arduino uno
Can we replace the HC-12 module with ESP8266-12E wifi module ....Which is easier to implement for making a network connection between several modules
IOT ACADEMY It could be done with an ESP8266-12E module. however, you will increase the range with a WiFi signal. The 433mhz range is much longer :-)
How can I send analogue data over hc 12?
Thank you for this tutorial but can you add some tutorials about raspberry pi
thank very much for your tuto i have a question
The idear was : to connect esp8266 server by physical wire ( using wire protocol) to the stand Alone esp8266 hc12 witch send the commande to the hc12 receiver.
I have a esp8266 webserver using websocket witch control gpio's very well by loading SPIFF html page on my smartphone (garage door , sensor ect) .
I want to extend my project by using a pair of HC12 (si4463)
What i want to do is to add a 1 esp8266 (with 1 HC12 ) acting as a bridgge (wired with the esp8266 server) to communicate to an other esp8266 witch have a HC12 .
I am blocked at this point.
what the goal : when Websocket receive a JS message from my html page
So if i can achive this the result would magic.
1) HTML send JS request to websocket
2) if websocket receive the request code (1) example.
3) Esp8266 server send by serial protocol (wire) the code (1)
4) Then esp8266 HC12 pick the code (1) and send it to the final esp8266 HC12
I want to ask that will it work to communicate from deep space to earth
Deep space is beyond the Karman line of 100km and well into thousands of kilometers beyond. This module only gives a range of about 1.8KM with a good SMA antenna. Deep space communication is on a whole other level, in the 20GHz range with several watts of power. Even the antennae required are enormous.
Anyone have an idea what current wifi module will work good with my Arduino MEGA2560.
Hello, hey, what kind of capacitors did you use?
100 micro farad should be good
Hi,
what is value of that capacitor?????
10-1000 micro Farad, 100 is good
sir I am trying to make the water robot i can use hc 12 ,that there is any problem occur due to change of medium
Venkat Mourya radio waves play nice with water, that's why some exploration subs have a control line connected to the ship
I am using RF-UART-433-1KM 433MHz RF Transceiver Module(UART)1km, but when I connect them between two atmega9515 micro-controllers, they can't communicate. I tried communication with wires and it works. Can you help why this happens>?
tuhada apna veer try to move them 1m from each other if they close or on the Same breadboard.
.. there is something wrong with this device.. it work only a few days..i let it run for a few days non stop..it overheated and dead on the tx pin.. all st link chip are cursed..
how further can we increase the distance upto 100 km
Good luck with that. You're talking about 5-10 watts of RF power. Not only is that extremely illegal in just about every country, but any decent radio that can transmit with that much power is going to be very expensive.
If your neighbour has the same device you would have to add some identification code?
Tetramorium ideally you would want to just in case, a quick google on the subject should pull up results on how to do it
Tetramorium as long as your device is not running the same channel as your neighbor's device channel then no need to add identification code
source of code?
Pleas I warn you your 18650 battary's are fake because it's not possible to put 9900mah in such a cell the maximum in this size is around 3000mah .
Nice video :)
Yep, you are absolutely right. :)
your videos are extra
Thanks!
no encryption, useless....
Nice nice