高级应用

自制Arduino-Tiny最小系统

字号+ 作者:duino123.com 来源:未知 2016-04-27 15:37 我要评论( )

在很多项目中,我们可能只需要很少的IO,利用普通Arduino体积又大,又浪费资源,这种情况下Arduino-Tiny平台将是个不错的选择。

PLCLIVE.COM注:
在很多项目中,我们可能只需要很少的IO,利用普通Arduino体积又大,又浪费资源,这种情况下Arduino-Tiny平台将是个不错的选择。




Arduino program can be burned into the Avr-tiny Series like Attiny 85/45

Arduino-Tiny is an open source set of ATtiny "cores" for the Arduino platform.

It provides a core that enables Arduino users to work with the ATtiny84 (84/44/24), ATtiny85 (85/45/25), and ATtiny2313 (4313) processors.

=============================================================

Advantages of Attiny series 
Cheap cost
They can be used as stand alone in any circuit
Disadvantages of Attiny

Few I/O pins as compared to megaSeries

Less memory usually Attiny 25/45/85 have 2kb 4kb and 8kb respectively

=============================================================

But if u ask me Attiny are really useful for small projects 
Even i think it is too cheap for a dummy to experiment on it.
So i made this small project that anyone can make their cheapest tiny arduino at home
 

Step 1: Parts





Things that you will need

  1. Veroboard
  2. 8 pin IC Socket 
  3. Wires single core 22 gauge-
  4. Attiny 85
  5. Male header
  6. Female header

Step 2: Circuit Diagram




Almost all chips are programed By Using 6 pins

  • MISO(Master In Slave Out)
  • MOSI(Master OUt Slave In)
  • RESET
  • SCK(Slave Clock)
  • Vcc
  • Gnd

==========================================================

Connecting With Arduino

Pin13 will be connected to SCK

Pin12 will be connected to MISO

Pin11 will be connected to MOSI

Pin10 will be connected to RESET

Next part will Cover how to use the arduino as ISP to Program the attiny85

Step 3: Using Arduino As ISP





Setting Up the Firmware

You need to download this file for programing the attiny

http://code.google.com/p/arduino-tiny/

after you install it

  • Open Arduino.exe
  • File > Examples >ArduinoISP
  • Upload Sketch to your Board
  • On the Arduino Uno, you'll need to connect a 10 uF capacitor between reset and ground (after uploading the ArduinoISP sketch)
  • Connect The Arduino Pins To the Arduino Tiny Board
  • Goto Tools >Boards>Attiny 85 8 MHz
  • Goto Tools>Programmer>Arduino as ISP
  • Burn Bootloader

CONGO attiny is Ready To be Programmed By arduino

Lets Us see a simple Program "Blink " in action

Again going to

File > Examples >Blink

Change The pin no. from 13 to any one of the pin out of Attiny85

0,1,2,3,4

Upload it
 

Step 4: Blinky In action





The Blink Program In action

Enjoy Your Board

It can be Also Run on A external Power source You just need a regulated Power supply of 5

You can also Use a Serial Programmer to Burn the Bootloader and sketch.


如需更详细资料,如有好资源分享,请加入QQ交流群:214461008

欢迎阅读,欢迎转载,不用注明出处!本站只提供入门和进阶资料,做您学习的小伙伴!

老司机也欢迎光临指导!有好内容请加群:214461008 不要看声明了,看内容吧!

相关文章
网友点评
Arduino