Maker and IoT Ideas
Published © CC BY

All-new ATTiny1616 development bord

Develop using the ATTiny1616 with the same ease as a standard Arduino (with a few catches of course)

IntermediateShowcase (no instructions)2 hours1,513
All-new ATTiny1616 development bord

Things used in this project

Hardware components

PCBWay Custom PCB
PCBWay Custom PCB
×1

Software apps and online services

Arduino IDE
Arduino IDE
Coding
LibreCad
CAD Drawings for Enclosure
Openbuilds CAM
Create CNC toolpaths for the Arcylic Enclosure
Openbuilds Control
Control the Desktop CNC machine to cut the Arcylic Enclosure

Hand tools and fabrication machines

Soldering Station, Temperature Controlled
Soldering Station, Temperature Controlled
Hot Air Station, Industrial
Hot Air Station, Industrial
Hot Plate, 800 W
Hot Plate, 800 W
3018 CNC
Optional, Similar will do, NOT required at all

Story

Read more

Custom parts and enclosures

CAD_GCODE

`This contains the CAD drawing for the Acrylic Shell, as well as the workspace file for Openbuilds CAM and Also the GCODE for Openbuilds Control.

Note: GCODE assumes a 3mm 2 fluted ENDMILL. Acrylic Sheet of 3mm thick is assumed. DO modify the gcode if using thinner of thicker stock. Thank you

Schematics

Schematic

Code

Modified Blink sketch to test PCB

Arduino
/*
  MODIFIED BLINK SKETCH FOR USE WITH ATTINY1616-SF DEV BOARD


  Required Core: megaTinyCore https://github.com/SpenceKonde/megaTinyCore

  Settings
  ATTiny 1616 WITHOUT OPTIBOOT
  16Mhz internal Osccilator
  SerialUPDI 230400 Baud or similar

  Remember to "UPLOAD USING Programmmer" ( Ctrl+Shift+U
  
*/
int LED = 16;

// the setup function runs once when you press reset or power the board
void setup() {
  
  pinMode(LED, OUTPUT);
  // Flash LED at startup

  for ( int k = 0; k < 2; k++)
  {
    digitalWrite(LED,!digitalRead(LED));
    delay(100);
  }
}

// the loop function runs over and over again forever
void loop() {
  // PWM test - breathing light
  for (int j=0; j < 2; j++ )
  {  
    for (int k=0; k < 256; k++ )
    {
      analogWrite(LED,k);
      delay(10);
    }
    delay(400);
    for (int k=255; k> 0; k--)
    {
      analogWrite(LED,k);
      delay(10);
    }
  }
  delay(400);
  // now flash normally
  for ( int k = 0; k < 10; k++)
  {
    digitalWrite(LED,!digitalRead(LED));
    delay(500);
  }
  digitalWrite(LED,LOW);
  
}

megaTinyCore

Credits

Maker and IoT Ideas

Maker and IoT Ideas

96 projects • 24 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.

Comments