Close

Posted files

A project log for Vlad's Round Watch

ATTiny841 based wrist watch for 9 year old

chris-orileyChris O'Riley 03/31/2019 at 02:190 Comments

Hi Everyone, 

Just a little update. 

I posted the KiCad project files with footprints and a set of exported gerbers.  The PCB has a few minor changes to resolve the issue of the LED driver getting disabled after the battery died.  I had left the enable pin floating, which worked fine in all my testing, but seemed to get latched low after the battery died once everything was on the real PCB.  It's now tied high and has been verified to work on Vlad's watch by bodging a single strand of wire between the enable pin on the LED driver and a nearby v+ source.  That was some fine soldering! ;)  I also moved the test point for the Tiny 841's reset pin out from under the piezo buzzer so it's still accessible after soldering the buzzer should the bootloader need to be re-flashed or fuses changed.  I had the PCB made in a .8mm thickness.  If you make one thicker, the housing will need to be modified to accommodate the extra thickness.

There's also an Excel spreadsheet with all the components.  I didn't list prices and only included links to the parts on DigiKey for simplicity since they have everything.  On the LEDs, resistors and capacitors, I didn't list specific part numbers or links, since I assume people will have these on hand in a sample book or something, or will want to choose their own color LEDs.  These parts aren't too critical, as long as they're the specified values and 0603 packages.  The two zener diodes on the USB + and - lines are somewhat critical, so I listed the specific ones I used.  

Lastly, I included the bootloader for the Tiny841, the hex and the config file should anyone want to make changes.  This sets the correct pins for the USB lines and configures it to enter programming on a watchdog reset, which I'm using so it can be reset from within the sketch.  This was important to be able to keep to the single button for input.  A triple press of the button after the time is displayed sets a watchdog reset, which will then accept programming.  Use the following command to flash the bootloader and set the fuses:

avrdude -c stk500v1 -B 10 -P COM12 -b 19200 -p attiny841 -e -U flash:w:t841.hex:i -U lfuse:w:0xE2:m -U hfuse:w:0xDD:m -U efuse:w:0xF4:m

Obviously replace the com port and the location of the .hex file with your specifics. 

I'm changing the programming and time/alarm setting around a bit, so I won't post the sketch for now, but if anyone really wants it, let me know and I'll send it.

Need to finalize the housing files before I can post anything remotely useful... will do so ASAP.

-Chris

Discussions