HC-12 AT Commands - Set up for Long Range with Arduino

  Рет қаралды 41,359

DIY TECH BROS

DIY TECH BROS

Күн бұрын

Пікірлер: 76
@thisusernameismine10
@thisusernameismine10 5 жыл бұрын
Yeah, agree with your doing antennas tests! Analysing the pros and cons of antennas will be costly in terms of time though, especially if you test in various environments. Good luck and good luck with your channel.
@DIYTECHBROS
@DIYTECHBROS 5 жыл бұрын
Thank you! Yes, we have landed on six different antennas - but you are absolutely right, so we are trying to find a balance between "easy to digest" and giving enough insight to be useful.
@adioslabs
@adioslabs 5 жыл бұрын
@@DIYTECHBROS waiting for the antenna test review and guide.
@Chiefwokomah
@Chiefwokomah 2 жыл бұрын
@@NISARAHMED-bw1rw Silly questions rightfully deserve silly answers. I'll spare you for now.
@dare-er7sw
@dare-er7sw 11 ай бұрын
Simple 1/4 antenna works better than stock spring looking types
@harryscholz6811
@harryscholz6811 Жыл бұрын
Thank you for the work performed in this area.
@SachinVerma995511
@SachinVerma995511 5 жыл бұрын
Thanks a lot, nice demo sir! Please make a video on low power consumption with high range with HC-12 modules THANKS IN ADVANCE!
@sulaimanalsuhaimi7168
@sulaimanalsuhaimi7168 4 жыл бұрын
YOU ARE GREAT!!!!
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Thanks!
@adampiech7143
@adampiech7143 Жыл бұрын
I just recently got some clones and it would seem they are f... up to the point you cannot enter AT mode.
@hadinograles6926
@hadinograles6926 5 жыл бұрын
Can you also demo multiple transmitters, with single receiver.. Thank you
@munch15a
@munch15a 3 жыл бұрын
I think you need to make sure then the receiver does not get more then one signal at the same time
@daniyalrazakazmi7249
@daniyalrazakazmi7249 Жыл бұрын
Can the HC-12 ne connected to the ch340 usb to ttl module? Through it can i see the data from the Serial monitor?
@vipulmp53
@vipulmp53 4 жыл бұрын
Thank You...
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Our pleasure! Recommend our video "2 KM SUCESS STORY with HC-12" if you want to see our range test :-)
@DIYTECHBROS
@DIYTECHBROS 5 жыл бұрын
See how you can send data over 2KM with the HC-12 kzbin.info/www/bejne/l6iygX2Baq2YaJo Buy only HC-12 modules that work, these are tested and they work: www.banggood.com/custlink/Kvmm1t5uwT (affiliate link)
@TElaf1997
@TElaf1997 Жыл бұрын
hello friend good video! I have two hc12 modules connected with an arduino uno, but I can't increase the range. I need at least 1km of distance but I can't even get 400 meters, could you give me some advice? already poor with FU3 and with FU4 but nothing. Greetings from Argentina!
@seifst1
@seifst1 2 жыл бұрын
I have a remote controler 433.420 mhz, is it possible to decode it with hc-12 , then i make a copy of that controler with arduino?
@surplusdriller1
@surplusdriller1 3 жыл бұрын
is there a channel v freq document . AT returns OK but after AT+RX i get U1 B9600 C001 A000 P8 the u is prob FU1 and P8 the power, but what is the A000? is it as simple as adress? the uno is listed under tools and programmer its "Arduinoisp" i have the hc-11 btw
@azizmaitig4328
@azizmaitig4328 Жыл бұрын
can i use hc-12 communication between raspberry and arduino ?
@davegatchalian3335
@davegatchalian3335 2 жыл бұрын
Hi! is there a way to decrease the range to 10Meters below only? I have a specific project that requires only 10 meters maximum range.
@DIYTECHBROS
@DIYTECHBROS 2 жыл бұрын
The minimum distance would be a function of setting power (AT+Px) and antenna. And, also the fake HC-12 boards have a low range. But, chap 433 boards would maybe be easier?
@surplusdriller1
@surplusdriller1 3 жыл бұрын
what is the different modes fu1 etc? is anyone of them MSK? is there any documentation on this or a way to get this info? in the cc1101 datasheet it says it is capable of MSK
@aloklakhera866
@aloklakhera866 3 жыл бұрын
Can we make multiple hc 12 transmitter and 1 receiver setup?
@pisolo86
@pisolo86 3 жыл бұрын
I have a question, is possible to use hc-12 with an esp32? Great videos btw
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
It works with any board that can talk Serial. So that is well just any microcontrolelr, from ATTiny85 all the way to Teensy 4.1's
@shareitez9179
@shareitez9179 4 жыл бұрын
thank you very much for the wonderful tutorial ! what about modulation mode ASK/OOK , FSK etc . as well, I am wondering if you can make a video on how to connect the SI 4432 module to an arduino board and set the registers of the si 4432 in sketch directly just like we do with the cc1101 module ,example : // Configure the pins for receiving and transmitting and the connection pin cc1101 #define CC_CS 10 // CSN #define CC_RX 2 // GDO2 reception #define CC_TX 3 // GDO0 transfer // Config to receive AM 433.920 #define SRES 0x30 #define SCAL 0x33 #define SRX 0x34 #define STX 0x35 #define SIDLE 0x36 #define SPWD 0x39 #define IOCFG2 0x00 #define IOCFG1 0x01 #define IOCFG0 0x02 #define FIFOTHR 0x03 #define SYNC1 0x04 #define SYNC0 0x05 #define PKTLEN 0x06 #define PKTCTRL1 0x07 , without the use of libraries , so that the user can perform his own settings . I do that with CC1101 , but not yet with SI 4432 . seemes that nobody do some tutorial on it . yet ! what I mean by that , I set the registers of the CC1101 module in my sketch , and use interrupts to make an ASK/OOK simple receiver on 433.92 mhz . the performance , the range and the sensitivity it' s amazing , if you compare it with cheap regular 433.92 wireless modules . I would like to see how SI 4432 performs with the same parameters ! Best Regards from Athens Greece !
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Hi! You raise a couple of very interesting question! I'm not sure how much control we have over the microcontroller and there by the SI chip. But this has peaked my interest so I'll have a look :-)
@saikrishnakaruturi2958
@saikrishnakaruturi2958 Жыл бұрын
Hey hi I am using two HC-12 modules one is for transmitting and one is for receiving. In both the modules I was stated the SET pin to ground and the baud rate and connections are perfect. Then why I can't receive the signal from the transmitting side? Could you please to sort it out.
@ozrevach7079
@ozrevach7079 5 ай бұрын
I have exactly the same problem. You managed to solve it, I would appreciate the help
@tomaszt1229
@tomaszt1229 3 жыл бұрын
Hi, do you know why my HC-12 responses with "ERROR" after each character is sent? I have 3.3V voltage connected and SET is connected to ground (to enable AT mode). Thank you.
@tomaszt1229
@tomaszt1229 3 жыл бұрын
[configuration of Putty] one extra hour of investigation --> that was an issue with configuration of putty (terminatl settings - local echo - force on)
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
How can i reset into it's factory settings after i changed the baud rate? Cause my HC12 is error now after i changed the baud rate for some times?
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Hi Regina! Sure, send the command AT+DEFAULT :-)
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
@@DIYTECHBROS thank you bros. Cause when i send at+default it causes error
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
Can I do AT command without Serial Monitor? (write it on void setup() )?
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Yes! Just have your Arduino send the commands. But remember to connect a pin to the SET pin, so that the Arduino can pull it low as well!
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
@@DIYTECHBROS alright. Thank you bro
@vig_gy
@vig_gy 3 жыл бұрын
@@DIYTECHBROS Hi, do you have an example code for how to send the command via Arduino? Thank you very much!!
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
@@vig_gy just something like HC12.println("AT+DEFAULT");
@adioslabs
@adioslabs 5 жыл бұрын
If i implement 50 pairs of these modules within 30 mtrs will there be any interference? TX & RX need to be in same channel?
@DIYTECHBROS
@DIYTECHBROS 5 жыл бұрын
Yes! If they are all on the same channel the receiver can't distinguish between the signals. But the sending is fast, so just include a handshake to verify the delivery of your message and make the senders send until they get a confirmation back.
@joseandresberr5775
@joseandresberr5775 3 жыл бұрын
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!
@DIYTECHBROS
@DIYTECHBROS 3 жыл бұрын
Remember that the channel difference is very small :-)
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
They have to be like 5 channels appart. Only the low 1200/2400 baud rates work in very narrow channel increments side by side.
@waleedaiad3411
@waleedaiad3411 2 жыл бұрын
How Can i use it in python code
@prashantsaini2141
@prashantsaini2141 4 жыл бұрын
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??
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Hi! Sorry, no, HC12 operates on 433 MHz while WiFi is 2.4 and 5 GHz. So they are very far apart. BUT, have a look at ESP8266 or ESP32. They have WiFi and you program them directly, removing the need for an Arduino!
@nikhildhoke4335
@nikhildhoke4335 4 жыл бұрын
How to aquire bluetooth address
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
Once i change the baudrate (4800 bps for example) with AT commands, will it continue changed even after I use other code?
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
I should know this off the top of my mind... but I have to check tonight! I'll get back to you Regina!
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
@@DIYTECHBROS thank you bros:"). Cause when i tried to set it back to the factory reset, it causes error😢
@ReginaSamosir
@ReginaSamosir 4 жыл бұрын
solved bros, when we change the baud rate once via at command, it will continue changed forever until change it back
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Great :-)
@fatimaezzahrazahrane581
@fatimaezzahrazahrane581 4 жыл бұрын
I’m doing the setting you did at the very first with an arduino mega 2560 and follow the steps but when i type AT it doesn’t give me OK... what could be wrong ?
@ekremvkilic
@ekremvkilic 4 жыл бұрын
I have the same problem. I don't know if it's because soldering or something with the module
@kaanpehlivan9481
@kaanpehlivan9481 4 жыл бұрын
@@ekremvkilic i have same issue not working at command or module
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
Either the SET pin is not connected to GND, or the baud rate is not at 9600. Also read into MEGA Serial ports, you can skip SoftSerial as the MEGA has 4 Serial ports in hardware.
@hidayahmalik3588
@hidayahmalik3588 Жыл бұрын
Hi, sorry can i know did u found the solution? because i have the same problem.
@siddharth4662
@siddharth4662 2 жыл бұрын
somehow i am unable to get any response from the HC12 after following the procedure step-by-step. can someone guide me on the same please.
@333raffles
@333raffles Жыл бұрын
Did you solve it? i have same problem.
@vp.8181
@vp.8181 3 жыл бұрын
hey i checked now at commands and none of the two hc12 respond to my at command
@jamesotisjr2322
@jamesotisjr2322 3 жыл бұрын
every hc-12 module I ever putzed with replied to the AT-RX command one time at most, and went brain dead. it's like sending 5VDC commands burns out the serial RX. I tried with a 3.3 volt level converter on the TX line to the hc-12 RX - same result.
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
@@jamesotisjr2322 Did you use the SET pin correctly? Connect it to GND for setup, then disconnect to use the module.
@nikhildhoke4335
@nikhildhoke4335 4 жыл бұрын
How to aquire address
@jeffbluejets2626
@jeffbluejets2626 2 жыл бұрын
No link to the code as you said..... ???
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
Just the default SerialPasstrough sketch will work on any Arduino with dual UART, like Leonardo, MEGA, M0, M4, Microbit etc....
@utubekiranreddy
@utubekiranreddy 4 жыл бұрын
how to minize distance.... like 1-2 meters
@DIYTECHBROS
@DIYTECHBROS 4 жыл бұрын
Use BLE :-) You can more reliably control distance with BLE then 433 mhz. But try lowering the transmit power, and maybe use a cheap clone and the the original well working boards - that might work?
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
Strange enough, AT- works exactly the same as AT+...
@DIYTECHBROS
@DIYTECHBROS 2 жыл бұрын
1. Cool 2. Why would you try that 😂 3. Cool 4. I gotta try now!!
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
@@DIYTECHBROS it works with CAPS LOCK, where + still needs SHIFT.
@waleedaiad3411
@waleedaiad3411 2 жыл бұрын
How can i use hc-12 with arduino using python language??.
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
Don't, most simple Arduino's like Leonardo, UNO, MEGA etc. can't hold the Python runtime in RAM/ROM. MicroPytho will fit on M0/nRF52 boards minimum. Python is like building a house with a hammer and nails. Pro's use TORX screws!
@waleedaiad3411
@waleedaiad3411 2 жыл бұрын
@@lovemadeinjapan Are there any alternative suggestions for HC-12 that I can use with Arduino in Python?
@lovemadeinjapan
@lovemadeinjapan 2 жыл бұрын
@@waleedaiad3411 The HC12 is not the problem, but the Arduino
2 KM SUCCESS STORY with HC-12 - going beyond 1800 meters!
8:47
DIY TECH BROS
Рет қаралды 53 М.
Using Inexpensive 433 MHz RF Modules with Arduino
29:50
DroneBot Workshop
Рет қаралды 565 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 16 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 21 МЛН
HC-12 FIX for bad clones
4:37
DIY TECH BROS
Рет қаралды 21 М.
Arduino and HC-12 Long Range Wireless Communication Module
9:40
How To Mechatronics
Рет қаралды 194 М.
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 60 М.
Arduino Wireless RF Transceiver Module Intro
23:00
Davy Wybiral
Рет қаралды 98 М.
The Ultimate Guide to Resistors: Types, Uses, and More
18:01
BitOfElectronics
Рет қаралды 831
Which radio module? NRF24, LoRa, CC1101, HC12, 433MHz, HC05
17:00
Electronoobs
Рет қаралды 465 М.
HC12 Introduction
13:25
Brian Patton
Рет қаралды 8 М.