Pages: 1 [2]   Go Down
Author Topic: AtTiny85 SoftwareSerial and TinyDebugSerial Not working properly  (Read 3295 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your reply.  I searched the forum and found this http://arduino.cc/forum/index.php?topic=84551.0 which discusses the crystal you suggest.  any other links you know about are appreciated. 
I'm definitely jumping into the deep end of the electronics pool with this, but how better to learn.
thanks again, Ric
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it's an AVR chip problem.

Not necessarily.

Quote
The internal clock varies with voltage.

Yup.  By a very very tiny amount.

Quote
A different power supply will run the chip at a different clock speed.

Yup.  By a very very very tiny amount.

Quote
To fix it you need an external crystal.

If that's the case, the power supply is irrelevant; the target just needs to be tuned.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Has anyone accomplished powering an attiny85 using softwareSerial with a battery?

I have.

Quote
I don't get output when i use a battery.

Grounds connected?
Logged

Offline Offline
Faraday Member
**
Karma: 30
Posts: 2501
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've had the same issue if the voltage is below 3.8v(ish) you need a regulated 5v supply..... lower voltage less synchronized it becomes
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might be able to use NewSoftSerial...I ran into some flaws while trying to use softserial on my ATTiny 85's but after burning the 8MHz bootloader and using the new library, everything ran pretty well (even off of wall warts and batteries)

Cheers!
Mr_E
Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your code is wrong. Look at this example.

Serial refers to the native Serial. If you want to use a SoftwareSerial, you need to make an instance like this: SoftwareSerial mySerial(4, 3); and then use mySerial instead of Serial. In the example it's a bit confusing because they use a native and a software serial at a time.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13039
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your code is wrong.

Who's code?
Logged

Pages: 1 [2]   Go Up
Jump to: