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

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 76

  • @thisusernameismine10
    @thisusernameismine10 5 лет назад +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 лет назад +1

      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 Год назад

      Simple 1/4 antenna works better than stock spring looking types

  • @DIYTECHBROS
    @DIYTECHBROS  5 лет назад

    See how you can send data over 2KM with the HC-12 ruclips.net/video/awOPJK5He28/видео.html
    Buy only HC-12 modules that work, these are tested and they work:
    www.banggood.com/custlink/Kvmm1t5uwT (affiliate link)

  • @hadinograles6926
    @hadinograles6926 5 лет назад +2

    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

  • @davegatchalian3335
    @davegatchalian3335 2 года назад +1

    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?

  • @SachinVerma995511
    @SachinVerma995511 5 лет назад +1

    Thanks a lot, nice demo sir!
    Please make a video on low power consumption with high range with HC-12 modules
    THANKS IN ADVANCE!

  • @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!

  • @surplusdriller1
    @surplusdriller1 4 года назад

    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

  • @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?

  • @lovemadeinjapan
    @lovemadeinjapan 2 года назад +1

    Strange enough, AT- works exactly the same as AT+...

    • @DIYTECHBROS
      @DIYTECHBROS  2 года назад +1

      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.

  • @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?

  • @azizmaitig4328
    @azizmaitig4328 Год назад

    can i use hc-12 communication between raspberry and arduino ?

  • @adampiech7143
    @adampiech7143 Год назад

    I just recently got some clones and it would seem they are f... up to the point you cannot enter AT mode.

  • @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

  • @ReginaSamosir
    @ReginaSamosir 4 года назад +1

    Can I do AT command without Serial Monitor? (write it on void setup() )?

    • @DIYTECHBROS
      @DIYTECHBROS  4 года назад +1

      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");

  • @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 6 месяцев назад

      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 года назад +3

      [configuration of Putty] one extra hour of investigation --> that was an issue with configuration of putty (terminatl settings - local echo - force on)

  • @aloklakhera866
    @aloklakhera866 3 года назад

    Can we make multiple hc 12 transmitter and 1 receiver setup?

  • @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 :-)

  • @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

  • @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.

  • @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!

  • @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

  • @harryscholz6811
    @harryscholz6811 Год назад

    Thank you for the work performed in this area.

  • @waleedaiad3411
    @waleedaiad3411 2 года назад

    How Can i use it in python code

  • @nikhildhoke4335
    @nikhildhoke4335 4 года назад

    How to aquire bluetooth address

  • @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.

  • @sulaimanalsuhaimi7168
    @sulaimanalsuhaimi7168 4 года назад +1

    YOU ARE GREAT!!!!

  • @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?

  • @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....

  • @nikhildhoke4335
    @nikhildhoke4335 4 года назад

    How to aquire address

  • @waleedaiad3411
    @waleedaiad3411 2 года назад

    How can i use hc-12 with arduino using python language??.

    • @lovemadeinjapan
      @lovemadeinjapan 2 года назад +1

      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 года назад +1

      @@waleedaiad3411 The HC12 is not the problem, but the Arduino

  • @vipulmp53
    @vipulmp53 4 года назад +1

    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 :-)

  • @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.

  • @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 года назад +1

      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 :-)

  • @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 года назад +1

      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.