How to Program an ATtiny with Arduino (Up to Date)

  Рет қаралды 59,543

Levi Janssen

Levi Janssen

Күн бұрын

Пікірлер: 108
@alandelgado5406
@alandelgado5406 3 жыл бұрын
This is the ONLY video that worked for me, even almost 2 years later by the way. Highly recommended to others. Thank you!
@juanhurtado2679
@juanhurtado2679 2 жыл бұрын
What version of the arduino IDE are you using ?
@chrisblain7065
@chrisblain7065 3 жыл бұрын
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)
@stickbug5182
@stickbug5182 3 жыл бұрын
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.
@vegansynths7757
@vegansynths7757 4 жыл бұрын
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.
@derkonsument7061
@derkonsument7061 3 жыл бұрын
yes, I had the same problem. thanks for the tip
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
Mine worked without capacitor
@pietvermaat5928
@pietvermaat5928 Жыл бұрын
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
@kolosis1149
@kolosis1149 11 ай бұрын
I am about to work on a project where small form-factor plays a huge factor... thank you for providing this detailed video.
@ronpenrose3467
@ronpenrose3467 2 жыл бұрын
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.
@pixelfrenzy
@pixelfrenzy 2 жыл бұрын
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.
@bob-ny6kn
@bob-ny6kn 2 жыл бұрын
You are correct (DIP8 pin 2) but so is Chris "PIN3" is PB3 and DIP2 ("PIN0/PB0" is on DIP5, for another example)
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
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
@Dreamsarefragile
@Dreamsarefragile 3 жыл бұрын
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!
@k.chriscaldwell4141
@k.chriscaldwell4141 Жыл бұрын
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.
@tomlewis2477
@tomlewis2477 3 жыл бұрын
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.
@grimbo930charlyboy4
@grimbo930charlyboy4 Жыл бұрын
I just came across your video. Thank you. It is very clear and easy to follow. Excellent. Greetings from the UK.
@xsirfr1958
@xsirfr1958 2 жыл бұрын
resistor in series with LED, recommended.
@regal_7877
@regal_7877 4 жыл бұрын
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.
@advixity
@advixity 3 жыл бұрын
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.
@mikes3801
@mikes3801 4 жыл бұрын
Your genius. Very easy to follow.
@damian-ondrejsulista1533
@damian-ondrejsulista1533 4 жыл бұрын
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...
@doverivermedia3937
@doverivermedia3937 Жыл бұрын
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 ... 🇬🇧
@bobtookyt
@bobtookyt 3 жыл бұрын
fun stuff, and as a novice, I did get it to work, looking forward to other applications, tks
@DAAI741
@DAAI741 2 жыл бұрын
Basically worked first try. Thanks a lot
@flinkiklug6666
@flinkiklug6666 3 жыл бұрын
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
@flinkiklug6666
@flinkiklug6666 3 жыл бұрын
i am completely new in this. I lock the Videos more for fun as I use these infos.
@stephantrampler4323
@stephantrampler4323 Жыл бұрын
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?
@Jorge-or3fr
@Jorge-or3fr Жыл бұрын
Excellent My friend! May I use this tutorial a exacto same setup and tutorial for the attiny 13A? Cheers
@pauldusa
@pauldusa 2 жыл бұрын
I did all of this with many Attiny's yrs before Covid time
@armandokrulc3822
@armandokrulc3822 4 жыл бұрын
can you program attiny10 with arduino like attiny85?
@NERO-ez1mn
@NERO-ez1mn 4 жыл бұрын
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?
@eross21
@eross21 5 ай бұрын
so do you know of any way to make a midi drum module from an Attiny 85?
@alancv86
@alancv86 2 жыл бұрын
Led resistor?
@2neurons2cents
@2neurons2cents 2 ай бұрын
My question: is the code for attiny same as for uno/nano?
@yonil256
@yonil256 3 жыл бұрын
This is a very good tutorial! Thanks!
@flightsimguy3897
@flightsimguy3897 3 жыл бұрын
Great tutorial can it also read input from code? I want make a light detector chip
@alexanderxatprime
@alexanderxatprime 2 жыл бұрын
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!
@feynthefallen
@feynthefallen 2 жыл бұрын
That breadboard sure has had a hot supper at some time in the past...
@kb3cxe
@kb3cxe 2 жыл бұрын
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?
@jhondeleon63
@jhondeleon63 3 жыл бұрын
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
@Surbitron9000
@Surbitron9000 3 жыл бұрын
Exactly what I was after. Many thanks.
@satyasunarya7765
@satyasunarya7765 4 жыл бұрын
i have problem avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.
@billd01rfc
@billd01rfc 3 жыл бұрын
Same error, did you find a resolution?
@tionanima
@tionanima Жыл бұрын
same here
@pradiptabanerjee6513
@pradiptabanerjee6513 Ай бұрын
CHECK WHETHER YOU HAVE SELECTED WRONG MCU.
@GeorgMierau
@GeorgMierau Жыл бұрын
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".
@GeorgMierau
@GeorgMierau Жыл бұрын
Problem solved: I should have used "Sketch" → "Upload Using Programmer" not just the "Upload" button!
@batchrocketproject4720
@batchrocketproject4720 Жыл бұрын
@@GeorgMierau useful tip, thanks
@h.a.7393
@h.a.7393 3 жыл бұрын
Thanks, at last I program it.
@unidahl5821
@unidahl5821 4 жыл бұрын
Why does the LED not fry without a resistor? :O
@gopalshekar986
@gopalshekar986 3 жыл бұрын
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
@mhe123321
@mhe123321 3 жыл бұрын
I wouldn't say this is a very healthy way to drive an LED
@danielliden6829
@danielliden6829 2 жыл бұрын
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?
@nuca5104
@nuca5104 3 жыл бұрын
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.
@pedrovelazquez6166
@pedrovelazquez6166 3 жыл бұрын
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
@nuca5104
@nuca5104 3 жыл бұрын
@@pedrovelazquez6166 Thank you so much!
@szuzmariacsatkai3496
@szuzmariacsatkai3496 3 жыл бұрын
Might be a stupid quiestion, but im noob. Can I program the attiny with a raspberry too?
@peterhuesmann3956
@peterhuesmann3956 2 жыл бұрын
Thank you, this worked great!
@dragonthefly1210
@dragonthefly1210 Жыл бұрын
thanks only guide that worked :)
@jesuschoyley7088
@jesuschoyley7088 Жыл бұрын
You don't show how you wired to load the "blink" sketch
@tikroute
@tikroute 4 ай бұрын
Thank you for your tutorial
@venkatasaiprasadbhumireddy2314
@venkatasaiprasadbhumireddy2314 2 жыл бұрын
Which language is used to Attiny 85
@G1NT0N1C
@G1NT0N1C 4 жыл бұрын
"define SERIAL Serial" Error Message: 'Serial' was not declared in this scope Any solution to this?
@brunoposavec9501
@brunoposavec9501 2 жыл бұрын
i cant find attiny in boards manager
@bob-ny6kn
@bob-ny6kn 2 жыл бұрын
"Up to Date" - Hello! from the future!
@skepsis9238
@skepsis9238 3 жыл бұрын
How can I do same thing with ATtiny828?
@scottmassanelli2404
@scottmassanelli2404 3 жыл бұрын
Thank you for the video. Attiny85PU what does PU MEAN Please.
@edubmf
@edubmf 16 күн бұрын
F2 breadboard war story right there.
@dassajityadav5555
@dassajityadav5555 4 жыл бұрын
For attiny13 please suggest
@mikes3801
@mikes3801 4 жыл бұрын
Check out this link for ATtiny13. create.arduino.cc/projecthub/taunoerik/programming-attiny13-with-arduino-uno-07beba
@dassajityadav5555
@dassajityadav5555 4 жыл бұрын
@@mikes3801 attiny2313a ic program upload process please try but not successful
@blueey2938
@blueey2938 3 жыл бұрын
okay so how do you do it without arduino ide
@NathanCroucher
@NathanCroucher 3 жыл бұрын
This works for me but led blinks faster than 1 sec, is that bootloader issue? Anyway great vid
@batchrocketproject4720
@batchrocketproject4720 Жыл бұрын
probably wrong clock frequency setting, try varying at set up.
@Icecreaam97
@Icecreaam97 3 жыл бұрын
Can you use this same method to program an attiny204?
@0Smile0
@0Smile0 Жыл бұрын
did you figure it out?
@evertspies3345
@evertspies3345 3 жыл бұрын
What about the ATTiny 2313
@Daniel-hd7gq
@Daniel-hd7gq 2 жыл бұрын
Did you figure it out?
@evertspies3345
@evertspies3345 2 жыл бұрын
@@Daniel-hd7gq Never got around to try it.
@evertspies3345
@evertspies3345 2 жыл бұрын
@@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.
@Daniel-hd7gq
@Daniel-hd7gq 2 жыл бұрын
@@evertspies3345 I've eventually got it working pretty fast. Just had to download the right board lib. If you need help, let me know.
@evertspies3345
@evertspies3345 2 жыл бұрын
@@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.
@tonysicily2687
@tonysicily2687 4 жыл бұрын
Can the ATTINY run off a 3v button battery?
@NunoRVOliveira
@NunoRVOliveira 3 жыл бұрын
According to the datasheet it can run: 4MHz @ 1.8v - 5.5v 10MHz @ 2.7v - 5.5v 20MHz @ 4.5v - 5.5v
@_crazytechz
@_crazytechz 4 жыл бұрын
Nice video helpful Thanks
@marcello4258
@marcello4258 4 жыл бұрын
anyone found a got comparison to pic microprocessors?
@t1d100
@t1d100 2 жыл бұрын
Good information.
@Decco6306
@Decco6306 4 жыл бұрын
Wonderfull!
@codingfun63
@codingfun63 11 ай бұрын
had to do this method after windows sh^% the bed over installing digispark attiny85 divers , making a shield to go on nano to program .
@gedr7664
@gedr7664 4 жыл бұрын
aweomse thanks!
@the555timer
@the555timer 3 жыл бұрын
THANK YOU! :)
@Acodalimus
@Acodalimus 4 жыл бұрын
Wer keinen Widerstand vor die LED setzt, braucht auch keinen Kondensator
@marcusstenbeck
@marcusstenbeck Жыл бұрын
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. :)
@Drxxx
@Drxxx 4 жыл бұрын
Nice video
@AmitSingh-py2nt
@AmitSingh-py2nt 3 жыл бұрын
Y everyone is only blinking led.
@goldenpiston8449
@goldenpiston8449 3 жыл бұрын
just use teensy, it is much much faster, and legit just better.
@TrillShatner
@TrillShatner 3 жыл бұрын
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.
@goldenpiston8449
@goldenpiston8449 3 жыл бұрын
@@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.
@TrillShatner
@TrillShatner 3 жыл бұрын
@@goldenpiston8449 agreed, however not entirely sure if you can program one of these with a teensy.
@goldenpiston8449
@goldenpiston8449 3 жыл бұрын
@@TrillShatner sure you can program an ARM chip with a teensy
@TrillShatner
@TrillShatner 3 жыл бұрын
@@goldenpiston8449 Nice~ Thanks man
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Make a UPDI Programmer for the Arduino ATTiny
14:50
element14 presents
Рет қаралды 25 М.
Program the ATTINY85 with Arduino 1.8.18 (2022)
7:35
DIY TECH BROS
Рет қаралды 76 М.
Programming ATtiny85/84 with Arduino Uno (ATTinyCore)
18:32
Matt Inglot
Рет қаралды 43 М.
Arduino Tutorial - ATtiny85 explained in 4 minutes!
4:28
Adio_
Рет қаралды 178 М.
🤖Я в шоке! ChatGPT пишет Arduino проекты
28:24
Program ATtiny85 directly via USB
7:43
Mr.T's Design Graveyard
Рет қаралды 31 М.
How To Program An Attiny85 With An Arduino Nano
9:20
SciTyeTech
Рет қаралды 6 М.
ATtiny85 Microcontroller
6:35
Mark Gunnison
Рет қаралды 10 М.
How to use the Atmel ATTINY10 Microcontroller
53:02
Ben Heck Hacks
Рет қаралды 552 М.
ATTiny85 Program Using Arduino UNO
12:07
Steve Rayner Makes
Рет қаралды 16 М.