Pages: [1]   Go Down
Author Topic: ATtiny and software serial sending garbage  (Read 1094 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 59
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

i have an ATtiny85 and i have put a very basic sketch using software serial on it.

the sketch simply takes any serial data coming in and sends it straight back out.

i am using an external 16Mhz resonator on the chip, and the FTDI chip on my arduino Uno as the interface with the computer.

if i type one character it works, so for example if i type "a" it returns "a"

but if i type multiple characters, it fails, so i type "abcdefg" it returns "aƑ•™"

the baud rate in the sketch and monitor is set at 2400

any help would be great thanks
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 59
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just to update this, it seems to work now. the higher i put the baud rate the better it worked until 19200 when it seems to work 100%

so i consider this fixed, i am just curious as to why it didn't work before? hardware serial works fine at 9600 so what is it about software serial that means it doesn't work at lower speeds?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you post your code please?
Logged

Pages: [1]   Go Up
Jump to: