Instructables

Simplest and Cheapest Arduino

Picture of Simplest and Cheapest Arduino
ATtiny85-20PU.jpg
Use a ATTiny85 (can be ATTiny45, ATTiny44) to make an Arduino just for US3.00 and name it as Tiny Arduino.

Tiny Arduino have only eight pins as shown in figure above, Pin4 is ground (Gnd), Pin8 is 5V (Vcc), Pin1 is Reset, Pin2 and Pin3 originally used to connecting the Crystal. In order to utilize all the IO, the internal oscillator (RC Oscillator) is used to replace the external clock which require a crystal. Therefore the Tiny Arduino is now come with five IO. Below shows the Arduino IO functions.

1. There are five IO, each IO can be Input or Output
2. Among the five IO, two of the IO can perform as PWM
3. Among the five IO, three of the IO can perform as Analog Input

I2C may require to extend the features of Tiny Arduino.
 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
1 x 5V power supply power supply
1 x Breadboard (Project board)
1 x ATtiny85 (This is our Tiny Arduino)
1 x Arduino Duemilanove (use to upload Sketch to ATTiny85)
1 x 10 uF capacitor  (prevent Arduino duemilanove from automatically reset)
5 x LED
5 x Resistors
and some Wires

Step 2: Using an Arduino Duemilanove as an ISP

Picture of Using an Arduino Duemilanove as an ISP
Arduino_Board.jpg
An ISP (in-system programmer) is required to upload sketch to the ATtiny85 since ATtiny85 does not come with serial interface. Here we use an Arduino Duemilanove as an ISP to upload sketch to the ATtiny85.
1. Connect the Arduino Duemilanove to the computer
2. Open the Arduino software , I'm using arduino-0023
3. Select File> Examples> ArduinoISP from menu as shown in figure
4. Select Tools> Board> Arduino Duemilanove or Nano w/ATmega328 or Arduino UNO from menu
5. Click on the Upload icon to begin upload Sketch to Arduino Duemilanove

Now the Arduino Duemilanove is becoming an ISP
racataca3 months ago

that I can do to convert 2 PWM inputs (rc servo) to 5Vdc analog?

gran_kabuto11 months ago
The photo in Step 9 gave me an idea to create a standalone Arduino ISP in a prototype shield to mount over this one another shield, with the socket and the components to flash the Bootloader and also flash a sketch in a ATMEGA328.
I have been busy a couple of weeks!
Thank you!
13 20:37.jpg13 20:37.jpg13 20:37.jpg
Could you also control a servo/lcd with the attiny?
smching (author)  derkeksfresser1 year ago
Servo Tester based on ATTiny85
https://trandi.wordpress.com/2013/06/18/servotester/
smching (author)  derkeksfresser1 year ago
This may help you for servo.

http://www.cunningturtle.com/attiny4585-servo-library/
I am looking to do something like this for my servo need smching if I were to follow the link on cunningturtle.com would I just add that code instead of the code that was listed in this instructable onto sketch? Thanks for you help.
smching (author)  DayBowBow1 year ago
You have to follow my procedures to burn the code (servo sketch provided by cunningturtle.com) to the ATTiny45/85
I am looking to do something like this for my servo need smching if I were to follow the link on cunningturtle.com would I just add that code instead of the code that was listed in this instructable onto sketch? Thanks for you help.
I am looking to do something like this for my servo need smching if I were to follow the link on cunningturtle.com would I just add that code instead of the code that was listed in this instructable onto sketch? Thanks for you help.
smching (author)  derkeksfresser1 year ago
I didn't test with servo, anyway it support LCD. See the instructable by baharini.

http://www.instructables.com/id/ATTiny4585-LCD-display-control-with-a-shift-regis/?ALLSTEPS
Nice post. Thanks.
On your "5 channel running light circuit", it's a good idea to tie the reset (pin 1) to 5V. If you leave it floating, you may find the AtTtiny resets itself randomly. If you use a resistor with a high enough value (10k) for this "pull-up", you can still program it with your ISP.
smching (author)  MildLeeInterested1 year ago
Yes, you are correct.
leeseibert1 year ago
Here is some extra help for those using the Mega ADk or Mega 2560 instead of the Uno or Due.

Check it out:
https://www.youtube.com/watch?v=DebJ1s5I3QM
Kitsch!1 year ago
You can actually get the chip on the uno, the atmega 328, for cheaper then you can get the ATtiny. Amazon currently sells the atmega 328 for 1$ a piece.
smching (author)  Kitsch!1 year ago
Are you sure?
The cheapest ATMega328 that I can get from Element14 (Farnell Malaysia) is RM12.99 (about US 4.16)
Mudbud1 year ago
You can make the code smaller with a for loop.
Tried this one today. But i get an error: "avrdude: usbdev_open(): did not find any USB device "usb"". What does that mean?
smching (author)  derkeksfresser1 year ago
Are you using Arduino duemilanove as your AVRISP? Make sure you can upload AVRISP sketch (from Arduino software example) to your Arduino duemilanove first.
thanks for the info, I keep meaning to starting messing around with the ATtiny, maybe this will motivate me to really do it!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!