HarveyH43
Newbie level 3
attiny13 projects
I'm working in Assembler, and just started with microcontrollers (about a week), so still getting familiar with it all. My previous assembly experience was with th 6502 in a Commodore 64 (yeah, been a few years...)
Anyway, the first thing I did, was flash some LEDs, of course... And thought to expand on that with a project using a few Tiny13 features. Something useful, and learn at the same time.
The project: IR proximity detector, flashing red/blue LEDs (police style strobe), and a siren.
Flashing the LEDS was simple.
Setting up Timer0 to drive the IR emitter took a couple days, but got it going. The reciever module detects at about 5-6 inches, good enough, but was hoping for a foot or so.
Setting up a pin-change-interupt to handle the reciever module has been a royal pain. Does some weird stuff. Trying to use PCINT3 (pin 2). If anybody has an example, willing to throw something together, it would really help.
The siren: Figure I could use Timer1, and just change the frequency, when change colors when flashing the LEDs. If somebody has more of a police sounding siren code, would appreciate a look, but this should be good enough, and pretty sure Timer1 will work same as Timer0.
Think this is pretty good for a beginner, got the hardware features doing most of the work once configured.
Thanks for reading through this, and appreciate an help or pointers. I still have a lot of stuff to learn, but it's going pretty well. Haven't started putting it all together yet, just seperate test programs. Figure best to wait, then figure out my pin options. Don't think I can move the Timer outputs, and using 5 out of 6 I/O pins.
I'm working in Assembler, and just started with microcontrollers (about a week), so still getting familiar with it all. My previous assembly experience was with th 6502 in a Commodore 64 (yeah, been a few years...)
Anyway, the first thing I did, was flash some LEDs, of course... And thought to expand on that with a project using a few Tiny13 features. Something useful, and learn at the same time.
The project: IR proximity detector, flashing red/blue LEDs (police style strobe), and a siren.
Flashing the LEDS was simple.
Setting up Timer0 to drive the IR emitter took a couple days, but got it going. The reciever module detects at about 5-6 inches, good enough, but was hoping for a foot or so.
Setting up a pin-change-interupt to handle the reciever module has been a royal pain. Does some weird stuff. Trying to use PCINT3 (pin 2). If anybody has an example, willing to throw something together, it would really help.
The siren: Figure I could use Timer1, and just change the frequency, when change colors when flashing the LEDs. If somebody has more of a police sounding siren code, would appreciate a look, but this should be good enough, and pretty sure Timer1 will work same as Timer0.
Think this is pretty good for a beginner, got the hardware features doing most of the work once configured.
Thanks for reading through this, and appreciate an help or pointers. I still have a lot of stuff to learn, but it's going pretty well. Haven't started putting it all together yet, just seperate test programs. Figure best to wait, then figure out my pin options. Don't think I can move the Timer outputs, and using 5 out of 6 I/O pins.