kamoba
March 15, 2023, 2:03am
1
Hi guys,
I use Arduino Uno to program my Attiny84A at 8Mhz by following this tuto:
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.
kamoba
March 15, 2023, 2:19am
3
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.
kamoba
March 15, 2023, 6:32pm
5
do you mean use an extra TTL-to-USB converter?
No
Use the Uno as the TTL-to-USB converter.
kamoba
March 15, 2023, 6:40pm
7
hmm, is already tried to connect TX and RX as suggested without success.
system
Closed
September 11, 2023, 6:41pm
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.