Hi, in here!!!
Today my question is about communication with the attiny 85.
I dont know how far or close I am, but I am playing the tx, rx communication from the attiny85. But all it return are "?" marks.
- Running Arduino IDE 1.8.11, with an arduino uno with capisistor on reset
- I can burn the bootloader @8mhz, is say's done. So I suppose
- I can opload skethes to the attiny85 through SPI setup (mosi,miso).
- it runs but nothing readable output, it blink on every 0.5 sec, as coded
Some output:
avrdude -P com10 -p t85 -b 9600 -c arduino -v
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"
Using Port : com10
Using Programmer : arduino
Overriding Baud Rate : 9600
avrdude: stk500_getsync(): not in sync: resp=0xff
avrdude done. Thank you.
The sketch:
#include <SoftwareSerial.h>
SoftwareSerial Monitor(3, 4);
void setup() {
Monitor.begin(9600);
pinMode(1, OUTPUT);
pinMode(3, INPUT);
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(1, HIGH);
Monitor.println("LED on");
delay(1000);
digitalWrite(1, LOW);
Monitor.println("LED off");
delay(1000);
if (Monitor.available()>0){
String s1 = Monitor.readString();
Monitor.println(s1);
}
}
But some people talk about, the cpu clock settings:
attiny.menu.clock.internal8.build.f_cpu=8000000L
Is it here, it needs to be changed or needed missing resistors on rx,tx pins or what could it be?
btw. I can either get it to work correct on the SPI pins 5 and 7, it also grap I am getting...So it must be a setting somewhere I think.
I made a little screenshot, please take a look.