Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: Can not upload sketch with Arduino uno to attiny84 on: May 26, 2013, 04:20:12 pm
Using the Arduino Uno to program ATTINY84-20PU (Newark item # 68T3783)

1) Ensure the Arduino IDE is NOT running.
2) Create new folder named "tiny" in your Arduino "hardware" folder
    C:\Projects\Arduino\hardware\tiny
3) Download the Arduino-Tiny archive (ZIP-file)
http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0016.zip
3) Copy and paste the contents of the ZIP-file into the "tiny" folder:
    C:\Projects\Arduino\hardware\tiny
The contents should look like this:
      C:\Projects\Arduino\hardware\tiny\bootloaders
      C:\Projects\Arduino\hardware\tiny\cores
      C:\Projects\Arduino\hardware\tiny\license.txt
      C:\Projects\Arduino\hardware\tiny\Prospective Boards.txt
      C:\Projects\Arduino\hardware\tiny\readme.txt
4) Create a new file named "boards.txt" in the tiny directory.
       C:\Projects\Arduino\hardware\tiny\boards.txt
5) Open the "boards.txt" file and the "Prospective Boards.txt" file using a text editor.
6) Copy board entries of interest from "Prospective Boards.txt" to "boards.txt"
  (or copy the entire contents of "Prospective Boards.txt" to "boards.txt").
  Board entries are delineated by a long line of pound-signs.
7) Save and close "boards.txt".  Close "Prospective Boards.txt". The contents of the "tiny" directory should now look like this:
      C:\Projects\Arduino\hardware\tiny\bootloaders
      C:\Projects\Arduino\hardware\tiny\cores
      C:\Projects\Arduino\hardware\tiny\license.txt
      C:\Projects\Arduino\hardware\tiny\Prospective Boards.txt
      C:\Projects\Arduino\hardware\tiny\readme.txt
      C:\Projects\Arduino\hardware\tiny\boards.txt
8 ) Start the Arduino IDE and ensure the new boards of interest are listed under
  the [Tools] [Board] menu. If you copied all available boards from "Prospective Boards.txt" to "Boards.txt" you see boards such as ATtiny84, ATtiny44, ATtiny24,  ATtiny85, ATtiny45, ATtiny25, ATtiny4313, and ATtiny2313.
9) Before connecting any ATtiny to the Arduino, upload the ARduinoISP sketch to your Uno by selecting [File] [Examples] ArduinoISP. Make sure your Arduino board is selected ([Tools][Boards](yourboard) and the AVR ISP programmer is selected ([Tools] [Programmer] AVR ISP.
10) Now your Uno is ready to be used as an ISP.
11) Select board to be programmed [Tools][Boards] Attiny84 @ 1MHz (internal oscillator; BOD disabled)
12) Select use Arduino as ISP [Tools]Programmer]Arduino as ISP
13) Connect the ISP pins of Arduino Uno to the Target AVR as indicated, in this case the ATtiny84.
     Arduino 5V      to ATtiny84 Pin 1
     Arduino Pin 10 to ATtiny84 Pin 4
     Arduino Pin 11 to ATTiny84 Pin 7  
     Arduino Pin 12 to ATtiny84 Pin 8
     Arduino Pin 13 to ATtiny84 Pin 9
     Arduino GND   to ATtiny84 Pin 14
     Arduino RESET to 10uF cap
     10uF cap to GND
14) Create sketch for ATtiny. I tried the blink sketch: [File] [Example][Basics]Blink and modified the LED pin to match a pin on the ATtiny. That is, I change "int led = 13;" to read "int led = 0;"
15) Upload modified blink sketch to ATtiny84.
15) Remove ATtiny84 from Arduino Uno.
16) Connect ATtiny for Blink Program
ATtiny Pin 1 to 5V (I used Arduino as a pwr supply)
ATtiny Pin 2 to LED (apparently this is Pin 0 when programming the blink sketch)
LED to Resistor
Resistor to GND
ATtiny Pin 14 to GND (I used Arduino as a pwr supply)
17) Apply power and LED should blink.
2  Using Arduino / Installation & Troubleshooting / Re: Arduino uno v3 avrdude: stk500_getsync(): not in sync: resp=0x00 on: May 20, 2013, 09:57:14 pm
I'm pretty sure I blew my ATmega328 on the Arduino Uno R3.

I bought pre-programmed chip from Adafruit and got the same error...until I read the website:

Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE

Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE

Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE

Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE

Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE


yes even with the UNO. Be sure to select "DUEMILANOVE with ATMEGA328" in the Arduino IDE

hope this help. I know I didn't find a solution very easily, well at least not very quickly!!!!
3  Development / Other Software Development / Documentation Correction on: January 03, 2013, 09:02:12 pm
A minor typo on the Foundations-Variables page (http://arduino.cc/en/Tutorial/Variables)

"one" should be "once"

Please see the text copied below:

"As you can see, pin is used in both the setup() and loop() functions. Both functions are referring to the same variable, so that changing it one will affect the value it has in the other, as in:..."


thanks, {CONTINUOUS IMPROVEMENT}
Pages: [1]