Electronics > Beginners
Attiny85: no serial output?
phennessey:
I’m seriously confused.
I have the Sparkfun Tiny AVR usb programmer for my attiny85. I’m testing a rotary encoder, and I want to see its output on my computer. No serial output method I could find would work, despite these sources saying they would.
But then, the Sparkfun AVR information page says the attiny85 doesn’t support serial output. Wait, what?
Who’s got it wrong? Anyone have experience with this? I have the chip in my breadboard, with all 8 lines connected to the programmer, and i can reprogram the chip while it’s on the breadboard. I set pins 3 and 4 to RX/TX. I even switch the chip to 8mhz mode (as some have suggested).
Still nothing. I’m at my wits end. All I want to do is test a rotary encoder so I can troubleshoot it (I’ll need an RC filter to help with debouncing, I just want to be sure that’s the problem and not my code.)
So. If you’ve successfully gotten serial output from this chip and this programmer, please let me know!
I’ll post more info and images soon.
ataradov:
ATtiny85 does not have a dedicated UART peripheral. It has something called USI (Universal Serial Interface), which can be used to accelerate multiple serial protocols.
Or alternatively you could just bit-bang the UART.
I don't know about support for any of this in Arduino-like software though.
phennessey:
No idea how to “bit bang” or how to even interface with this. I need very specific step-by-step instructions. I am, after all, a beginner.
james_s:
Start with a simpler project, or use a mega328 based arduino. You'll learn more by going through a series of tutorials from start to finish than you will asking for someone to do all the work for you and lay it out in neat tidy steps. Bit banging is a very basic concept that you will encounter often. Search engines are your friend.
ataradov:
Well, you perhaps picked the wrong device for a beginner. ATtiny85 is very cramped and hard to debug. But the limited memory size pretty much lets you just write the program and reasonably expect it to work right away if you know what you are doing.
I'm sure there are tutorials on this somewhere on the internet.
Navigation
[0] Message Index
[#] Next page
Go to full version