This project is an adaptation of the tinycylon project by Dale Wheat. We only swapped 2 data pins and provided easy instructions on how to compile the new version for the toorcon 19 badge below.
On linux simply download and install the latest arduino package:
$ cd ..
$ tar xvf arduino-1.8.4-linux64.tar.xz
$ cd arduino-1.8.4
$ ./install.sh
Then install the MicroCore project to add ATTiny13a support:
$ cd hardware
$ git clone https://github.com/MCUdude/MicroCore
Then try building the tinycylon project:
$ cd ../../tinycylon
$ make
It'll expect the arduino package to be installed in the parent directory ../arduino-1.8.4, if this isn't the case, change the AVRDIR setting in the Makefile:
AVRDIR = ../arduino-1.8.4/hardware/tools/avr
...
Much of this is borrowed from the numerous tutorials on programming the ATTiny13a with an Arduino as the ISP, but we'll outline the basic idea in this section.
First you'll need to connect your Arduino to the ATTiny13a:
Arduino | ATTiny13A |
---|---|
5V |
VCC |
GND |
GND |
13 |
PB2 |
12 |
PB1 |
11 |
PB0 |
10 |
PB5 |
Then program your Arduino to act as an ISP by running the arduino
gui and selecting File
-> Examples
-> 11.ArduinoISP
-> ArduinoISP
. Then double check Board
, Port
, and Programmer
settings and then Upload
to the Arduino.
Once that's completed, you can use your Arduino to program the ATTiny13a by simply running:
$ make prog
Have a bug? Please create an issue here on GitHub!
https://github.com/toorcon/tinycylon/issues
Original project copyright Dale Wheat. Modifications copyright 2017 ToorCon.
Licensed under the BSD 3-Clause License: https://opensource.org/licenses/BSD-3-Clause