A weighing scale using a ATmega48, a hx711 ADC and a 1x16 hd44780 display.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
weigh-scale-1k.srec902 bytes firmware for a ATmega48 in Motorola SREC format.srec - 2.49 kB - 12/19/2016 at 12:51 |
|
|
weigh-scale-1k.cThe source code of the firmware.x-csrc - 11.23 kB - 12/19/2016 at 12:51 |
|
|
weigh-scale.sch.svgSchema for the scale.svg+xml - 122.51 kB - 12/19/2016 at 11:40 |
|
|
The current firmware is written in C, compiling it optimized for size leads to a 902 byte binary. It uses 20 different characters from the LCD which adds another 100 byte of data. The total size is thus 1002 bytes.
I could reduce the size of the binary by using a custom startup code, here and there a little optimization. But I don't think I'll get it much smaller that way.
So I started writing a version completely in assembler. It has around 520 bytes now. But it also has a number of bugs and I got distracted a bit too often to finish it on time.
Here is a list of features I want to add but they will probably not fit into 1kB:
I hope I find time to implement a few of these ideas.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
Very nice. Thanks :)