SoftwareSerial on Attiny85 with Serial Monitor
hi,
i'm trying check if softwareserial working on attiny85, uploaded sketch (using arduino isp, set attiny 8 mhz, internal oscillator, bod disabled, , did "burn bootloader" before) seemed upload fine:
then on arduino, uploaded blank program (except led flash make sure it's running) , uploaded okay too:
then hooked gnd gnd, 5v 5v, , rx (pin 3, literal pin 2 on attiny) rx on arduino micro, , tx (pin 4, literal pin 3) tx on arduino micro.
then opened serial monitor, there no output. missing step? thank you
i'm trying check if softwareserial working on attiny85, uploaded sketch (using arduino isp, set attiny 8 mhz, internal oscillator, bod disabled, , did "burn bootloader" before) seemed upload fine:
code: [select]
#include <softwareserial.h>
// definitions
#define rxpin 3
#define txpin 4
softwareserial myserial(rxpin, txpin);
// setup routine runs once when press reset:
void setup() {
myserial.begin(9600);
}
// loop routine runs on , on asensorpingain forever:
void loop() {
myserial.print("stuff");
myserial.println();
}
then on arduino, uploaded blank program (except led flash make sure it's running) , uploaded okay too:
code: [select]
int ledpin = 12;
void setup() {
pinmode(ledpin, output);
digitalwrite(ledpin, high);
delay(3000);
digitalwrite(ledpin, low);
}
void loop() {
}
then hooked gnd gnd, 5v 5v, , rx (pin 3, literal pin 2 on attiny) rx on arduino micro, , tx (pin 4, literal pin 3) tx on arduino micro.
then opened serial monitor, there no output. missing step? thank you
i see no serial port setup in arduino code. need 1 software serial port connect micro , hardware serial port talk serial monitor. software port arduinoe rx micro tx , arduino tx micro rx. @ software serial examples come ide.
Arduino Forum > Using Arduino > Microcontrollers > SoftwareSerial on Attiny85 with Serial Monitor
arduino
Comments
Post a Comment