Hello,
I'm attempting to use the Arduino Serial Monitor for debugging an Attiny84. I am receiving ?????????blank spaces and "ÿ" characters. The sketch is set up to turn an LED on/off, and I can see the LED turning on/off, and I see the serial converter LED flash at that time as well. I'm using the following:
- Attiny84
- Tiny AVR programmer (https://www.sparkfun.com/products/11801)
- USB to Serial TTL UART Module (http://www.amazon.com/gp/product/B00FEAMUOK/ref=oh_details_o00_s00_i00?ie=UTF8&psc=1)
- These board definitions (GitHub - damellis/attiny: ATtiny microcontroller support for the Arduino IDE) for attiny84.
I've got the serial debugger set to 9600 baud and "Newline". attiny84 is running at 8mhz.
#include <SoftwareSerial.h>
int blinkPin = 6;
int tx = 9;
int rx = 8;
SoftwareSerial serial(rx, tx);
void setup()
{
pinMode(rx, INPUT);
pinMode(tx, OUTPUT);
serial.begin(9600);
pinMode(blinkPin, OUTPUT);
}
void loop()
{
digitalWrite(blinkPin, HIGH);
serial.print("ON");
serial.println();
delay(500);
digitalWrite(blinkPin, LOW);
serial.print("ON");
serial.println();
delay(500);
}
Wiring:
Attiny PB1 -> usb converter RCV
Attiny PB2 -> usb converter TXD
I have also attempted to use this "core" (Google Code Archive - Long-term storage for Google Code Project Hosting.). SoftwareSerial produced the same result, and TinyDebugSerial produced empty spaces only.
I'm really stuck here, i'd appreciate any advice. Thanks!