Arduino beetle - softwareserial not working as expected

I'm using an arduino beetle board (based upon an arduino Leonardo) where I require 2x serial communication. One serial communication going to a KNX interface and one going to an Ikea's Fyrtur shade.

I did my tests with just one serial communication before, both the integration with knx and Fyrtur shade where ok. However, when i try to move one of the serials to software serial (using D9 and D10), this does not work anymore. Also, I don't get any 3.3V output on the D9 and D10 pins, they don't output anything.

What could i be doing wrong here:

#include <SoftwareSerial.h>
#include <KnxTpUart.h>

KnxTpUart knx(&Serial1, "15.15.30");
SoftwareSerial fyrturSerial(9, 10);

void setup()
{
  Serial1.begin(19200, SERIAL_8E1);
  while(!Serial1);

  fyrturSerial.begin(2400);
  while(!fyrturSerial);
}

Documentation: Beetle_SKU_DFR0282-DFRobot

have you tested Software Serial with a simple test program?
maybe worth trying AltSoftSerial

1 Like

Software serial has problems above 9600 and it is simplex communication. It cannot receive while transmitting or transmit while receiving.

strangely enough, i fixed this by introducing a delay in the startup procedure. maybe this has something to do with the arduino beetle running in 3.3V (to have the uarts in 3.3V too)?


  while(!Serial && millis()<5000) {
    //wait for serial monitor to connect
  }

  // KNX
  Serial1.begin(19200, SERIAL_8E1);
  while(!Serial1);

  // Fyrtur shades
  fyrturSerial.begin(2400); //This is the UART, pipes to sensors attached to board
  while(!fyrturSerial);

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.