Attiny13A sleep mode


Attiny : arduino's little brother

Arduino is a very good card but if you need a very smaller card size or if you don't need alls pins and less memory, Attiny is a good alternative
VCC =Voltage is 2.7-5.5 v

Notice :
Pins output high voltage is 4.3 volts with a Vcc of 5 volts. For 3.3 Vcc, pins output voltage is 2.5 V 
So be carefull, this is not 3.3 volts like Arduino

How to program Attiny 

To program attiny, just use Arduino IDE. 
To do this, you will have to connevt Attiny to arduino. 

Arduino will now be used as bridge

Initial step


Upload ArduinoISP sketch on your arduino :
  • Select card Arduino Uno
  • Load sketch Samples > 11.ArduinoISP 
Tips : be sure to unplug all wires before to upload the sketch


First step

First time and only once, you have to write bootloader on Attiny :
  • Choose 'Arduino as ISP' as the programmer prior to burning the Arduino bootloader onto the ATtiny
  • Select card ATtinyXX
  • Verify Board Properties :
    • Clock: 'Internal 8 MHz', 
    • Processor: 'ATtiny85', 
    • Programmer: 'Arduino as ISP'
  • Burn Bootloader (In french : Graver la séquence d'initialisation)

Upload your sketch on Attiny

To upload a sketch on Attiny :
  • Choose 'Arduino as ISP' as the programmer prior to burning the Arduino bootloader onto the ATtiny
  • Select card ATtinyXX
  • Select Sketch > Upload sktech using programmer
Tips : Do not use "Upload" button to upload your sketch on Attiny but the menu "Upload sktech using programmer"

     Attiny limitations


    Functions supported by Attiny are :
    • pinMode()
    • digitalWrite()
    • digitalRead()
    • analogRead()
    • analogWrite()
    • shiftOut()
    • pulseIn()
    • millis()
    • micros()
    • delay()
    • delayMicroseconds()
    • SoftwareSerial

    Commentaires

    Posts les plus consultés de ce blog

    Esp-01 deep sleep mode

    Install and configure OpenVPN on OSMC