How to use Serial Monitor with Attiny84 and Arduino uno?

Hi guys,
I use Arduino Uno to program my Attiny84A at 8Mhz by following this tuto:

image

All works well, now i need to display messages on the serial monitor, tested with band 1200 and 9600 got only '?'.
some code:

#include <SoftwareSerial.h>

#define RX    3   // *** D3, Pin 2
#define TX    4   // *** D4, Pin 3
SoftwareSerial Serial(RX, TX);

void setup()
{
  Serial.begin(9600);
  Serial.println("Initializing...");  
}

void loop()
{
  Serial.println("test");
  delay(500);
}

Do i need to use any of TX or RX pins of Arduino? When i try the code do not upload anymore.

I would not name a software serial port to Serial. Give the port a different name like softSerial.

yeah you are right, i change that but still no output text.

If you keep your Uno's 328P in reset, you can connect the TX pin of the ATtiny to the TX pin of the Uno and the RX pin of the ATtiny to the RX pin of the Uno; that way the Uno's TTL-to-USB converter can be used for communication between ATtiny and PC.

do you mean use an extra TTL-to-USB converter?

No

Use the Uno as the TTL-to-USB converter.

hmm, is already tried to connect TX and RX as suggested without success.

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