Activity › Forums › Questions & Troubleshooting › Software & Firmware › serial1 is not available. & Softserial Question
-
serial1 is not available. & Softserial Question
-
[Controllino MAXI] hello.
The serial2, serial3 (rs485) operates normally.
Serial1 is not communicating. (PIN 18,19)
The LED in IN0 is always ON when try to use it.
Do you know how to use Serial 2?
“Connect it on the pinheader”
Softserial also does not work. Is there any way?
Thanks
-
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.
Log in to reply.