[first time usage]
I'm checking this config out with a simple sketch derived from one @ https://www.allaboutcircuits.com/projects/understanding-and-implementing-the-hc-12-wireless-transceiver-module/.
The sketch acknowledges a command from the Serial Monitor and responds accordingly along with an "OK". I have used this sketch countless times before with numerous HC-12 and UNO, and this particular HC-12 functions properly when connected to such.
For the Pro Micro, the command is echoed back instead, which, in my experience, indicates that the HC-12 is not receiving/responding.
The Pro Micro test config is very basic: Pro Micro, HC-12, USB connection, 5 direct jumper connections for vcc, gnd, pins 4-6. Vcc output reads 4.2 volts.
I specify:
const byte HC12RxdPin = 4; // "RXD" Pin on HC12
const byte HC12TxdPin = 5; // "TXD" Pin on HC12
const byte HC12SetPin = 6; // "SET" Pin on HC12
SoftwareSerial HC12(HC12TxdPin, HC12RxdPin)
I have also tested with an IN4007 in the power connect for the HC-12, but results are the same.
I've swapped HC-12s, and checked out the requisite pins by using another sketch that toggles an led on each. The Arduino IDE is 1.8.2, and I am specifying a Leonardo board. This is the suggestion I found whilst researching.
I have seen a few projects using the HC-12 with the Pro Micro and other small boards, but noticed no special considerations for such.
Have you any suggestions or solutions [even better]?