Arduino Pro Mini - 3.3 V / 8MHz - Serial Question

Hey Guys

I’m trying to use the Soft Serial to talk to a HC-11 CC1101 RF Board. So far I’ve been unable to atlk to it over the serial pins 0/1, so I wanted to try using the soft serial.

This is my code:

#include <SoftwareSerial.h>

#define SET 12

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  
  digitalWrite(SET, HIGH);
  pinMode(SET, OUTPUT);
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
}

void loop() { // run over and over
  if( mySerial.available() > 0 ){
    Serial.println("Serial Setup");
    pinMode(SET, LOW);
    mySerial.print(F("AT\r\n"));
    Serial.println("Serial Response");
    Serial.println(mySerial.read());
  }
  Serial.println("Sleeping for 2 seconds");
  delay(2000);  
}

But I never see Serial Setup, so mySerial isn’t available. Does it appear I’m doing anything wrong?

Thanks
docmur

Serial.println("Serial Setup");

You never print anything to mySerial.

How do you connect Serial (Rx/Tx), so that you can see any output?

while (!Serial) is required only on a Leonardo, is always True on other controllers.

Add some output to Serial in setup(), to verify that this connection is working.

Also make sure that you program the Pro Mini for 3.3V/8Mhz operation, else the baudrate will be wrong.

Something is wrong with both of my HC-11’s. I used my Oscilloscope and the Serial is working fine out o the arduino, but nothing is coming back.

I can’t get them to operate with a full HC-11 sketch and well using my Uno’s or Diecimila. I’m going to order new modules, they’re $5, so it’s not a big deal.