Nick Gammon's SendOnlySoftwareSerial

In post #3 of this 12 year old thread, "Using only TX of SoftwareSerial, leaving RX pin free", Nick Gammon introduced his library SendOnlySoftwareSerial
https://forum.arduino.cc/t/using-only-tx-of-softwareserial-leaving-rx-pin-free/109623/2

He didn't say which Arduino boards were compatible with it. Or not. Has anyone here successfully used it with Spence Konde's ATTinyCore? On any aTTiny version?

I tried Nick's simple example

#include <SendOnlySoftwareSerial.h>

SendOnlySoftwareSerial mySerial (3);  // Tx pin

void setup ()
  {
  mySerial.begin(115200);
  }

int i;

void loop ()
{
  mySerial.print ("test: ");
  mySerial.println (i++);
  delay (100);
}

with my aTTiny88 board. It compiled and ran, but printed nothing. Tried various changes in the board paarameters but same result. Couldn't find much more here:

his github page

it's meant for ATMEGA 328P or ATMEGA 1280/2560(edited)

The SoftwareSerial library for ATTiny88 is a different library

This is from ATtiny88 data sheets which does not say that the chip contains UART Interface. Does it indeed contain a Serial Port?

peripheralsofattiny88

the ATtiny88 does not have an UART hence the need for SoftwareSerial if that feature is needed

1 Like

Yet his library is being used here for an ATTiny45 as the second of two methods for accessing software serial on a Tiny. Iā€™d hoped I could do the same, albeit on an 88 and - more critically - still using the ATTiny core.
https://www.youtube.com/watch?v=1xwWpz2V__4

Transmitting is easy - easier than Receiving.
If there's no other way Serial TX can be bit-banged (start bit, 8 data bits, stop bit).
The slower the more reliable - unless you're heavy into the Timers and so on.

sorry you are right. I got confused - sending only is bit banging
115200 might be too high?

Unfortunately not.

1 Like

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