Activity › Forums › Questions & Troubleshooting › Software & Firmware › serial1 is not available. & Softserial Question › Reply To: serial1 is not available. & Softserial Question
-
Hello,
Serial1 at pinheader X1 should work. I have tested it with following code:
Code:void setup() {
Serial1.begin(9600);
Serial1.println(“Hello!”);
}
void loop() {
if (Serial1.available() > 0) {
Serial1.write(Serial1.read());
Serial1.println(” received.”);
}
}Please note that on the pinheader you have 5V TTL UART, so you need a converter like this
<a href="https://www.digikey.cz/product-detail/en/ftdi-future-technology-devices-international-ltd/TTL-232R-5V-WE/768-1029-ND/2003494” class=”bbcode_url”>https://www.digikey.cz/product-detail/en/ftdi-future-technology-devices-international-ltd/TTL-232R-5V-WE/768-1029-ND/2003494as I have used for my test setup.