This commit is contained in:
Raoul Branten 2025-07-08 12:19:15 +02:00
parent 008f12d166
commit 8685fb930a
3 changed files with 11 additions and 5 deletions

View File

@ -3,13 +3,13 @@
Hand held device with display to count button presses. It uses buttons to detect user input one +1 and one for -1.
Made with of the shelf components.
For me this is a exploration in programming ASM assembly as I had never done this before.
Also the designing was interesting.
For me this is an exploration in programming ASM assembly as I had never done this before.
Also, the designing was interesting.
## Components
### The ATTiny microcontroller
As I had a `ATTiny26L` 8-bit microcontroller laying around I decided to use that. As it already has an onboard clock which is plenty
As I had a `ATTiny26L` 8-bit microcontroller lying around I decided to use that. As it already has an onboard clock which is plenty
fast enough for this simple project it saved me from connection a XTAL.
```
@ -64,7 +64,7 @@ o--|GND Q7S|--o
```
### Something to read the number
A 7-segment display sporting 4 digits is used for outputting the number to the user. I used a `CL5642BH-30` as you guessed it already, was the one I had laying around.
A 7-segment display sporting 4 digits is used for outputting the number to the user. I used a `CL5642BH-30` as you guessed it already, was the one I had lying around.
```
CL5642BH-30
@ -111,4 +111,10 @@ Something to mount it all on, for this perfboard was used.
As I use a 9v battery a 5 volt regulator was used.
2 buttons to read the user input.
A 3d printed case.
Supporting electronics like condensators and current resisters as pull-up/down and current limiting.
Supporting electronics like capacitors and current resisters as pull-up/down and current limiting.
### Create hex file
`avra counter.asm`
### Write to chip using UsbAsp
`sudo avrdude -c usbasp -F -p t26 -U flash:w:counter.hex:i`