Pages: [1]   Go Down
Author Topic: Creating a form of communication with analog i/o?  (Read 256 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 60
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to use a attiny85 as a controller for a 7 segment display, along with a shift register. Can I use an analog pin on an arduino to send a value to the attiny85, and depending on the value it lights up a certain display?
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 66
Posts: 2461
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How many 7 segment displays are you talking about?
I assume the shift register is to drive the displays?
How will the arduino be talking to the tiny85?
Logged

There is no such thing as a stupid question but there are a lot of inquisitive idiots.

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you could also use a bcd decoder from the attiny85 and simplify the programming, just write the binary to the port
and you would need timers to decode the pwm signal into an actual value, aalso there would be a limit of 255 possible values, not including errors in timing
you may be better off with a one way serial comm, pick a baud rate for your application and use software serial on the attiny
Logged

Pages: [1]   Go Up
Jump to: