This was an excellent tutorial. After uncommenting the #define it finally worked, thanks for the detailed explanation. You made the world a better place by sharing. Thanks again. I will use my attiny85 to trigger a relay circuit to turn on and off my hydroponics water pump. This will allow me to change the turn on time and off time with another program using millis () commands to reduce energy use in the hydroponics system.
Excellent explanation. Go to sketch --Upload using programmer and it worked right away. The normal upload Arrow continued to produce the Error: Programmer needed. IDE2.2.1
best video on this currently. one thing to note on the Uno and Mega; you will still need to connect a 10uf capacitor from the reset pin to ground (on the Uno or Mega). I tried the bootloader twice without the capacitor and it wouldn't sync.
Wanted to make motor alarm, definitely not gonna use nano or even pro mini.. i knew there is something called ATTINY 85 found this video and it worked. Thanks bro
Superb! Thanks. I did this with an ATTINY45, as I had no 85s. Same pins, just less memory. The only problem I had was hooking up to the 45's physical pin-3, not it's digital/virtual pin-3, which is on physical pin-2. Oops! I'm gonna get some 85s for projects. Thanks.
Excellent tutorial. I'm just getting started with Elegoo and Arduino but looking to get into programming the ATTiny. This video is perfect to get started.
Very clear and useful, thanks. 8:29 Note that the LED is connected to the pin named *PB3* on the ATtiny, not "pin 3"... it's actually physical pin 2 on the chip :-). BTW there's no need to disconnect all the wires from the Arduino to test the blink sketch; just stick the LED in.
Hey, what exactly is the new wiring method? Because all the tutorials I've seen so far show the wiring method you use but without uncommenting the #define use_old_wiring. Sorry if it's a stupid question but any help would be much appreciated.
Thank you sooo much I've been stuck on trying to get PSNEE to work on Attiny, It work on a nanno using an FTDI addapter but for the life of me I couldnt get it to work when flashing a attiny45. you were the first turorial to say burn the boot loader I owe you a drink!
Great video. Question: should a current limiting resistor be used with the LED (most arduino projects seem to require that, to avoid blowing it). Or is the AtTiny85 somehow negating that need ? Many thanks ... 🇬🇧
i had to put 100uF capacitator (had this one avaliable) between nano's gnd and rst pin in order to flash ATtiny 13. My nano is Chinese clone and i have to use old bootloader option while flashin ISP sketch. Got me stuck for few hrs. Mabye helps others...
good day sir levi, i have a ATtiny85 chips already programmed and used in a small board with relay. this board is used in motorcycle with two additional low/high LED lights left and right of the bike. The board has two terminal connection for passing light switch. when the passing switch was press the two led blinks low and high continuously and can adjust the rate with a potentiometer. my query is can i copy the program of attiny85 chip installed on the board and re program to anew IC attny85? or there another way to copy the program using any programmer. thanks
Great question. I suspect both ATTiny and the LED would be stressed without a current limiting resistor. Perhaps the LED survives because of the one second off, following the one second on. I wonder if this could be left running for a long time, anyway. Many ATTinys have limited current current output - of the order of 30 mA. Overdriving a load could perhaps cause heating , or evrn breakdowns
I'm looking at the pinout of the arduino nano and I'm wondering why it is pin 11, 12 ,13. I have like 100 teensy 4.0s in the lab and I'm wondering if I need to order an arduino nano to program my ATTINY861V-10MU. Thanks!
I have a question about the remaining "unused" pins... how come the A3 & A2 pins of the Attiny don't need to be hooked up like all the others to be programmed? I have a project where I need 3 digital outputs for RGB LED and 2 touch buttons - is this possibles with the ATTINY85? What would I have to name the two touch buttons in the ARDUINO sketch to programme them onto the Attiny chip? I haven't found an answer.
Hi!, those "unused" pins are not needed to program the attiny that's why he didn't hook them up. 2.- you can use pins 0, 1, 2 (or PB0, PB1 and PB2 which are the same) to control your led and 3 & 4 (or PB3 and PB4) to read your buttons. 3. you can find the name of each pin googling "attiny85 pinout" there are a bunch of images or 1->RESET 2->3 or A3 (analog input) 3 -> 4 or A2 (another analog input/digital IO) 4->GND 5->0 or MOSI, SDA 6 -> 1 or MISO 7 -> 2 or A1, SCK, SCL 8->VCC. Just to be clear #number from the attiny physcal pin -> number that you should use in your sketch. For example if you want to turn on an led with pin 0, first attacht it to physical pin #5 and in your sketch it should look something like this "digitalWrite(0, HIGH);" that should get the work done
I'm using Arduino Uno R3, Arduino IDE 2.0.3 and attiny 1.0.2. I've uncommented "USE_OLD_STYLE_WIRING" and I'm not using a capacitor. I was able to burn the bootloader on my ATtiny85, but not the Blink sketch: "A programmer is required to upload".
subbedddddddddddddddddddddddddddddddddddddddddddddddd. 7:35 regards. should i press the burn bootloader instead if in case it was not installed? is it the same code for the bootloader?
@@Daniel-hd7gq Hi thank you. I remembered that I did download the board library. There were a couple of them. Just had to get one that worked. I looked at what I had done then and found that I had made a few piggy back boards that plugged into the arduino uno for the different microcontrollers. I never did make one for the 2313 although. Used AVRDUDESS to program hex files. Would a appreciate the link to the library you used.
The reason it fails is most likely because of the Arduino Nano clone you're using. I have the same one. The RX/TX LED:s on the Nano clone board are connected in a way that interferes with serial programming, so just go ahead and desolder those LEDs and the whole thing should be way more stable. :)
ATtiny = $1 // Teensy = 19.95 . Everything has their uses. Unless you need "computing technology" there is no need to use an expensive microcontrollers. An ATtiny85, ATtiny84 or an ATtiny10 in conjunction with other IC's will reduce your crafting costs by 15 bucks a build.
@@TrillShatner I was talking about the start of the vid where he says he uses an arduino nano. they cost around 10$, yet are super slow, even an order of magnitude slower than a basic 3$ arm chip.
This is the ONLY video that worked for me, even almost 2 years later by the way. Highly recommended to others. Thank you!
What version of the arduino IDE are you using ?
Just FYI.. if you're using an attiny84A 14 DIP, connections are:
5V pin 1 (vcc)
GND pin 14 (GND)
D10 pin4 (Reset)
D11 pin6 (MOSI)
D12 pin8 (MISO)
D13 pin9 (CLK)
This was an excellent tutorial. After uncommenting the #define it finally worked, thanks for the detailed explanation. You made the world a better place by sharing. Thanks again. I will use my attiny85 to trigger a relay circuit to turn on and off my hydroponics water pump. This will allow me to change the turn on time and off time with another program using millis () commands to reduce energy use in the hydroponics system.
Excellent explanation. Go to sketch --Upload using programmer and it worked right away. The normal upload Arrow continued to produce the Error: Programmer needed. IDE2.2.1
best video on this currently. one thing to note on the Uno and Mega; you will still need to connect a 10uf capacitor from the reset pin to ground (on the Uno or Mega). I tried the bootloader twice without the capacitor and it wouldn't sync.
yes, I had the same problem. thanks for the tip
Mine worked without capacitor
Wanted to make motor alarm, definitely not gonna use nano or even pro mini.. i knew there is something called ATTINY 85 found this video and it worked. Thanks bro
I am about to work on a project where small form-factor plays a huge factor... thank you for providing this detailed video.
Superb! Thanks.
I did this with an ATTINY45, as I had no 85s. Same pins, just less memory.
The only problem I had was hooking up to the 45's physical pin-3, not it's digital/virtual pin-3, which is on physical pin-2. Oops!
I'm gonna get some 85s for projects.
Thanks.
Excellent tutorial. I'm just getting started with Elegoo and Arduino but looking to get into programming the ATTiny. This video is perfect to get started.
Very clear and useful, thanks. 8:29 Note that the LED is connected to the pin named *PB3* on the ATtiny, not "pin 3"... it's actually physical pin 2 on the chip :-). BTW there's no need to disconnect all the wires from the Arduino to test the blink sketch; just stick the LED in.
You are correct (DIP8 pin 2) but so is Chris "PIN3" is PB3 and DIP2 ("PIN0/PB0" is on DIP5, for another example)
Hey, what exactly is the new wiring method? Because all the tutorials I've seen so far show the wiring method you use but without uncommenting the #define use_old_wiring. Sorry if it's a stupid question but any help would be much appreciated.
I believe the new wiring uses the ISP header, but the old wiring just uses the pins. I may be wrong, so don't blame me if your sketch won't work.
Thank you sooo much I've been stuck on trying to get PSNEE to work on Attiny, It work on a nanno using an FTDI addapter but for the life of me I couldnt get it to work when flashing a attiny45. you were the first turorial to say burn the boot loader I owe you a drink!
I really like this demo. It is such a please to listen to speech that I can understand. Thank you so much for producing this.
resistor in series with LED, recommended.
I just came across your video. Thank you. It is very clear and easy to follow. Excellent. Greetings from the UK.
Great video. Question: should a current limiting resistor be used with the LED (most arduino projects seem to require that, to avoid blowing it). Or is the AtTiny85 somehow negating that need ? Many thanks ... 🇬🇧
I did all of this with many Attiny's yrs before Covid time
Your genius. Very easy to follow.
i had to put 100uF capacitator (had this one avaliable) between nano's gnd and rst pin in order to flash ATtiny 13. My nano is Chinese clone and i have to use old bootloader option while flashin ISP sketch. Got me stuck for few hrs. Mabye helps others...
That is amazing. I have think that these little birds have a program by Factory. I don't know that I can change these Programs. Thank you so much
i am completely new in this. I lock the Videos more for fun as I use these infos.
fun stuff, and as a novice, I did get it to work, looking forward to other applications, tks
Basically worked first try. Thanks a lot
can you program attiny10 with arduino like attiny85?
Led resistor?
Thanks a lot for this great tutorial, very clear and helpful. Do I have to restore any settings in the Arduino after having programmed the Attiny85?
Exactly what I was after. Many thanks.
Thank you for your tutorial
Excellent My friend! May I use this tutorial a exacto same setup and tutorial for the attiny 13A? Cheers
Thanks, at last I program it.
This is a very good tutorial!
Thanks!
thanks only guide that worked :)
This is an excellent video. Might I ask what would happen if you burn the boot on a chip that all ready had the boot loaded?
That breadboard sure has had a hot supper at some time in the past...
good day sir levi, i have a ATtiny85 chips already programmed and used in a small board with relay. this board is used in motorcycle with two additional low/high LED lights left and right of the bike.
The board has two terminal connection for passing light switch. when the passing switch was press the two led blinks low and high continuously and can adjust the rate with a potentiometer. my query is can i copy the program of attiny85 chip installed on the board and re program to anew IC attny85? or there another way to copy the program using any programmer. thanks
Thank you, this worked great!
Great tutorial can it also read input from code? I want make a light detector chip
Why does the LED not fry without a resistor? :O
Great question.
I suspect both ATTiny and the LED would be stressed without a current limiting resistor.
Perhaps the LED survives because of the one second off, following the one second on. I wonder if this could be left running for a long time, anyway.
Many ATTinys have limited current current output - of the order of 30 mA. Overdriving a load could perhaps cause heating , or evrn breakdowns
I wouldn't say this is a very healthy way to drive an LED
so do you know of any way to make a midi drum module from an Attiny 85?
I'm looking at the pinout of the arduino nano and I'm wondering why it is pin 11, 12 ,13. I have like 100 teensy 4.0s in the lab and I'm wondering if I need to order an arduino nano to program my ATTINY861V-10MU. Thanks!
My question: is the code for attiny same as for uno/nano?
i have problem
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
Same error, did you find a resolution?
same here
CHECK WHETHER YOU HAVE SELECTED WRONG MCU.
You don't show how you wired to load the "blink" sketch
I have a question about the remaining "unused" pins...
how come the A3 & A2 pins of the Attiny don't need to be hooked up like all the others to be programmed?
I have a project where I need 3 digital outputs for RGB LED and 2 touch buttons - is this possibles with the ATTINY85?
What would I have to name the two touch buttons in the ARDUINO sketch to programme them onto the Attiny chip?
I haven't found an answer.
Hi!, those "unused" pins are not needed to program the attiny that's why he didn't hook them up. 2.- you can use pins 0, 1, 2 (or PB0, PB1 and PB2 which are the same) to control your led and 3 & 4 (or PB3 and PB4) to read your buttons. 3. you can find the name of each pin googling "attiny85 pinout" there are a bunch of images or 1->RESET 2->3 or A3 (analog input) 3 -> 4 or A2 (another analog input/digital IO) 4->GND 5->0 or MOSI, SDA 6 -> 1 or MISO 7 -> 2 or A1, SCK, SCL 8->VCC. Just to be clear #number from the attiny physcal pin -> number that you should use in your sketch. For example if you want to turn on an led with pin 0, first attacht it to physical pin #5 and in your sketch it should look something like this "digitalWrite(0, HIGH);" that should get the work done
@@pedrovelazquez6166
Thank you so much!
"define SERIAL Serial"
Error Message:
'Serial' was not declared in this scope
Any solution to this?
Which language is used to Attiny 85
I'm using Arduino Uno R3, Arduino IDE 2.0.3 and attiny 1.0.2. I've uncommented "USE_OLD_STYLE_WIRING" and I'm not using a capacitor. I was able to burn the bootloader on my ATtiny85, but not the Blink sketch: "A programmer is required to upload".
Problem solved: I should have used "Sketch" → "Upload Using Programmer" not just the "Upload" button!
@@GeorgMierau useful tip, thanks
Can I choose to use 8 MHz clock in the bootloader to make the board 8 MHz? And after I have burnt it, can I change the clock speed to eg 1 MHz?
i cant find attiny in boards manager
Might be a stupid quiestion, but im noob. Can I program the attiny with a raspberry too?
"Up to Date" - Hello! from the future!
subbedddddddddddddddddddddddddddddddddddddddddddddddd. 7:35 regards. should i press the burn bootloader instead if in case it was not installed? is it the same code for the bootloader?
How can I do same thing with ATtiny828?
Thank you for the video. Attiny85PU what does PU MEAN Please.
Good information.
For attiny13 please suggest
Check out this link for ATtiny13. create.arduino.cc/projecthub/taunoerik/programming-attiny13-with-arduino-uno-07beba
@@mikes3801 attiny2313a ic program upload process please try but not successful
THANK YOU! :)
aweomse thanks!
Wonderfull!
Nice video helpful
Thanks
okay so how do you do it without arduino ide
This works for me but led blinks faster than 1 sec, is that bootloader issue? Anyway great vid
probably wrong clock frequency setting, try varying at set up.
anyone found a got comparison to pic microprocessors?
What about the ATTiny 2313
Did you figure it out?
@@Daniel-hd7gq Never got around to try it.
@@Daniel-hd7gq Will look at it the weekend again. If you sort it it please share. Notice that the author does not respond to comments or questions.
@@evertspies3345 I've eventually got it working pretty fast. Just had to download the right board lib. If you need help, let me know.
@@Daniel-hd7gq Hi thank you. I remembered that I did download the board library. There were a couple of them. Just had to get one that worked. I looked at what I had done then and found that I had made a few piggy back boards that plugged into the arduino uno for the different microcontrollers. I never did make one for the 2313 although. Used AVRDUDESS to program hex files. Would a appreciate the link to the library you used.
Can the ATTINY run off a 3v button battery?
According to the datasheet it can run:
4MHz @ 1.8v - 5.5v
10MHz @ 2.7v - 5.5v
20MHz @ 4.5v - 5.5v
Can you use this same method to program an attiny204?
did you figure it out?
had to do this method after windows sh^% the bed over installing digispark attiny85 divers , making a shield to go on nano to program .
Nice video
The reason it fails is most likely because of the Arduino Nano clone you're using. I have the same one. The RX/TX LED:s on the Nano clone board are connected in a way that interferes with serial programming, so just go ahead and desolder those LEDs and the whole thing should be way more stable. :)
Wer keinen Widerstand vor die LED setzt, braucht auch keinen Kondensator
Y everyone is only blinking led.
just use teensy, it is much much faster, and legit just better.
ATtiny = $1 // Teensy = 19.95 . Everything has their uses. Unless you need "computing technology" there is no need to use an expensive microcontrollers. An ATtiny85, ATtiny84 or an ATtiny10 in conjunction with other IC's will reduce your crafting costs by 15 bucks a build.
@@TrillShatner I was talking about the start of the vid where he says he uses an arduino nano. they cost around 10$, yet are super slow, even an order of magnitude slower than a basic 3$ arm chip.
@@goldenpiston8449 agreed, however not entirely sure if you can program one of these with a teensy.
@@TrillShatner sure you can program an ARM chip with a teensy
@@goldenpiston8449 Nice~ Thanks man