Тёмный

Long range, 1.8km, Arduino to Arduino wireless communication with the HC-12 

Tom Heylen
Подписаться 7 тыс.
Просмотров 204 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 291   
@caXos
@caXos 6 лет назад
My Gosh! What a wonderful video! I was trying to set up my HC-12 for like... 4 days, with no success, but after 8min40sec I managed it! Thank you so much! And may you continue making great videos like this!
@1markcarr
@1markcarr 7 лет назад
Thank you Tom for sharing this video and work files for the HC-12 Wireless Serial Port Module. After watching your video, I ordered all the stuff, followed your instructions. and hay presto!! I'm now a pro haha. Seriously though this was exactly what i was looking for. I'm now setting up my once wired intruder/warning alarm to run wirelessly. I tested the distance I was getting from the HC-12 and I was well impressed, well more then the 50 metres I needed even through walls. Great stuff. Thanks again Tom, you've just saved me a fortune in unsightly wire :) Thumbs up and subscribed
@elecnut8211
@elecnut8211 7 лет назад
Thank you for all the hard work you put into this. I am going to try this at 1000 m.
@andymap4757
@andymap4757 8 лет назад
Great video. Feel like I know this module and will refer back to it when I order them. Thank you.
@steve8939123
@steve8939123 7 лет назад
Excellent video, easy to follow. The examples worked the first time,Thanks. Looking forward to using these in a wireless remote temperature sensor.
@ThatTalkingDogGuy
@ThatTalkingDogGuy 5 лет назад
For those like myself on OSX, if you want to open two instances of the Arduino IDE, simply duplicate the Arduino application, and call one something like "Arduino Board2". You can run both simultaneously, choosing different boards/ports for each
@johneagle4384
@johneagle4384 2 года назад
Nice concise introduction!
@adelmhsn
@adelmhsn 8 лет назад
thx soooo much in Arabic language شكرا جزيلا :)
@jerryhill667
@jerryhill667 6 лет назад
Thank you Mr. Heylen for the great video instruction. I'm a newbie with the Arduino but have noticed that in the 'Momentary Send' exercise sketch, the Boolean onOff does not get reset to 0 after sending an off signal. I noticed that, at startup, my uno draws 65 ma but increases to 95 ma once a button is pushed and remains there even after the button is released. After adding a line of code to reset onOff to 0, the current does return to 65 ma after the button is released. I'm concluding, maybe falsely, that the exercise sketch continues to send the off signal unless a button is pushed. Please let me know if this indeed the case. You made extending your code to three 'pushbuttons' in a motion sensor and three leds in a receiver quite simple. Thanks again!
@ПавелКочевой
@ПавелКочевой 7 лет назад
Hi, there is a question, can I connect more than two HC-12? One module receives, several modules transmit. If possible, help with the code.
@thednemu3495
@thednemu3495 7 лет назад
I Connected the HC-12 as you showed(4:52) to my Arduino Mega, but didnt receive a signal, after writing AT. What could be the problem?
@noahpfluke6981
@noahpfluke6981 6 лет назад
Same thing happened to me, i tried with a mega and 2 Unos and even ordered brand new HC-12s and tried those and nothing works
@muhammadsaim9833
@muhammadsaim9833 6 лет назад
have you guys figured out the solution of this problem?? because i am also facing same problems and wasted my 2-3 days on order to rectify the issue but nothing has worked
@BioSniperX
@BioSniperX 6 лет назад
The Problem is: You are an idiot.
@shubhamdhiman7516
@shubhamdhiman7516 6 лет назад
@@BioSniperX bhai main bhi ye banana chahta hu. Hc12 mehanga h. Agar bhai aapka ban gya ho to please bta do. Phir main bhi purchase kr lun ga
@steve8939123
@steve8939123 7 лет назад
Great video. Easy to follow and the examples work 1st try. Thanks. Are you going to make more videos with the HC-12? If so might I suggest a remote weather station.
@vasanthsreeram
@vasanthsreeram 8 лет назад
Good job man thanks for the video I really appreciate it. Hope you post more tutorials
@amrisalman6746
@amrisalman6746 7 лет назад
hi Tom...thank you very much for the video...very useful video...btw can i use HC12 for RC multi channel transmitter? or i can use 1 channel with multiple variable for communication instead of multi channel?
@rodrigo_dm
@rodrigo_dm 7 лет назад
Such a good video. Thank you Tom!
@muhdakmal5086
@muhdakmal5086 6 лет назад
TQ Tom, just want to ask can we use HC 12 for one transmitter and multiple receivers
@xrphobby1341
@xrphobby1341 2 года назад
Thank you. Very informative tutorial. Is it possible to have 12 or more momentary buttons in both transmitter and receiver? I have 12 buttons in arduino and want it controlled wireless.
@almirbajsini
@almirbajsini 5 лет назад
Im trying to control servo using potenciometer wirelesly with hc 12 and im stuck i have no idea what to do I've been at it for over 3 months pls help
@alanly3780
@alanly3780 6 лет назад
Thank you, the video was very clear and concise!
@SamuelCarreira
@SamuelCarreira 8 лет назад
Hi great video!Can I use this module safely for a long period of time with 5V? Or it's better to use a 3.3V microcontroller?Thank you
@TomHeylen1
@TomHeylen1 8 лет назад
module works fine on 5v for a long period. I have modules working for years continues on 5v
@SamuelCarreira
@SamuelCarreira 8 лет назад
+Tom Heylen thank you very much for your quick answer
@GEMINI62art
@GEMINI62art 6 лет назад
Hi Tom. First, thank you for your wonderful work. I tested a lot of things with arduino but here this time, I am a bit frustrated. I did everything like you describe, but no communication "send/receive". I suspect that one of my two HC-12 is not working ... So, have you an idea to test each hc-12 separately (alone) ? Thank you in advance.
@drawingboard82
@drawingboard82 6 лет назад
Very clear and helpful, thanks for taking the time.
@tomsheppard1666
@tomsheppard1666 8 лет назад
Thank you, this has been very useful and will get me started with my project.
@Shafayat-xz9jo
@Shafayat-xz9jo 5 лет назад
Does HC-12 support smartphones (iOS or Android)? Actually I am building a RC Plane and would like to control that from my iPhone. Please let me know....!
@zerothposition3169
@zerothposition3169 5 лет назад
No, you cant use HC-12 to connect Wifi or Bluetooth
@n0ukf
@n0ukf 6 лет назад
The "spring antenna" is more commonly known as a "helical antenna", or "continuously loaded".
@1mikechung
@1mikechung Год назад
HI, Have you a simple project using HC12 and DHT weather sensors. I find the BME sensor very difficult to set up. Thanks
@jogomez1988a
@jogomez1988a 7 лет назад
Did you test this radio module about a 1.8 Km range?
@TomHeylen1
@TomHeylen1 5 лет назад
Some of the people in this forum had a range up to 10 miles in open area. Concrete walls and buildings will make this range shorter. I found that in a building I can receive up to 4 floors. Have a good one. Cheers
@MrKkprince
@MrKkprince 7 лет назад
In your video there is no latency in the messenger 1st example communication . Did You changed the Serial.setTimeout() to something different from 1000 ? this for both softwareserial and serial ? ? kindof Serial.setTimeout(50)?
@AtomkeySinclair
@AtomkeySinclair 7 лет назад
Excellent tutorial. Thank you for taking the time and effort. Well done sir.
@Mrjamf1
@Mrjamf1 3 года назад
Hi, can these modules work alone? For example connecting a button to Tx and a Buzzer to Rx, thus making transceivers for morse code? No Arduino envolved. Thanks
@sadek1185
@sadek1185 7 лет назад
Hi Tom! Thanks for your effortI want to ask that can I reach the 1.8km distance communication but without using the external SMA antenna? If no, how much you think can I reach?
@jaysonvajda
@jaysonvajda 8 лет назад
Hello Tom, great tutorial! , newbe here, can I use any of these examples to send sensors data, like ultrasonic and what part of the code can I use? have you any examples? Thanks, Jayson
@bhanuvideos
@bhanuvideos 6 лет назад
Hi Sir, Thank for the valuable information, Is it possible to make communication between two arduinos by using eather net modules ( without a PC) Please claear my doubt.
@Design.Studio-DS
@Design.Studio-DS 7 лет назад
Perfect demonstration..
@doubleHLabs
@doubleHLabs 6 лет назад
Once again, always very helpful!
@ernestosabado5712
@ernestosabado5712 6 лет назад
Hello Tom, Very great job!! it seems that the zip file was removed from yous site?
@PeterMMMMM
@PeterMMMMM 2 года назад
Can the HC-12 be used to transmit voice, like a digital walkie Talkie? How does HC-12 compare to LoRa in range and complexity of implementation for voice transmission?
@augustomoura5276
@augustomoura5276 8 лет назад
Hello Tom, First thank you for the video its great! I have some doubts and i hope you can help me . I want to use the receiver in stand alone mode, without the module microcontroller. It is possible to add a jumper to the module between the radio output and a NC pin? And In which microcontroller pin does the radio output enters?
@chrisyoung3082
@chrisyoung3082 7 лет назад
Thank you...you've made it easy!
@tstko
@tstko 8 лет назад
Great stuff, do you have a sketch/example for a 4 channel relay to be controlled by this device using an Android app?!? I'm struggling to get this done for this device. Is thi device using bluetooth or Wifi??? I'm confused
@karter61
@karter61 7 лет назад
What cheap board instead of the HC-12 would you recommend if I need to send data a maximum of 1km and about every 500ms? Looking at the specification for the HC-12 it says only to send data every 2 seconds, and only 60 bytes at a time.
@NeonWanderer
@NeonWanderer 6 лет назад
very cool thanks - another gadget i need to test!
@gil64asc
@gil64asc 4 года назад
Hi Tom, thanks for your tutorial. I have a question: I need to remotize up to 4 relays just under the roof... But I need also to have a visual feedback about the state of the realys (on or off). How can obtain it?
@jarno4054
@jarno4054 6 лет назад
Very good tutorial my friend, you are very good understandable.
@danyplace4988
@danyplace4988 7 лет назад
Hi Tom, must I respect some time between the end of tx to start rx, or the end rx and start tx?? Often I lost some data especially first data of pack. Best regards. Thanks
@MPElectronique
@MPElectronique 7 лет назад
Nice video. where did you buy the external antenna? thank you. Marc.
@TomHeylen1
@TomHeylen1 7 лет назад
www.banggood.com/?p=FA25224129409201603Q
@ReginaSamosir
@ReginaSamosir 4 года назад
Hi, can I change the baudrate without serial monitor? Like doing on void setup ?
@ashuntu2010
@ashuntu2010 8 лет назад
Could you please let me know what is the maximum range that we can achieve while using only the spring antenna provided with the module when working at FU4. Appreciate if you could give some idea. Thank you very much.
@TomHeylen1
@TomHeylen1 8 лет назад
I have been testing the sma and the spring antenna in an urban area and it does not seem to be much different.
@chiranthmurthy3424
@chiranthmurthy3424 4 года назад
Hi Tom, I need to know whether HC-12 can communicate two ways? not at the same time is that possible? and what will be the code format?
@-rmcustoms3355
@-rmcustoms3355 7 лет назад
The HC-12 module seems to work in half duplex mode. I would like to realize a remote control with a nextion display which on the one hand can be used to switch consumers and on the other hand receives sensor data and displays it on the touch panel. So the role of station A and B shut be alternating from transmitter to receiver. How can this be achieved with two Arduino MEGA? I want to use a MEGA2560 instead of an UNO because of the available serial ports and the much higher amount of memory.
@joseandresberr5775
@joseandresberr5775 4 года назад
Hi, I have been trying to change the channels with AT commands, but the transmission is still working, even when AT+RX says that they are in a different channels. How can I realy change the channels ? thanks!
@eng.samihamosa5637
@eng.samihamosa5637 2 года назад
hello I am trying to connect mega2560 with uno . i have changed all possible pins in mega no connection established between two boards . any suggestion?
@mjaber4388
@mjaber4388 7 лет назад
Hi there,First, I want to say thank you for a wonderful and detailed video, but I have an issue:(My HC_12 is working and sending the same exact data, but for some reason, it doesn't send it as quick as yours does. I find this a problem because if I were to fly a plane, it wouldn't react as fast as I do and my commands will be delayed which will cause it to hit something. Is there something that I can do? Plz respond, and thank you :)PS: I love ur videos :D
@MilanKarakas
@MilanKarakas 8 лет назад
Also, this spring antenna... uh, okay up to 100 mW, but over that - fire on the transmitter.
@geneticmemory4348
@geneticmemory4348 8 лет назад
Great Video! Very coherent!
@fredricknjoroge5392
@fredricknjoroge5392 6 лет назад
Hey, can use two HC-12 modules for full duplex? And can use it to transmit digital audio?
@joechan8231
@joechan8231 2 года назад
The HC12 specifications shows max 1km, how com you can transmit 1.8km .please advice?
@venkateshe7506
@venkateshe7506 7 лет назад
Excellent video. Thank you
@dezmach93
@dezmach93 Год назад
Nice!! Thanks for sharing!
@nickmatias51
@nickmatias51 7 лет назад
Great video thanks!!! Is there a way to measure the signal strength between the modules ?
@etrabbold
@etrabbold 8 лет назад
Hello Tom, great article! You have an example of sending data continuously updated? For example, I would always send the transmitter data. If the receiver is out of range, a status LED indicates a signal failure or enter in failure mode. I can not keep sending continuous data, in this case, 4 bytes for less than 1000ms, which is very high for a real-time system.
@TomHeylen1
@TomHeylen1 8 лет назад
I found some code I wrote for a remote controlled drone working with the HC-12 modules. SENDING CODE #include SoftwareSerial mySerial(4, 5); //RX, TX //#### varialbles for potentiometers, handles ########## int potUpDown = 1; // analog pin used to connect the potentiometer int potLeftRight = 0; // analog pin used to connect the potentiometer int valUpDown; int valLeftRight; String strValUpDown; String strValLeftRight; //#### variables for accelerometer ############ int yPin = A3; int xPin = A2; int xValue = 0; int yValue = 0; int xD = 0; int xU = 0; int yL = 0; int yR = 0; String strXValue; String strYValue; int buttonPin = 12; int buttonState = 0; boolean checkButtonState = 0; boolean mapValues = 1; void setup() { Serial.begin(9600); mySerial.begin(9600); Serial.setTimeout(10); mySerial.setTimeout(10); pinMode(buttonPin, INPUT); } void loop() { //########## code for potentiometers, handles ################# valUpDown = analogRead(potUpDown); // reads the value of the potentiometer (value between 0 and 1023) valLeftRight = analogRead(potLeftRight); valUpDown = map(valUpDown, 370, 638, -4, 96); valLeftRight = map(valLeftRight, 397, 600 , -50, 50); strValUpDown = String(valUpDown); strValLeftRight = String(valLeftRight); //########## code for accelerometer ################ buttonState = digitalRead(buttonPin); if (buttonState == HIGH) { checkButtonState = 1; xValue = analogRead(xPin); yValue = analogRead(yPin); if(checkButtonState == 1 && mapValues == 1){ mapValues = 0; xD = xValue - 65; xU = xValue + 65; yL = yValue - 68; yR = yValue + 68; } xValue = map(xValue, xD, xU, -50, 50); //difference is 130 yValue = map(yValue, yL, yR, -50, 50); //difference 136 strXValue = String(xValue); strYValue = String(yValue); } else { checkButtonState = 0; mapValues = 1; strXValue = "0"; strYValue = "0"; } //read figures in serial monitor Serial.print("handle up/down" + strValUpDown); Serial.print(" handle left/right" +strValLeftRight); Serial.print(" acc up/down " + strXValue); Serial.println(" acc left/right" + strYValue); mySerial.print(":" + strValUpDown + "," + strValLeftRight + "," + strXValue + "," + strYValue + ";"); mySerial.flush();//Waits for the transmission of outgoing serial data to complete. delay(50);//allow some time for the serial buffer } /* int checkLeftRight = 0; int checkUpDown = 0; boolean set; void setup() { } void loop() { RECEIVING CODE #include SoftwareSerial mySerial(3, 4); //RX, TX //4 leds int ledFrontLeft = 11; int ledFrontRight = 10; int ledBackLeft = 9; int ledBackRight = 6; void setup() { Serial.begin(9600); mySerial.begin(9600); Serial.setTimeout(10); mySerial.setTimeout(10); //declare led pins to be output pinMode(ledFrontLeft, OUTPUT); pinMode(ledFrontRight, OUTPUT); pinMode(ledBackLeft, OUTPUT); pinMode(ledBackRight, OUTPUT); } void loop() { if(mySerial.available()){//Read from HC-12 and send to serial monitor //traversing trough the serial input //date sent is a continues stream of ":updownvalue,leftrightvalue,accUpdownvalue,accleftrightvalue;..." mySerial.readStringUntil(':');//is string start character Serial.read();//skip start character String handleUpDown = mySerial.readStringUntil(',');//read first value Serial.read();//skip separator String handleLeftRight = mySerial.readStringUntil(',');//read second value Serial.read();//skip separator String accUpDown = mySerial.readStringUntil(',');//read 3th value Serial.read();//skip separator String accLeftRight = mySerial.readStringUntil(';');//Read 4th value Serial.read();//skip string stop character //Convert values to integers int intHandleUpDown = handleUpDown.toInt(); int intHandleLeftRight = handleLeftRight.toInt(); int intAccUpDown = accUpDown.toInt(); int intAccLeftRight = accLeftRight.toInt(); intHandleUpDown = map(intHandleUpDown,0,100,0,255); intHandleLeftRight = map(intHandleLeftRight,-56,53,0,255); intAccUpDown = map(intAccUpDown,-50,50,0,255); intAccLeftRight = map(intAccLeftRight,-50,50,0,255); //speed float accLeft = 0; float accRight = 0; float accUp = 0; float accDown = 0; float handleLeft = 0; float handleRight = 0; //split value in half. left right and up down. if(intAccLeftRight < 117 && intAccLeftRight > 0){ accLeft = map(intAccLeftRight, 117, 1, 100, 1); } if(intAccLeftRight > 137 && intAccLeftRight < 255){ accRight = map(intAccLeftRight, 137, 254, 100, 1); } if(intAccUpDown < 117 && intAccUpDown > 0){ accDown = map(intAccUpDown, 117, 1, 100, 1); } if(intAccUpDown > 137 && intAccUpDown < 255){ accUp = map(intAccUpDown, 137, 254, 100, 1); } if(intHandleLeftRight < 128 && intHandleLeftRight > 0){ handleLeft = map(intHandleLeftRight, 128, 1, 100, 1); } if(intHandleLeftRight > 148 && intHandleLeftRight < 256){ handleRight = map(intHandleLeftRight, 148, 255, 100, 1); } //calculate and write values to led's if(intHandleUpDown < 10){ analogWrite(ledBackLeft, 0); analogWrite(ledBackRight, 0); analogWrite(ledFrontLeft, 0); analogWrite(ledFrontRight, 0); }else{ float valFrontLeft = intHandleUpDown; float valFrontRight = intHandleUpDown; float valBackLeft = intHandleUpDown; float valBackRight = intHandleUpDown; if(accLeft != 0){ valFrontLeft = valFrontLeft/100*accLeft; valBackLeft = valBackLeft/100*accLeft; } if(accRight != 0){ valFrontRight = valFrontRight/100*accRight; valBackRight = valBackRight/100*accRight; } if(accUp != 0){ valFrontLeft = valFrontLeft/100*accUp; valFrontRight = valFrontRight/100*accUp; } if(accDown != 0){ valBackLeft = valBackLeft/100*accDown; valBackRight = valBackRight/100*accDown; } if(handleLeft != 0){ valFrontRight = valFrontRight/100*handleLeft; valBackLeft = valBackLeft/100*handleLeft; } if(handleRight != 0){ valFrontLeft = valFrontLeft/100*handleRight; valBackRight = valBackRight/100*handleRight; } analogWrite(ledBackLeft, valBackLeft); analogWrite(ledBackRight, valBackRight); analogWrite(ledFrontLeft, valFrontLeft); analogWrite(ledFrontRight, valFrontRight); } Serial.print(intHandleUpDown); Serial.print(","); Serial.print(intHandleLeftRight); Serial.print(","); Serial.print(intAccUpDown); Serial.print(","); Serial.println(intAccLeftRight); } mySerial.flush(); Serial.flush(); delay(20); }
@Dreamstripfilms
@Dreamstripfilms 7 лет назад
Hello! that's a great contribution by you on HC-12 , I'm doing a project which has a webcam and arduino.. my question is that can i transmit Video data through HC12 for long range communication.? please reply
@MrKvachik
@MrKvachik 8 лет назад
Hello. Is the gpio pin on this module? A chip itself has gpio pins, but how about this module?
@sulaimanalsuhaimi7168
@sulaimanalsuhaimi7168 4 года назад
Is there a way to limit the range to a specific distance? I mean can I make it receive signal only in the range of (for example: 1km) and less? but more than 1km range, I do not want it to receive the signal? Is it possible? If yes, How?
@ashuntu2010
@ashuntu2010 8 лет назад
Hello, Thank you for uploading such a detailed video. Could you please let me know if this module can work with Bluetooth of android phone?
@TomHeylen1
@TomHeylen1 8 лет назад
Hi, it doesn't work with bluetooth. You need a bluetooth module for that but the range is not great. Maybe about 20 meters.
@ashuntu2010
@ashuntu2010 8 лет назад
+Tom Heylen yes, I am using HC05 Bluetooth module but it don't work more than 10 meters, actually I want data in my android phone and data has to travel from far of place so I am looking for alternative to that.
@TomHeylen1
@TomHeylen1 8 лет назад
You have to translate the data over your HC-12 links by using arduino controllers.
@intuitivecoder3481
@intuitivecoder3481 Год назад
Can HC-12 transmit media like low-res images or video reliably?
@yapandasoftware
@yapandasoftware 5 лет назад
At 4:56, Pin 2 goes to RX in the diagram and Pin 3 to TX.. But in your HC12 next to it you have 2-> TX and 3-> RX... Which is it?
@TomHeylen1
@TomHeylen1 5 лет назад
tx should go to rx and rx to tx. You can set the pins in the code. Thanks for noticing. Have a great day!
@yapandasoftware
@yapandasoftware 5 лет назад
@@TomHeylen1 Thanks Tom.. So when the code defines "TX" does that mean it's TX pin on Arduino to be connected to RX pin on HC12 and RX pin on Arduino connected to TX pin on HC12" (10, 11) means TX and RX defined on Arduino.. This is confusing some people including me. And if it's backwards, does it harm the HC12 in any way.. Because I can't get these simple things to transmit or give me a response when I use AT commands. Again thanks for clearing that first part up for me Tom.
@jacksimple3766
@jacksimple3766 6 лет назад
Hi! I used that module in FU3 2400baud mode at good range, but neede more now, set up FU4 and CH010, Baud 1200 ad now range is less than FU3 9600baud so less than 100meters isntead of 1.8km, what could make the issue?
@GospodinJean
@GospodinJean 6 лет назад
I clicked in the video to watch teaching how to implement long range communication with Arduino :D
@MrArckN
@MrArckN 5 лет назад
Hello Tom, I'm trying to use the HC-12 with a Wemos d1 mini (wiki.wemos.cc/products:d1:d1_mini) but i cant get it to work. AT Commander doesnt want to work. I guess it's due to the different pinout of the board. There is TX & RX pin on the board but i dont know how to call them in the code. Do you have any tip or solution for me please ? Thanks.
@ruturajyellurkar9588
@ruturajyellurkar9588 7 лет назад
Can send data from an android phone to the HC-12 module connected to arduino uno. If yes what will be the range?
@DAILYTECHNEED
@DAILYTECHNEED 7 лет назад
i made my own arduino. but there's a problem that is i used a 12MHz crystal and unable to upload sketches. Is there any way to upload my friend?
@khaledelsherif8950
@khaledelsherif8950 7 лет назад
Hi, I am currently working on a project that requires wireless communication between two Raspberry pis via RF transceivers. Is it Possible to program and connect the HC12 to Raspberry pi via UART serial port?
@bukharimarto
@bukharimarto 4 года назад
What a great video, Thank you for tutorials, Mr. Tom. but I have a problem in my project. I use 115200 bps on Nodemcu v3 and Arduino with HC-12, unfortunately both can't send any data to each other. why? please help
@Mochilinho
@Mochilinho 7 лет назад
Man, you save my life!
@tropicaljantie
@tropicaljantie 7 лет назад
any interference issues. you use what frequency?
@jimderonde8155
@jimderonde8155 6 лет назад
Hey Tom, I made a prototype using my Arduino UNO and this worked perfectly. I'm trying to shrink the prototype to an Arduino NANO and I can't seem to get it to work. Do you know if this concerns using a NANO instead of an UNO? Regards, Jim
@jimderonde8155
@jimderonde8155 6 лет назад
Double checked all wires btw, wasn't the problem
@nguyenthuy9824
@nguyenthuy9824 4 года назад
Hi. How did you do to open 2 com on an arduino for testing data 2.47'?
@PatrykDarasz
@PatrykDarasz 6 лет назад
Can the range be increased by using a RF amplifier?
@landlockedviking
@landlockedviking 6 лет назад
Thanks!
@jurajmalatin1885
@jurajmalatin1885 7 лет назад
Great video, is there a way to connect Raspberry Pi with Arduino using HC-12 ?
@dennisbae939
@dennisbae939 8 лет назад
hi tom Thank you for the great video! Is it possible to transmit data from sensors(ex. Temperature, pm 2.5 etc.) from one HC-12 to another? If yes could you please show some example codes?
@MPElectronique
@MPElectronique 7 лет назад
Where can you find the external antenna? I cant find it :( ?? THank you
@Design.Studio-DS
@Design.Studio-DS 7 лет назад
Very Important lesson. But in my case i used FU 4 mode, 1200 burd rate, transmission power P8. but its not work 1.8 km. its working around 350-450 m only.
@shadyengineer1988
@shadyengineer1988 7 лет назад
is this distance achieved in open area or indoors?
@vigneshk2948
@vigneshk2948 5 лет назад
I have encountered a problem where i cannot get more than 4m range with HC12 modules with small spring type antenna which was enclosed in the module, I did tried all the settings but no luck! Appreciate any help.
@muhammadsaim9833
@muhammadsaim9833 6 лет назад
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?
@normanandrew5620
@normanandrew5620 7 лет назад
Is it possible to use this as a motion sensor for a house with a camera on each one to kick on when motion is detected?
@pomptang
@pomptang 7 лет назад
Hi Tom. Great video. I'm trying to send an analogue value to another Arduino (both with HC 12) and display it on an LCD . I can't get the receiver to pick up anything. The sender has its TX led on so I'm guessing it's sending the data across but nothing's picked up at the other end. I've tried messing around with the coding but with no luck. Is there a special code for analogue sending? Please can you help?
@TomHeylen1
@TomHeylen1 7 лет назад
Are the examples from the video working? If yes, should be fine. If not, watch the video again. You have a great day.
@raimiss8
@raimiss8 6 лет назад
Hi. Nice tutorial. I would like to ask if is possible to write code for checking signal strength while increasing distance. I mean like wireless we can see 100% when close and less when further up.
@mauriAR
@mauriAR 5 лет назад
I'm new with this, but Sir, I have a question , if I have 2 senders and 1 receiver, is possible to configure it for receive from 1 and later from 2? or another way to differentiate from each other in the print.
@TomHeylen1
@TomHeylen1 5 лет назад
You can use multiple senders to receive with one ore more receivers. You have to encode/decode your messages sent/reveived to verify you have the right message from the right sender. So yes you can :) Have a good one and enjoy your project. Cheers
@lewishooke5125
@lewishooke5125 2 года назад
what type of HC that i need to use if i want the range more than 3 km?
@pcbexpresjogja8982
@pcbexpresjogja8982 3 года назад
Thanks for cm Video i have a probke with my HC 12
@123tomjolly
@123tomjolly 7 лет назад
can i use this to send gas sensor data connected via IC2 to another arduino to make it change an LED colour?
@svartanatten9795
@svartanatten9795 5 лет назад
How did you get them to send the same frequency
@awwsa7228
@awwsa7228 7 лет назад
My problem I have not found a program. Includes. HC-12 to draw its circuit. And attach it to examine my graduation
@issamdahaweir7207
@issamdahaweir7207 7 лет назад
Dear Tom, U have said that FU4 is the best for 1.8Km... so if I need to communicate between two arduinos set 1.8km apart, how Should I combine the codes to make it work in FU4 and send commands? thank you, Appreciated for this video
@MilanKarakas
@MilanKarakas 8 лет назад
Why resistor on push-button? On your video at 03:00 - If on pin 8, why not declare in setup(), "pinMode(8,INPUT_PULLUP);" then change in sketch "if (buttonState ==0) {do something useful}" instead "if (buttonState==1)... Or, here is simple sketch for learning button press code: void setup() { pinMode (8,INPUT_PULLUP); } void loop() { if (!digitalRead(8)) { digitalWrite(13,1); delay(100); //debouncing trick, waiting 100 mS button to settle } else { digitalWrite(13,0); delay(100); //debouncing... } } Note "if (!digitalRead(8))" - this means if pin 8 on arduino is not 1 (it is 1 because of INPUT_PULLUP statement above) when not pressed. Button goes from pin 8 to GND - Not from pin 8 to +5 or +3.3V and with resistor to GND (where then should be without exclamation mark "if(digitalRead(8)), which means if pin 8 is TRUE, or HIGH, or 1. It is okay to use resistor for just one button, but what if you have tens of buttons?! Zillion resistors on small breadboard?! Or just simply declare pinMode(buttonPin, INPUT_PULLUP), and MCU will provide "weak pull-up" resistor by partially opening one dedicated FET or MOSFET. If it sounds complicated - it is just confusing at beginning, and I believe that every tutorial should bring more learning opportunities, not just "copy/paste" sketch, which is for most cases okay, but people want to learn more and use its own brain to develop good sketches. Thanks.
@brendethedev2858
@brendethedev2858 7 лет назад
I agree alot of people needlessly waste resistors and such by not learning about input_pulldown
@brendethedev2858
@brendethedev2858 7 лет назад
Pullup*
@mjaber4388
@mjaber4388 7 лет назад
You can even use a map function, for example: x=map(y,0,1,1,0);and now when u press the button, it will turn on the LED(for example)like a normal button; Moreover, you can continue your code normally without any confusion(if u had a huge code).
@JoeEvansSound
@JoeEvansSound 4 года назад
Excellent thank you very much. Dankevelt
@patriotir
@patriotir 7 лет назад
I used two arduino nano and did exactly the same things but no chance. I'm not seeing anything in the Serial port.
@MPElectronique
@MPElectronique 7 лет назад
Hi. THank you you are great as usual! Can you post a buy link for the long range antenna ? Thank YOu. Marc.
@RahulKumar-zs2wv
@RahulKumar-zs2wv 6 лет назад
If there will be 3 hc 12 how to differentiate between them ,to whom to send data. And any other hc12 can also get our data having same freq. Is there any security level on hardware side.?
Далее
iPhone Flip станет ХИТОМ!
00:40
Просмотров 84 тыс.
Radio-Frequency (RF) Communication Modules
28:38
Просмотров 96 тыс.
LoRa - Long-Range Radio for IoT | Arduino, ESP32, RPI Pico
1:07:58