Maker and IoT Ideas
Published © CC BY-NC

Breaking out of the Chip Shortage - Attempt 2

Part two of the series, this time we focus on the Attiny1616

IntermediateProtip2 hours54
Breaking out of the Chip Shortage - Attempt 2

Things used in this project

Hardware components

PCBWay Custom PCB
PCBWay Custom PCB
×1
MakerIoT2020 Multipurpose UPDI programmer
Or a similar UPDI programmer, the choice is yours :)
×1
PCBWay Stencil
PCBWay Stencil
it is HIGHLY recommended that you buy a stencil for this project...
×1

Software apps and online services

Arduino IDE
Arduino IDE
megaTinyCore

Hand tools and fabrication machines

Hot Air Station, Industrial
Hot Air Station, Industrial
or similar
Hot Plate, 800 W
Hot Plate, 800 W
or similar

Story

Read more

Schematics

Schematic

Code

Example Code (Minimal)

Arduino
Example sketch. Please see megaTinyCore documentation as well, for many very important notes, and tips, that will make your experience with the ATTiny1616 more pleasant and productive.
/*
This is the standard Arduino Blink Sketch.
It has been modified to toggle the correct pin,
in this case PIN_PA3, or Arduino Pin 16
Note that you HAVE TO install the megaTinyCore Arduino core
from here:
https://github.com/SpenceKonde/megaTinyCore/blob/master/megaavr/extras/ATtiny_x16.md
BEFORE trying to flash code to the ATTiny1616 using the Arduino IDE.
See installation instructions for the core at the GitHub page.
You will also need a UPDI programmer. A Serial USB-to-UART WILL NOT WORK
*/
void setup()
{
pinMode(16, OUTPUT);
}
void loop()
{
digitalWrite(16, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(16, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

megaTinyCore

megaTinyCore documentation, as well as download, installation and use instructions

Credits

Maker and IoT Ideas
97 projects • 26 followers
I design custom PCB solutions, usually with an IoT or Automation twist, to solve problems in my daily life. Sometimes also for other people.
Thanks to SpenceKonde.

Comments