{"id":11276,"date":"2021-03-13T15:34:44","date_gmt":"2021-03-13T15:34:44","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/hc-12-radio-module"},"modified":"2024-08-26T06:54:44","modified_gmt":"2024-08-26T06:54:44","slug":"hc-12-radio-module","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module","title":{"rendered":"HC-12 Radio Module"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this post<\/h2>\n\n<p>In <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/433-mhz-radio-with-arduino\" target=\"_blank\" rel=\"noopener\">one of my first posts<\/a> I had already reported on 433 MHz radio modules, but omitted the HC-12 module. I would like to close this gap now, especially since the HC-12 module has some very positive properties. On the one hand, it is characterized by simple operation, and on the other hand, it can be used both as a transmitter and a receiver.<\/p>\r\n<p>The article is structured as follows:<\/p>\r\n<ul>\r\n<li>Technical characteristics<\/li>\r\n<li>Quick start<\/li>\r\n<li>How to make settings<\/li>\r\n<li>Range test<\/li>\r\n<li>Transmission of sensor data<\/li>\r\n<\/ul>\r\n\n<h2 class=\"wp-block-heading\">Basics \/ Technical Properties<\/h2>\n\n<p>The HC-12 radio module is available in online shops for 6 to 9 euros. In Chinese shops it is again much cheaper, but you have to accept a few weeks delivery time there. Normally, a spiral antenna is supplied.<\/p>\r\n<p>The module design varies. Some modules are based on the SI4463 transceiver, others on the SI4438. The former has a slightly longer range (more details <a href=\"https:\/\/www.iot-rf.com\/si4438-rf-module-or-si4463-rf-module.html\" target=\"_blank\" rel=\"noopener\">here<\/a>). The connections appear to be the same for all HC-12 modules. I was able to combine modules with SI4463 and SI4438 transceivers, but others report problems. To be on the safe side, try to work with a single type.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-1024x482.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-1024x482.jpg\" alt=\"\" class=\"wp-image-11177\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-1024x482.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-300x141.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-768x361.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-1536x722.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12-1320x621.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/HC12.jpg 2007w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Two HC-12 modules with spiral antenna<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-1024x382.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-1024x382.jpg\" alt=\"\" class=\"wp-image-11179\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-1024x382.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-300x112.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-768x287.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-1536x574.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-2048x765.jpg 2048w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/20210222_204455-1320x493.jpg 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HC-12 module back<\/figcaption><\/figure>\n\n<p>In advance: not everything the HC-12 module can do in terms of frequencies and ranges is allowed (in Germany &#8211; please check for your country). So don&#8217;t rejoice too soon. I will come back to that later.<\/p>\r\n<p>Here is the most important data at a glance:<\/p>\r\n<ul>\r\n<li>Frequency range: 433.4 &#8211; 473.0 MHz<\/li>\r\n<li>Power consumption:\r\n<ul>\r\n<li>non-sending: depending on operating mode 80 \u00b5A &#8211; 16 mA<\/li>\r\n<li>when sending: ~100 mA<\/li>\r\n<li>Sleep Mode: 23 \u00b5A (own measurement)<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Power supply: 3.2 &#8211; 5.5 volts<\/li>\r\n<li>Communication with the module: serial (RX \/ TX)\r\n<ul>\r\n<li>Baudrate: 1200 &#8211; 115200<\/li>\r\n<li>Voltage Level: 3.3 volts\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Range: maximum 1800 m<\/li>\r\n<li>maximum transmitting power: 20 dBm \/ 100 mW<\/li>\r\n<li>Transmission rate (radio): up to 250000 bps<\/li>\r\n<li>Settings via AT commands (SET Pin)<\/li>\r\n<\/ul>\r\n\n<p>An essential feature of the HC-12 module is that it has its own microcontroller, which takes care of the radio transmission. You only contact the module via the serial connection. As you will see, the handling of the modules is therefore surprisingly easy. You don&#8217;t have to deal with any radio library.&nbsp;<\/p>\r\n\n<h2 class=\"wp-block-heading\">Quick Start<\/h2>\n\n<h3 class=\"wp-block-heading\">Wiring<\/h3>\n\n<p>Solder the spiral antenna to the module and connect it to the microcontroller or Arduino of your choice. At Arduino Nano it could look like this:<\/p>\r\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1578\" height=\"669\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12.png\" alt=\"\" class=\"wp-image-21926\" style=\"aspect-ratio:2.543859649122807;object-fit:contain;width:800px;height:auto\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12.png 1578w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12-300x127.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12-1024x434.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12-768x326.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12-1536x651.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12-1320x560.png 1320w\" sizes=\"auto, (max-width: 1578px) 100vw, 1578px\" \/><\/a><figcaption class=\"wp-element-caption\">The HC-12 module on the Arduino Nano <\/figcaption><\/figure>\n\nThe HC-12 module is controlled by Software Serial. RX and TX of the module are connected crosswise to the SoftwareSerial pins, i.e. RX to TX and TX to RX. If you use a 5 volt board, you should apply a voltage divider at RX of the HC-12. We don&#8217;t need the SET Pin in this quick start because we use the default settings.\r\n\r\nThe set-up is identical for the transmitting and the receiving side (if you can even tell what is the transmitting side and what is the receiving side). Connect both Arduinos to the computer.\n\n<h3 class=\"wp-block-heading\">The base sketch<\/h3>\n\n<p>As an introduction, we take the modified SoftwareSerial sketch from the examples of the Arduino IDE. We choose 9600 Baud, because this is the default setting of the HC-12.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_SoftwareSerial.ino\" data-enlighter-title=\"HC12_SoftwareSerial.ino\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\n\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  hc12.begin(9600);\r\n  Serial.println(\"Let's start!\");\r\n}\r\n\r\nvoid loop() { \r\n  if (hc12.available()) {\r\n    Serial.write(hc12.read());\r\n  }\r\n  if (Serial.available()) {\r\n    hc12.write(Serial.read());\r\n  }\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<p>Upload the sketch on the first Arduino, then you open a second instance of the Arduino IDE (so just open the Arduino IDE again without closing the first one). Select the port of the second Arduino and upload the sketch to the second Arduino as well. Now you can open a serial monitor for each of them. Then write a message in one of the input fields, click on &#8220;Send&#8221; and the message appears in the serial monitor of the other Arduino.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Simple_setup.png\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"410\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Simple_setup.png\" alt=\"Output of HC12_SoftwareSerial.ino\" class=\"wp-image-11182\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Simple_setup.png 741w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Simple_setup-300x166.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/a><figcaption class=\"wp-element-caption\">Output of HC12_SoftwareSerial.ino<\/figcaption><\/figure>\n\n<p>It&#8217;s that simple! The only problem is that if you live in Germany, you have just violated the legal regulations for the use of the 433 MHz frequency band. These set 10 &nbsp; mW as the maximum permissible transmitting power. However, the HC-12 module transmits at 100&nbsp;mW in the default settings. We&#8217;ll get to see how you can select the permissible range. If you want to know more about the rules for radio use (in Germany), then I recommend <a href=\"https:\/\/www.mikrocontroller.net\/articles\/Allgemeinzuteilung\" target=\"_blank\" rel=\"noopener\">this link<\/a> to an easy-to-understand summary.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Settings of the HC-12 radio module<\/h2>\n\n<p>The settings are made via AT commands, which you may already know from the <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules\" target=\"_blank\" rel=\"noopener\">Bluetooth modules HC-05 and HC-06<\/a>. To enter AT mode, all you have to do is connect SET to GND. Alternatively, you connect SET to an I\/O pin and set it to OUTPUT and LOW. The SET pin is internally connected with a 10 kOhm pull-up resistor. If you disconnect it from GND again or switch the I\/O pin to INPUT, it returns into normal radio mode. It takes about 40 milliseconds to do this.<\/p>\r\n<p>It makes a difference whether you pull down SET to LOW during operation or already when the module is switched on:<\/p>\r\n<ul>\r\n<li>Switching during operation: the module remains accessible with the settings selected for the serial connection (baud rate, data bits, parity bit, stop bit).<\/li>\r\n<li>Connecting SET to GND when switching on: The baud rate for communication with the module is set to 9600 baud. Also: 8 data bits, no parity, one stop bit.<\/li>\r\n<\/ul>\r\n<p>The latter method is handy if you forgot which baud rate you set on the module. Otherwise you would simply have to try it out.<\/p>\r\n<p>Put the HC-12 module into AT mode as a first test. For the Arduino you continue to use the HC12_SoftwareSerial Sketch from above. Type in &#8220;AT&#8221; (without the quotation marks) into the input field. The module should kindly respond with &#8220;OK&#8221;.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Setting the baud rate<\/h3>\n\n<p>The following table shows which baud rates you can set for communication with the HC-12 module. The radio baud rate (&#8220;Baud Rate in the Air&#8221;) is automatically adjusted by the module.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity-1024x199.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"199\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity-1024x199.png\" alt=\"Setting the baud rates of the HC-12 module \" class=\"wp-image-11197\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity-1024x199.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity-300x58.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity-768x149.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/baudrate_serial_air_sensitivity.png 1305w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Table 1: Setting the baud rate of the HC-12 module <\/figcaption><\/figure>\n\n<p>You pay for a high data rate with a low reception sensitivity. With each reduction of 6 dBm, the sensitivity is reduced to half.<\/p>\r\n<p>The transmitting and the receiving module must have set the same baud rate. The setting is done with:<\/p>\r\n<ul>\r\n<li>AT+Bx with x = 1200, 2400, 4800, etc.<\/li>\r\n<\/ul>\r\n<p>The setting is always active only when you have left AT mode.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Setting the radio mode<\/h3>\n\n<p>The HC-12 module has the four radio modes: FU1, FU2, FU3 (default) and FU4:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12_radio_modes.png\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12_radio_modes-1024x223.png\" alt=\"The radio modes of the HC-12 module\" class=\"wp-image-11199\"\/><\/a><figcaption class=\"wp-element-caption\">Table 2: The radio modes of the HC-12 module<\/figcaption><\/figure>\n\n<p>You set the radio mode as follows:<\/p>\r\n<ul>\r\n<li>AT+FUx with x = 1, 2, 3 or 4<\/li>\r\n<\/ul>\r\n\n<h4 class=\"wp-block-heading\">Radio mode FU1<\/h4>\n\n<p>FU1 is a moderate power saving mode. The HC-12 module consumes 3.6 mA (I measured 3.8 mA) as long as it does not send. You can apply all baud rates in this mode, but the radio baud rate (&#8220;in the air&#8221;) is set to 250000 bps. Thus, you have a high data rate, but only a limited range. I think a range of 100 m as stated in the data sheet is very optimistic. In addition, the range is even shorter if you reduce the transmission power to the level permitted in Germany.&nbsp;<\/p>\r\n<p>If you instruct the module to send something, it will do so with some delay. In FU1 mode, the delay is between 15 and 25 ms.&nbsp;<\/p>\r\n\n<h4 class=\"wp-block-heading\">Radio mode FU2 <\/h4>\n\n<p>FU2 mode is an extreme power saving mode. According to the data sheet, the consumption drops to 80 \u00b5A. I measured even less, the consumption periodically fluctuated between 23 and 80 \u00b5A. Apparently, the module goes intermittent into sleep mode. Only 1200, 2400 or 4800 are allowed baud rates. The radio baud rate is again very high at 250000 bps and the range is accordingly limited. The delay is 500 ms.<\/p>\r\n<p>If you switch from another mode to FU2 and a higher baud rate was set, then the baud rate is reduced to 4800. If, on the other hand, you set FU2 mode and then select a baud rate greater than 4800, your transmission will no longer work.<\/p>\r\n\n<h4 class=\"wp-block-heading\">Radio mode FU3<\/h4>\n\n<p>FU3 is the default mode. You can select all baud rates. The radio baud rate is set automatically according to Table 1. The power consumption is quite high at 16 mA. According to the data sheet, 1000 m range can be achieved (with illegal 100 mW transmitting power). Depending on the baud rate, the delay is between 4 and 80 ms.<\/p>\r\n\n<h4 class=\"wp-block-heading\">Radio mode FU4<\/h4>\n\n<p>This mode is designed to achieve long ranges of up to 1800 meters. The only allowed baud rate is 1200. The radio baud rate is even reduced to 500 bps. The data packages should not exceed 60 bytes and there should be a pause of 2 seconds between sending two packages.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Setting the transmitting power <\/h3>\n\n<p>Now we come to the setting of the transmitting power. The HC-12 module offers eight power levels:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-1024x134.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"134\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-1024x134.png\" alt=\"\" class=\"wp-image-11203\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-1024x134.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-300x39.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-768x100.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-1536x200.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power-1320x172.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Power_Level_vs_Transmitting_Power.png 1557w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Transmission power of the HC-12 module<\/figcaption><\/figure>\n\n<p>As you can easily see, the legal limit (for Germany) is between Level 4 and Level 5. The setting is done as follows:<\/p>\r\n<ul>\r\n<li>AT+Px with x = 1, 2, 3, 4, 5, 6, 7, 8<\/li>\r\n<\/ul>\r\n<p>The default is 8.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Setting the channel<\/h3>\n\n<p>A nice feature of the HC-12 module is the possibility to set 100 channels, each with a frequency shifted by 400 kHz. Channel 001 uses the frequency 433.4 MHz, channel 100 uses 473.0 MHz. Unfortunately, there is again a problem here (at least in Germany) because the permissible frequency range is between 433.05 and 434.79. <strong>Thus, only channels 1 to 4 are allowed<\/strong> (and again: if you are in Germany).<\/p>\r\n<p>The channels are set with:<\/p>\r\n<ul>\r\n<li>AT+Cx with x = 001, 002, 003 &#8230;. 099, 100<\/li>\r\n<\/ul>\r\n<p>The default is channel 001.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Setting the data format<\/h3>\n\n<p>In serial data transfer, you can set the number of bits that are transmitted per byte. Anything other than 8 would be exotic. It is followed by a <a href=\"https:\/\/de.wikipedia.org\/wiki\/Parit%C3%A4tsbit\" target=\"_blank\" rel=\"noopener\">parity bit<\/a> &#8211; or none (non parity). If a parity bit sent, you can choose whether to check for even or odd parity. Finally, either 1, 2 or 1.5 stop bits are transmitted.<\/p>\r\n<p>The data format is set as follows:<\/p>\r\n<ul>\r\n<li>AT+Uxyz with:\r\n<ul>\r\n<li>x = number of bits, i.e. normally 8<\/li>\r\n<li>y = O (odd parity check), E (even parity check), N (no parity check)<\/li>\r\n<li>z = 1 (one stop bit), 2 (2 stop bits), 3 (1.5 stop bits)<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<p>The default is: 8N1.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Other settings<\/h3>\n\n<ul>\r\n<li>AT+SLEEP puts the module into sleep mode. It will only need 23 \u00b5A. The sleep mode starts when you leave the AT mode. The module is awakened by entering AT mode for a short time. An example sketch of this can be found below.<\/li>\r\n<li>AT+DEFAULT resets all settings.<\/li>\r\n<li>AT+UPDATE puts the module in a state that allows uploading a new firmware.<\/li>\r\n<\/ul>\r\n\n<h3 class=\"wp-block-heading\">Querying the HC-12 module<\/h3>\n\n<p>You can not only make settings, but also query them:<\/p>\r\n<ul>\r\n<li>AT+V delivers the firmware version<\/li>\r\n<li>AT+Rx, with\r\n<ul>\r\n<li>x = B, C, F or P for baud rate, channel, radio mode or transmitting power<\/li>\r\n<li>x = X means that all parameters are queried<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<p>This is what the answer to &#8220;AT+RX&#8221; looks like:<\/p>\r\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_AT_RX.png\"><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"349\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_AT_RX.png\" alt=\"Querying the HC-12 module with AT+RX\" class=\"wp-image-11208\" style=\"width:580px;height:267px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_AT_RX.png 756w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_AT_RX-300x138.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><figcaption class=\"wp-element-caption\">Querying the HC-12 module with AT+RX<\/figcaption><\/figure>\n\n<h2 class=\"wp-block-heading\">Using the sleep mode<\/h2>\n\n<p>The sleep mode is particularly suitable for modules that are only to send something from time to time, such as the data of a weather station. In principle, I have already explained above how it works. It is important that delays are added in some places.<\/p>\r\n<p>The sample sketch has the HC-12 module send a friendly &#8220;Hello again&#8221; every 10 seconds and then sends it to sleep.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_Sleep.ino\" data-enlighter-title=\"HC12_Sleep.ino\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\nint SETPin = 5;\r\n\r\nvoid setup() {\r\n  pinMode(SETPin,INPUT);\r\n  Serial.begin(9600);\r\n  hc12.begin(9600);\r\n  Serial.println(\"Let's start!\");\r\n}\r\n\r\nvoid loop() { \r\n  hc12.print(\"Hello again\");\r\n  delay(100);\r\n    \r\n  pinMode(SETPin, OUTPUT);\r\n  delay(50);\r\n  hc12.print(\"AT+SLEEP\");\r\n  delay(50);\r\n  pinMode(SETPin, INPUT);\r\n  \r\n  delay(10000);\r\n  \r\n  pinMode(SETPin, OUTPUT);\r\n  delay(100);\r\n  pinMode(SETPin, INPUT); \r\n  delay(100);\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<h2 class=\"wp-block-heading\">Range test<\/h2>\n\n<p>To test the range of the module, I first used the setup shown above. I operated the two Arduino Nano Boards with 9 volt batteries. The transmitting unit ran with the following simple sketch, which I probably don&#8217;t have to explain:<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_Distance_Test_Transmitter\" data-enlighter-title=\"HC12_Distance_Test_Transmitter\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\n\r\nvoid setup() {\r\n  hc12.begin(9600);\r\n}\r\n\r\nvoid loop() { \r\n  hc12.print(\"Hi Wolle\");\r\n  delay(3000);\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<p>On the receiver side I attached an LED to pin 6 of the Arduino Nano. The recipient sketch checks to see if a message has been sent. If this is the case, it checks to see if the message is correct. If so, the LED lights up for half a second. I moved away from the transmitter with the receiver until the LED stopped blinking or stopped blinking regularly. I did the experiment in an open field with direct visual contact.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_Distance_Test_Receiver\" data-enlighter-title=\"HC12_Distance_Test_Receiver\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\nint ledPin = 6;\r\n\r\nvoid setup() {\r\n  hc12.begin(9600);\r\n  pinMode(ledPin, OUTPUT);\r\n}\r\n\r\nvoid loop() { \r\n  String message = \"\";\r\n  if(hc12.available()) {\r\n    message = hc12.readString();\r\n    if(message==\"Hi Wolle\"){\r\n      digitalWrite(ledPin, HIGH);\r\n      delay(500);\r\n      digitalWrite(ledPin, LOW);\r\n    }\r\n  }\r\n}<\/pre>\r\n<p>\u00a0<\/p>\r\n\n<p>With the standard settings (FU3 \/ 9600 Baud \/ 100 mW transmitting power) and the spiral antenna I could bridge a distance of approx. 120 meters. This is only a fraction of the 600 meters indicated above.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Improving the range<\/h2>\n\n<p>Two hardware changes can increase the range:<\/p>\r\n<ul>\r\n<li>Attach a big capacitor to the power supply.&nbsp; The data sheet recommends 1000 \u00b5F. I had only 470 F in my stock. The capacitor ensures that the sudden, high power can be supplied when sending.<\/li>\r\n<li>Use a better antenna. From <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/433-mhz-radio-with-arduino\" target=\"_blank\" rel=\"noopener\">previous experiments<\/a> I know that a 17.3 cm (= 1\/4 of the wavelength) long straight wire already lead to higher ranges than the spiral antennas.&nbsp;<\/li>\r\n<\/ul>\r\n<p>But now I wanted to go all the way and got two external 433 MHz antennas for about 15 euros each. Since they had SMA connectors, I had to get two SMA-to-IPEX adapters. Here&#8217;s what the setup looked like:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-1024x714.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"714\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-1024x714.jpg\" alt=\"Increasing the range of the HC-12 module with external antenna\" class=\"wp-image-11216\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-1024x714.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-300x209.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-768x535.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-1536x1071.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test-1320x920.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/range_test.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Increasing the range of the HC-12 module with external antenna<\/figcaption><\/figure>\n\n<p>As a schematic:<\/p>\r\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-1024x528.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"528\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-1024x528.png\" alt=\"\" class=\"wp-image-21928\" style=\"width:840px;height:auto\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-1024x528.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-300x155.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-768x396.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test-1320x681.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/HC12__Range_Test.png 1412w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Setup for the range test<\/figcaption><\/figure>\n\n<p>With this I achieved a range of more than 1000 meters. In the end, the limiting factor was the free view from module to module. So I cannot say with certainty whether 1800 meters are actually reachable.<\/p>\r\n\n<p>It was only then that I realized that the transmission power I used was not permitted in Germany. I then did further tests with the allowed powerlevel 4). Using the spiral antenna in FU3 mode, the range dropped less than I feared to 80 meters. Due to the change to FU4 it went up again to 180 meters. And with the good antenna, I could achieve 350 meters.&nbsp;<\/p>\r\n<p>I also tested the modules with the SI4438 chip and could not find any difference to the SI4463 based modules. However, I only tried one parameter set.<\/p>\r\n<p>Here is a summary of all test results:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Range_Test_Result.png\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Range_Test_Result-1024x297.png\" alt=\"Results of the HC-12 range tests\" class=\"wp-image-11245\"\/><\/a><figcaption class=\"wp-element-caption\">Results of the HC-12 range tests<\/figcaption><\/figure>\n\n<p>In my house I could easily send messages through two walls and a ceiling using FU3 \/ 9600 Baud \/ Spiral Antenna \/ Powerlevel 4.<\/p>\r\n<p>Check what you really need and play around a bit. Do not overdo it with the transmitting power. After all, you also wouldn&#8217;t want your 433 MHz applications to be disrupted by transmitters of your neighbors!<\/p>\r\n\n<h2 class=\"wp-block-heading\">Transmission of sensor data<\/h2>\n\n<p>Finally, for the less experienced, a guide on how to transfer sensor data. More specifically, it&#8217;s about how you build strings from integers and floats, send them, and convert them back on the receiver side.<\/p>\r\n<p>The transmitter providing the data (server) converts the data using <code>String(Zahl)<\/code> into strings that are linked together, but separated by non-numbers (asterisks in this example). If the transmitting unit receives a request, the string is sent. The sketch sends fixed values. You would replace that with sensor data or something similar.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_Data_Server.ino\" data-enlighter-title=\"HC12_Data_Server.ino\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\n\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  Serial.println(\"Let's start!\");\r\n  hc12.begin(9600);\r\n}\r\n\r\nvoid loop() { \r\n  String requestString = \"\";\r\n  if (hc12.available()) {\r\n    requestString = hc12.readString();\r\n    Serial.println(requestString);\r\n  }\r\n  if(requestString == \"request\"){\r\n    String dataString = \"\";\r\n    createDataString(dataString);\r\n    Serial.println(dataString);\r\n    hc12.print(dataString);\r\n  }\r\n}\r\n\r\nvoid createDataString(String &amp;data){\r\n  int sensor1 = 746;\r\n  int sensor2 = 8295;\r\n  float sensor3 = 41.84;\r\n  data = \"*\" + String(sensor1) + \"*\" + String(sensor2) + \"*\" + String(sensor3); \r\n}\r\n<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<p>On the receiver side (client) I have installed a button that triggers the request.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton-1024x454.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton-1024x454.png\" alt=\"\" class=\"wp-image-21930\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton-1024x454.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton-300x133.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton-768x341.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Wiring_HC12_pushbutton.png 1199w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Circuit for the sensor test<\/figcaption><\/figure>\n\n<p>After a short time, the client receives the response from the server. To extract the numbers from the incoming string, there are the very useful functions <code>parseInt()<\/code> and <code>parseFloat()<\/code>. These functions analyze the incoming characters. They wait until digits occur, collect them until the next non-digit (except for the decimal point at <code>parseFloat()<\/code>), and convert these numbers into an integer or float value.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HC12_Data_Client.ino\" data-enlighter-title=\"HC12_Data_Client.ino\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial hc12(10,11);\r\nint requestPin = 7;\r\n\r\nvoid setup() {\r\n  pinMode(requestPin, INPUT);\r\n  Serial.begin(9600);\r\n  hc12.begin(9600);\r\n  Serial.println(\"Let's start!\");\r\n}\r\n\r\nvoid loop() { \r\n  int sensorData1 = 0;\r\n  int sensorData2 = 0;\r\n  float sensorData3 = 0.0; \r\n  \r\n  if (hc12.available()){\r\n    sensorData1 = hc12.parseInt();\r\n    sensorData2 = hc12.parseInt();\r\n    sensorData3 = hc12.parseFloat();\r\n    \r\n    Serial.print(\"Sensor 1: \");\r\n    Serial.println(sensorData1);\r\n    Serial.print(\"Sensor 2: \");\r\n    Serial.println(sensorData2);\r\n    Serial.print(\"Sensor 3: \");\r\n    Serial.println(sensorData3);  \r\n  }\r\n  if(digitalRead(requestPin)) {\r\n    delay(300); \/\/ debounce\r\n    hc12.print(\"request\"); \r\n  }\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<p>Here&#8217;s what the output looks like on the transmitter and the receiver side:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_Data_Transfer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"368\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_Data_Transfer.png\" alt=\"\" class=\"wp-image-11184\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_Data_Transfer.png 760w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/02\/Output_Data_Transfer-300x145.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><figcaption class=\"wp-element-caption\">Output of HC12_Data_Server.ino \/ HC12_Data_Client.ino<\/figcaption><\/figure>\n\n<h2 class=\"wp-block-heading\">Acknowledgement<\/h2>\n\n<p>The two males on the post picture are from <a href=\"https:\/\/pixabay.com\/de\/users\/peggy_marco-1553824\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1015374\" target=\"_blank\" rel=\"noopener\">Peggy and Marco Lachmann-Anke<\/a>. I owe the paragraph symbol to Michael Schwarzenberger. Everything as usual from <a href=\"https:\/\/pixabay.com\/de\/\" target=\"_blank\" rel=\"noopener\">Pixabay<\/a>.<\/p>\r\n<p>The HC-12 module as Fritzing component was created by &nbsp; <a href=\"https:\/\/forum.fritzing.org\/t\/hc-12-module-433mhz-long-range-1-8km\/1976\" target=\"_blank\" rel=\"noopener\">Estev\u00e9o Trabbold (stvz) on fritzing.org<\/a>.<\/p>\r\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HC-12 radio module is easy to handle and has a long range. I&#8217;ll show you how it works, how you make settings, and how you use it legally compliant (in Germany).<\/p>\n","protected":false},"author":1,"featured_media":11234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[545,548],"tags":[551,1408,1410,1405,1406,1407,564,861,1409,1411],"class_list":["post-11276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-433-mhz-en","category-wireless","tag-433-mhz-en","tag-at-commands-en-3","tag-baud-rate","tag-hc-12-en","tag-radio-mode","tag-radio-modes","tag-range-en","tag-settings-2","tag-sleep-mode","tag-technical-characteristics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HC-12 Radio Module &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HC-12 Radio Module &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-13T15:34:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-26T06:54:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"HC-12 Radio Module\",\"datePublished\":\"2021-03-13T15:34:44+00:00\",\"dateModified\":\"2024-08-26T06:54:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module\"},\"wordCount\":2551,\"commentCount\":24,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Beitragsbild_2.png\",\"keywords\":[\"433 MHz\",\"AT Commands\",\"baud rate\",\"HC-12\",\"radio mode\",\"radio modes\",\"Range\",\"settings\",\"sleep mode\",\"technical characteristics\"],\"articleSection\":[\"433 MHz\",\"Wireless\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module\",\"name\":\"HC-12 Radio Module &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Beitragsbild_2.png\",\"datePublished\":\"2021-03-13T15:34:44+00:00\",\"dateModified\":\"2024-08-26T06:54:44+00:00\",\"description\":\"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Beitragsbild_2.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Beitragsbild_2.png\",\"width\":1000,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-12-radio-module#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HC-12 Radio Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HC-12 Radio Module &#8226; Wolles Elektronikkiste","description":"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module","og_locale":"en_US","og_type":"article","og_title":"HC-12 Radio Module &#8226; Wolles Elektronikkiste","og_description":"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module","og_site_name":"Wolles Elektronikkiste","article_published_time":"2021-03-13T15:34:44+00:00","article_modified_time":"2024-08-26T06:54:44+00:00","og_image":[{"width":1000,"height":1000,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png","type":"image\/png"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"HC-12 Radio Module","datePublished":"2021-03-13T15:34:44+00:00","dateModified":"2024-08-26T06:54:44+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module"},"wordCount":2551,"commentCount":24,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png","keywords":["433 MHz","AT Commands","baud rate","HC-12","radio mode","radio modes","Range","settings","sleep mode","technical characteristics"],"articleSection":["433 MHz","Wireless"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module","url":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module","name":"HC-12 Radio Module &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png","datePublished":"2021-03-13T15:34:44+00:00","dateModified":"2024-08-26T06:54:44+00:00","description":"The HC-12 module is easy to handle and has a long range. I will show you how to make the settings and how to use it in a legally compliant way (in Germany).","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/03\/Beitragsbild_2.png","width":1000,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-12-radio-module#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"HC-12 Radio Module"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/11276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=11276"}],"version-history":[{"count":0,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/11276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/11234"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=11276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=11276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=11276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}