-
1Assembly
ATtiny85 attiny85 version Attiny85-20SU AVR ISP AVR ISP 6 Pin package 1x6; pins 6; variant pth C1 Ceramic Capacitor voltage 6.3V; capacitance 0.1µF; package 0805 [SMD, multilayer] R1 68Ω Resistor resistance 68Ω; tolerance ±5%; package 0805 [SMD] R2 68Ω Resistor resistance 68Ω; tolerance ±5%; package 0805 [SMD] R3 1.5kΩ Resistor resistance 1.5kΩ; tolerance ±5%; package 0805 [SMD] R4 10kΩ Resistor resistance 10kΩ; tolerance ±5%; package 0805 [SMD] R5 10kΩ Resistor resistance 10kΩ; tolerance ±5%; package 0805 [SMD] Z1 DIODE-ZENER package sod-323; variant -bzt52; part # 3V6 Zener Z2 DIODE-ZENER package sod-323; variant -bzt52; part # 3V6 Zener All of the required components are surface mount to easily fit into a wallet for use as a business card.
This sounds terribly difficult if you have never tried soldering surface mount components before but it is incredibly simple, no need to use your iron. Get some low temp solder paste and any cheap hot air gun will work(preferably temp controlled hot air rework station), but even a frying pan or hot plate will work. Just dab, place, and heat, then clean it up a bit when it cools. Done...
-
2Initial programming instructions if building the board from scratch
(Any of my assembled boards already have the bootloader burned in)
Fuse: avrdude -c buspirate -P /dev/ttyUSB1 -p attiny85 -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m -B 20
Burn Bootloader: avrdude -c buspirate -P /dev/ttyUSB1 -p attiny85 -U flash:w:bootloader.hex:i -B 20
The Micronucleus build included has a custom 1 second programming delay before running the application. The default 6 second delay was too long to wait to run the application for my specific use case.
-
3Programming the application portion via the Arduino IDE
File - Preferences - Additional Board Manager URLs
http://digistump.com/package_digistump_index.json
OK
Tools - Board - Boards Manager... - Digistump AVR Boards - Install
Select - Board: Digispark (Default - 16.5mhz) Programmer: Micronucleus
Upload
-
4Additional Info
Jumpers
-----
Cut J1 to disable the capacitive touch sensor.
Cut J2 to disable R5 resistor from RST to VCC.
Bridge J3 to enter programming mode when flashed with a different Micronucleus build.
Optional Features
-----
Reset Switch
Power LED - Requires 1K Resistor
Utilizing the Prototyping Area
Flashing a new application via USB
Flashing via the AVR ISP header(Do not connect a programmer while connected to a USB port)
Notes
-----
The board thickness is 1.6mm and requires a shim to fit snugly into the USB port. Currently a blank PVC ID card is cut to size and bonded using Loctite 495 Instant Adhesive. This has proven so far to be a fast, strong, and relatively consistent solution.
Enjoy!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.