Go Down

Topic: World smallest AVR board? + free eagle files (Read 648 times) previous topic - next topic

arduinomagbit



Here is a little board that I have made. Included the eagle files, so you can do whatever you want with it. It's copyright free.






here is a code to flash a led for 3 second and power the mcu down, and with a push of a button, it powers on again, and flashes a led for 3 second again.
Code: [Select]
/*
D0-d4
D2 mosfet output and LED
D0-D1, button input; D1-external interrupt

74-595 shifter
D2-LCK
D3-SCK
D4-sIn
*/

#include <avr/sleep.h>
#include <avr/interrupt.h>

int toggle=0;
int count=0;

  ISR(INT0_vect) {
  sleep_disable();
  count=0;
  } 
 
void setup() {
  pinMode(2, OUTPUT);
 
  pinMode (1, INPUT); //interrupt
  digitalWrite(1, HIGH);
}

void loop() {

digitalWrite(2, toggle);

delay(100); 
count++;
toggle=!toggle;

 
if(count>=30){
  digitalWrite(2, LOW);
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);
 
  GIMSK = 1<<INT0;  
  sei();
  sleep_mode();     
}


}

gioscarab

#1
Mar 02, 2016, 11:34 pm Last Edit: Mar 02, 2016, 11:39 pm by gbm
Hi there, this is a ATtiny85 board with voltage regulator I developed and sold on my webshop in 2011. 16x18 mm

Pin connections are made in a way you can simply plug it in a duemilanove / uno and code it with Arduino ISP sketch.
http://www.gioblu.com/tutorials/prodotti-gioblu/246-pico85-smd-arduino-compatibile

In 2011 was by far the smallest arduino compatible board ever developed. Was so fantastic I decided to keep 100 of them and safely store in my maker storage :) (they are not for sale I use them for my experimentations with extreme happiness, personal product hehehe)

Here driving a robot kit http://www.gioblu.com/tutorials/robotica/270-robot-kit-pico-11-con-pico85-smd

gioscarab

Thank you so much for sharing your project and files.  :)

Go Up