Getting startet with the HC-12 and Arduino for wireless communication - from Banggood

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

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

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

    Note, it is important to use original HC-12 modules. The ones in this video are not the original one, see this video to what a difference it makes!! ruclips.net/video/iYpfUcKZ0Ck/видео.html

  • @walshrd
    @walshrd 2 года назад +5

    Not the best video on the subject. TX --> RX and RX --> TX is always the way communications of most any sort work. The Bros need to get that right. The codes in the links are useless.

  • @elecoding6900
    @elecoding6900 9 месяцев назад +2

    Shouldn't it be Rx to Tx, and Tx to Rx? confused here!

  • @DuyAnhThái-f8p
    @DuyAnhThái-f8p 11 месяцев назад +1

    HELP ME PLS I HAVE A PROPLEM WITH MY HC-12 MODULE

  • @smappdooda
    @smappdooda 4 года назад +3

    I cannot get your code to work for some reason. (I am using an Uno and a Mega) I also noticed that your wiring is confusing. You say you connect RX to RX and TX to TX but in the video, the wires run from RX to TX and TX to RX. Which is it?

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

      Just call the header below as
      SoftwareSerial HC12(10,11) // HC-12 TX= D10 Pin, HC-12 RX D11 Pin
      AND
      In void setup
      HC12.begin(9600);
      and the rest would work fine

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

      @@ChamikaRavinduEkanayaka Sorry could you elaborate?

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

      Yeah, same here. I was trying to follow the verbal instructions but wasn't able to get it to work. Now that you've mentioned it, yeah. The instructions were different from what can be seen on 2:03 can @DIY TECH BROS clarify?

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

      follow-up: just tested our hypothesis. yeah, it really is the other way around. Arduino TX to HC-12 RX and vice versa

    • @walshrd
      @walshrd 2 года назад +2

      @@orphidian11 TX --> RX and RX --> TX is always the way communications of any sort work.

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

    Tx of Arduino to Rx of Hc-12 or reverse?

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

    Hi is it possible to have one HC12 as transmitter and send it to multiple HC12 receivers? Thank you for your reply

  • @jpdesroc
    @jpdesroc 3 года назад +2

    When you enter the AT commands, if you change the baud rate different from the 9600 default then exit the AT command mode, will the HC-12 keep this change after a power shut off ?
    I hope so because if the HC-12 does not keep these AT settings changes a micro-controller will be needed to set back these different settings on every power up like the baud rate or Tx power
    for instance.. My actual application runs on 4800bds.. Keep up the good job !

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

      Hi! Yes, it keeps the settings :-)

    • @jpdesroc
      @jpdesroc 3 года назад +2

      @@DIYTECHBROS GOOOOOD !

  • @florentleider222
    @florentleider222 4 года назад +4

    Your HC-12 lokks like a copy (widely spred..)

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

      Hi Mac! Yes, we did a video on that topic as well - with extremely different results! See this video: ruclips.net/video/iYpfUcKZ0Ck/видео.html

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

      @@DIYTECHBROS Hi guys. I have clicked the youtube link above to see HC12 video but it goes to a ESP01 video. Is this right? Am I doing something wrong? I cant see any mention of HC12's. Thanx very much. Great Job!!!

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

      PJ Jones sorry, this is the link ruclips.net/video/awOPJK5He28/видео.html

  • @munch15a
    @munch15a 3 года назад +1

    for me I intend to have 4 different ardunio waiting for a call from a amster one I can in theory just use the default channel with out need to use set at all right ?

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

    Amigo soy rafael de uruguay se puede con dos arduinos y sus respectivos modulos de hc-12 encender un pin de salida del arduino. Es decir que el emisor detecte un nivel bajo de agua y que le diga al receptor que tiene que prender una luz

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

      Yes, thats a perfect use case!

  • @emanvlogz8088
    @emanvlogz8088 Год назад +1

    Can we use multiple HC12 Transmitters and one receiver combination?

    • @jasonparkin8416
      @jasonparkin8416 7 месяцев назад

      I wouldn’t see why not as long as all devices are setup the same. If I was to do this I would organize a packet structure and send a device id with each packet. This would help identify the transmit device and for debugging

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

    Is it possible that HC-12 can receive data from multiple HC-12 in a same time.

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

      Hi! Yes, one HC-12 unit can receive data from multiple other HC-12 units. As long as they do not all transmit within the exact same time within a second. See our other video on the HC-12 where we do something similar @Z0Ck

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

    Great video, very useful module!
    I believe it is a good alternative for building a multi channel remote control?

  • @nuggetking1770
    @nuggetking1770 Месяц назад

    3:49

  • @Lego_Life
    @Lego_Life 4 года назад +2

    Will the code for HC 05 work for HC 12 too?

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

      Hi Lego Life! Not sure, but some basics remains the same!

    • @Lego_Life
      @Lego_Life 4 года назад +2

      @@DIYTECHBROS thank you. Will try using them myself then. Could you please make a tutorial for that?

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

    Followed ur code it didn't work even copied ur code and it didn't work

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

    do anyone know what i might do wrong cause not only this tutorial didnt work but none on the internet work for me with hc12

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

    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

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

    I'm trying to send data from an bmp280 and have another Arduino display the readings to an lcd. how do you do this?

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl 4 года назад +1

    Thank You

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

      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!

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

    How to send multiple variables using HC 12

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

      Hi! There are a few simple options. (1) send two different transmissions (2) use the string functions to extract the data you need. Let’s say you want to send A as variable 1 and B as variable two. And you know that the value of any variable is always going to only be one char you can simply use substring().

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

    I want to upload sketch via hc-12 module ,possible or not?

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

      +chaitanya khatri Hi :-) not entirely sure I fully understand the question... but you can not upload a sketch the the HC-12. It needs to be uploaded to the Arduino.

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

      @@DIYTECHBROS ok thanks brother like as possible in hc -05 module

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

    How do i send in integer and then use that integer on the recieving arduino?

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

      Use String(int) to make an int into a string. And, toInt() to make it an int.
      myString = String(123);
      myInt = myString.toInt()

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

    We are preparing for an range / antenna test with the HC-12. Let us know if there is something you would like us to test! Edit: The test video is done: ruclips.net/video/awOPJK5He28/видео.html