Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:52 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : HC-12 Minimum Circuit To Configure

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 872
Posted: 10:50pm 08 Feb 2018
Copy link to clipboard 
Print this post

I'm happily using HC-12 for a number of projects and use Rob Rozee's configuration utility via an LCD Backpack to configure them (via a USB to serial converter as a console).
Rather than tie up a backpack I'm wanting to make a simple stand-alone device to configure them.

Please - what is a basic circuit to connect to a PC running Rob's program?

(eg is a MM170 required (with a 10k resistor to #1, 3.3V to #13, #19-20 Cap, and earth to #8, 19 & 27? - how else is Pin 5 controlled), or can Pins 3 & 4 go direct to the console? (Pins 1 & 2 I get!)

Many thanks, Andrew
(to some this may seem a dumb question - but that is how I learn)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 01:04am 09 Feb 2018
Copy link to clipboard 
Print this post

Dead easy to do.

You will need a USB-to-serial adaptor such as CP2102 module or a 1455-based MicroBridge unit.

1) Connect RXD(in) of HC12 module to TXD(out) of USB-to-serial adaptor.
2) Connect TXD(out) of HC12 module to RXD(in) of USB-to-serial adaptor.
3) Connect Ground of HC12 to Ground of USB-to-serial adaptor.
4) Connect SET of HC12 to ground.
5) Connect VCC of HC12 to the 5v output of the USB-to-serial adaptor.
6) Start up Rob's HC12 programmer, and connect to the USB-to-serial adaptor COM port.

You should now be able to read the current settings, and change whatever you want, then write the new settings back to the module. When done, remove the wires to the HC12, and when you reconnect power, the HC12 should be using the new settings.
Smoke makes things work. When the smoke gets out, it stops!
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 02:48am 09 Feb 2018
Copy link to clipboard 
Print this post

Do you have a CP2102?

That would be by far the simplest option.

One of the versions built into a USB lead.
Should be able to provide enough power to program it.

Think??? I've done that on occasions.

Phil.


Edit....

Remember to hit Send... Not hours later.
Edited by Phil23 2018-02-10
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 872
Posted: 04:25am 09 Feb 2018
Copy link to clipboard 
Print this post

Grogs and Phil,
Thanks so very much for your replies.
Spot on!

(I hadn't been connecting Set (pin 5) to ground - I hadn't realised that it was needed to read as well as change the configuration).

Thanks again,

Andrew

Edited a short while later - I have now made up a vero-board adapter with header/socket so I can now easily connect my HC-12s to a console and program away - thanks, AndrewEdited by Andrew_G 2018-02-10
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025