Skip to content

Vexilurz/HeadLight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeadLight with ATtiny13 core

Vexilurz (c)

This repository for create flashlight using ATtiny13 (DIY).

How to program ATtiny13 via "Arduino as ISP":

In Russian

  • Install ATtiny13 board support using MicroCore
  • Load "ArduinoISP" example sketch
  • Remove comment in line #define USE_OLD_STYLE_WIRING
  • Swap comments on lines #define SPI_CLOCK
  • Define baudrate 250 instead 19200 #define BAUDRATE 250
  • Program Arduino
  • Connect ATtiny13 to the Arduino like in picture below
  • Choose ATtiny13 in Arduino IDE boards
  • Choose Arduino as ISP (slow) programmer
  • Burn bootloader
  • Return baudrate to the programmer (19200 instead 250)
  • Now you can program ATtiny13 via Arduino as ISP (not slow!) programmer
  • (Don't forget to install PinChangeInterrupt library for this project!)

If it don't work - try to pullup RESET pin to the VDD via 10kOhm resistor. You don't need external pullup to the button - ATtiny have internal pullup.

ATtiny13 pinout

This diagram shows the pinout and the peripherals of ATtiny13. Click to enlarge:

About

This repository for create flashlight using ATtiny13 (DIY)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors