Amazing work. Thank you for your in-depth, no assumptions, every step is shown work. People should use your videos as a standard for electronic tutorials.
A quick extension of this tutorial to illustrate how to send a 12V pulse to RESET to put the ATtiny back in UPDI mode would be awesome! This is very useful for the low pin count variants.
Hey your comment piqued my interest and also raised my anxiety. What is this about putting the chip BACK into updi mode? Does that mean that the new attiny chips are one time programmable or something? Sorry if this is a stupid question but I’m very new to this
@@regal_7877 If you use all of the GPIO pins for your applications, it means that none of the pins will be dedicated to programming anymore. In that case, you have to force the ATtiny to go back into programming/UDPI mode by sending a 12V pulse to RESET in order to reprogram it.
@@arnauddurand127 Oh alright I understand. That's whyh most of the tutorials I find only use 5 GPIO when actually the RESET pin can somehow be used as a GPIO too. The digispark version has 6 GPIO (the old series attiny85). Thanks for the explanation
Brilliant! I've only just become aware of the new attiny chips. Looking into programming them looked to be a bit of a nightmare. As well as expensive if you use the official AVR package. So thanks for putting this tutorial together.
Me neither! I knew about Microchip acquiring Atmel, but didn't think they would "refresh" the ATTiny line-up. This is an excellent guide, and very informative! I
Very glad to find your video about this. Have avoided buying any of the new AVR chips for the uncertainty of being able to program them without an expensive, proprietary device. I made a PDI programmer a couple years back for some Xmega chips ... it was a 2-wire affair though, that uses a special patched USBASP. It is nice that STM32 and ESP chips ship with the ability to program through ordinary serial ... though 57600/8E1 is a bit weird.
Great work man! I got my Attiny1604 to work based on your video today! I noticed one thing people should be aware of. I'm using an Arduino Nano with an Atmega168, and in Arduino IDE it reports that it has 16k programming memory. And since the Attiny1604 only have 8k you can be fooled to think that you have more memory than you actually do. Make sure you stick to the limit on the actual Attiny and not the device you use to program it with.
I implemented a small 30W LED driver (boost converter) and used an ATtiny1616 MCU because it had a DAC that I could use to set the brightness without PWM, but was halted by the fact I had to development environment in Linux or a programmer for it. Guess I need to dig that project out of the failed projects bin!
I just watched this on my TV where I can't comment. This video is so well packed with information and humour I just had to get my phone out and let you know I loved this. I laughed out loud when I heard the crickets. 🤣 You've gained another subscriber!
Man, this channel is amazing! I would love see a video about how to use a processor and memories to build video on a TFT LCD of a laptop or more... in the bitluni style of course haha
Yep watching this video makes me feel more like a nerd then ever! Thanks Luni! ;) Don't forget the cap... ok I have breakout boards.... ok I have adapter socket and the CMOS clip ok I just need a some ICs and a projects.
Very informative, thanks. I will try one of the new ones, just to see if I can, if I can get it cheaply: Delivery charges at mouser turn these into expensive (30 dollar) chips
Usually above 50€ the shipping is free. I order a lot of stuff from China, but there are always some things you can only get from Mouser or similar sources. I usually add them up in the basket until i'm above the 50€ limit and then i order. Or try to find some people nearby and order together. Mouser should start selling Amtech Flux ...then it would be much easier to get above the 50€ on a regular basis :)
@@Leif_YT yes, but currently I do not need 50 euro from mouser. They are literally around the corner from me, so charging me 20euro shipping is a complete nono
@@bitluni cheapest I found d them is 1.12 euro plus 4.95 shipping. Ordered some out of interest, but realistically it is cheaper to get a pro mini from china. Ironically Mouser IS local. They are 10 minutes away from me
Nice to know. Now I can throw out my adapter board I made for a Nano->Attiny Adapter and make a new one. Unfortunately I do have the tendency to use the 328p for nearly everything. I still got no idea for my next PCB Art project for Christmas.
@@andymouse yep! It's on public alpha now though. I'm used to code esp and Arduinos in vscode and it is so much better than the default Arduino IDE. I'm super excited about this shift towards eclipse theia.
Can you use Serial Monitor with this UPDI method? It doesn't work in my case. Ofcourse it does not use the UART but still if we are able to upload a program to it then we may be able to get some serial output out of it. Anyone has a clue?
Amazing! I've been looking all over for this UPDI thing! However, I wish there was an actual XMEGA microcontroller programmable the same way with enough memory and performance to be able to send a stable video signal to a display with a retro game resolution like at least 240x224 with beautiful Pico-8 pallette consisted of 16 most desirable colors. Do you know if there is any such?
why bother with arduino, whan you have na FLIP programmer nested in nearly all xmegas as bootloader? you need only hook up the usb connector directly to the pins of uC, shorted one pin to ground (propably one of J pin) and use the flip interface to upload hex. maybe someone already combine flip and arduino?
Arduino its turning into a huge project. every day i learn it support a new board, a new chip or core inside other chips... but the IDE needs a rewriting. and the language an update
Great Video! Will this work if the part is already mounted on a PCB circuit with a 4k7 resitor and pin. ie I am creating a circuit to use it as a simple program to set TWI (I2C) on power on to another part requiring I2C comms to set its paramenters. Thnaks Peter
Hello, great material, will use it in my activity. Just a weird question is on my mind. Is there any chance of using this UPDI link as normal serial (UART) port? It means after programming, can I use to communicate with ATtiny from PC terminal? Or do I have to use Rx and Tx pins for serial communication?
The comparison of pin requirement is kind of weird. It's not a 6 -> 1 pin shrink. It's a 4 -> 1 pin shrink, which is still impressive. No need to dress it up any further :)
I was quite upset when there was not expected view s you got for ping pong ball screen project, You have taken to much efforts for that video i seen. You must have to make such video in long series and must include a to z detail not just 2 or three part. You deserve more, explore your video as much as possible.
Does the ATTINY(816, let's say) microcontroller have to be at 5V(powering) for programming using Arduino(as UPDI)? What if the ATTINY uC is powered separately by a 3.3V power supply? Will a level shifter do the work in coding it?
thank you/danke for this tutorial and the notice on the release of new attinys!! theyre not really easy to get, as mouser charges a lot for shipping to germany.. so with the price of around 80 cents, theyre very cheap. but the smd component require a breakout for breadboard use, thats plus 2 euro. then i can get a nano for 3.. whats the benefit of the new attinys, compare to for example the nano, with the 328 chip, or the old attiny 85, which is Dil8, so directly usable without breakout. is there also an updated version of the Attiny 85 with dil and 8 pins? thanks!
Hello. I'm Radu from Romania. I really appreciate your work and videos. I can't load the programmer code into Nano. I tried several versions, it gives me all kinds of errors. What's wrong? what's the secret. I mention that I want to program an Attiny 402... Thanks for any information. All the Best !
Hi, I'm actually working on a similar project. I have a very simple question,can an esp32 be used to program the attiny instead of a nano?? I'm very very interested to know if this is is possible, if not whats the exact reason ESP32 cannot be used? Please help me understand this...thanks in advance bitluni
Thanks for the tutorial. Do you know if there is something about the ATTINY404 except for selecting that chip from the menu? I followed the steps and can't get it to work.
After checking all the wiring and everything several times and still no luck, I tried another chip and it worked! Something in my first attempts must have bricked the first chip.
Dear friend. The first of all, thanks for this video which learn us to use the new attiny family. But I have a small problem when I try to upload the code. I need 10 or 20 times to upload the code correctly. Always appear an error and suddenly it upload correctly. At the beginning I thought that it was a problem of the protoboard and soldered the resistor, the capacitor and the power directly. After that I thought that maybe it was a problem of the version of the library or the IDE version and I installed the same that you use. But nothing works. Do you know what it can be happened? Thanks in advance
Please help! SOS! Dont work - is error avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf0 avrdude: stk500_recv(): programmer is not responding
Hi! You can plz help - I cant upload a code to Attiny414 with arduino Nano. I cant find any information how to do that. Please help. I have UPDI, but it dont work. Anything from internet dont work.
Klar, wir hatten ja schließlich ein rennen. Ich will noch eine Revanche. Übrigens hab ich deine nachricht beim makercast gelesen, aber irgendwie seh ich da nix auf insta.. bin zu alt dafür :-D
das ist no-clean von reichelt.. ich mag aber den geruch nicht so sehr und die färbung lässt meine US-Cleaner füllung schnell gelb werden. ist aber einfach aufzutragen und zu entfernen.
Amazing work. Thank you for your in-depth, no assumptions, every step is shown work. People should use your videos as a standard for electronic tutorials.
Spence Kinds is my hero. I've been using his attiny core for years. I'm glad he's working on the new tiny's.
yeah it works pretty fine for the 85
This tutorial was great! There are so many confusing guides to get this chip working but yours was crystal clear and worked perfectly first time!
A quick extension of this tutorial to illustrate how to send a 12V pulse to RESET to put the ATtiny back in UPDI mode would be awesome! This is very useful for the low pin count variants.
Hey your comment piqued my interest and also raised my anxiety. What is this about putting the chip BACK into updi mode? Does that mean that the new attiny chips are one time programmable or something? Sorry if this is a stupid question but I’m very new to this
@@regal_7877 If you use all of the GPIO pins for your applications, it means that none of the pins will be dedicated to programming anymore. In that case, you have to force the ATtiny to go back into programming/UDPI mode by sending a 12V pulse to RESET in order to reprogram it.
@@arnauddurand127 Oh alright I understand. That's whyh most of the tutorials I find only use 5 GPIO when actually the RESET pin can somehow be used as a GPIO too. The digispark version has 6 GPIO (the old series attiny85). Thanks for the explanation
Brilliant!
I've only just become aware of the new attiny chips.
Looking into programming them looked to be a bit of a nightmare.
As well as expensive if you use the official AVR package.
So thanks for putting this tutorial together.
Me neither! I knew about Microchip acquiring Atmel, but didn't think they would "refresh" the ATTiny line-up.
This is an excellent guide, and very informative! I
I always feel myself like a silly when i try to search how to program new tinys and megas. Finally i could understand. Thanks a lot.
Very glad to find your video about this. Have avoided buying any of the new AVR chips for the uncertainty of being able to program them without an expensive, proprietary device. I made a PDI programmer a couple years back for some Xmega chips ... it was a 2-wire affair though, that uses a special patched USBASP. It is nice that STM32 and ESP chips ship with the ability to program through ordinary serial ... though 57600/8E1 is a bit weird.
Brilliant! A very concise, elegant tutorial. A little humour always helps, too. Thank you.
Great style of explanation, I praise your ability to go into the fundamental details.
Great work man! I got my Attiny1604 to work based on your video today! I noticed one thing people should be aware of. I'm using an Arduino Nano with an Atmega168, and in Arduino IDE it reports that it has 16k programming memory. And since the Attiny1604 only have 8k you can be fooled to think that you have more memory than you actually do. Make sure you stick to the limit on the actual Attiny and not the device you use to program it with.
Your videos are always awesome and that end song it's amazing as well
Wow, what a great video! All of your explanations were super clear and the editing was superb. 👍 Thank you very much! 🙂
I implemented a small 30W LED driver (boost converter) and used an ATtiny1616 MCU because it had a DAC that I could use to set the brightness without PWM, but was halted by the fact I had to development environment in Linux or a programmer for it. Guess I need to dig that project out of the failed projects bin!
I just watched this on my TV where I can't comment. This video is so well packed with information and humour I just had to get my phone out and let you know I loved this. I laughed out loud when I heard the crickets. 🤣
You've gained another subscriber!
Thanks Bernhard!
YAY! I got my attiny402 working thank you so much for the clear and professional tutorial
I built a 3 wire UPDI interface out of a USB Ftdi and a arduino pro mini for my Attiny 3217. Very small and handy. Works well..
I keep coming back to this video when I reformat my PC and forget how to set everything up to program these little brains :)
Man, this channel is amazing! I would love see a video about how to use a processor and memories to build video on a TFT LCD of a laptop or more... in the bitluni style of course haha
i didn't have any idea about the new atinys and this new interface, and the SWD with only to pins seem nice before... and using the reset pin! genius!
Great walkthrough
Thanks for sharing this new approach for programming the ATtinyminis :-)
Thanks! this really helped me getting started, once you go updi you want nothing else for those attiny's
Bitluni's videos are always awesome!
Yep watching this video makes me feel more like a nerd then ever! Thanks Luni! ;) Don't forget the cap... ok I have breakout boards.... ok I have adapter socket and the CMOS clip ok I just need a some ICs and a projects.
Very informative, thanks.
I will try one of the new ones, just to see if I can, if I can get it cheaply: Delivery charges at mouser turn these into expensive (30 dollar) chips
Usually above 50€ the shipping is free. I order a lot of stuff from China, but there are always some things you can only get from Mouser or similar sources. I usually add them up in the basket until i'm above the 50€ limit and then i order. Or try to find some people nearby and order together. Mouser should start selling Amtech Flux ...then it would be much easier to get above the 50€ on a regular basis :)
@@Leif_YT yes, but currently I do not need 50 euro from mouser. They are literally around the corner from me, so charging me 20euro shipping is a complete nono
just get them from ebay or a local electronic dealer. mouser is not affiliated here. I just liked it so you have a starting point
@@bitluni cheapest I found d them is 1.12 euro plus 4.95 shipping. Ordered some out of interest, but realistically it is cheaper to get a pro mini from china.
Ironically Mouser IS local. They are 10 minutes away from me
Eeeendlich auf das Video hab ich ewig gewartet. DANKE
The new little 412 is similar priced to the old chinese Attiny 13 ones. It's very tempting to try them out.
Nice to know. Now I can throw out my adapter board I made for a Nano->Attiny Adapter and make a new one. Unfortunately I do have the tendency to use the 328p for nearly everything. I still got no idea for my next PCB Art project for Christmas.
Legit. Do you know how much current it takes clocked down? Cr2032 needs to last long
Flawless tutorial, thank you! My old Attiny85's hate this video!
Thanks, works with tinyAVR 2 Family, specificly with ATtiny1626 and 1624
Wow that's cool! How about making a board to program this attiny?
Also please make a video on the new Arduino IDE Pro!
There is a new IDE sir?
@@andymouse yep! It's on public alpha now though.
I'm used to code esp and Arduinos in vscode and it is so much better than the default Arduino IDE. I'm super excited about this shift towards eclipse theia.
@ Thanks gonna try it now!
There's a bit of work to do!..I had errors and could not select a board so I'm gonna wait a bit, after all it's an Alpha release...cheers!
Didn't know Microchip bought Atmel. PIC and Atmel fans must love this fact.
Man, this was common knowledge for the longest of time. Microchip had always been trying to acquire Atmel.
I recall the day it was introduce, and as someone who works with both AVR and PIC, I was excited about the news!
"use a zocket to" love ur german accent :D
Great video, Bitluni!
Really useful - thanks mate :)
Great stuff. I have to read up on these new gems.
i hope to see atTiny AVR 2 Family in future
Great video - has motivated me to try this myself
4.7K or 470 ohms? Your resistor is 470 (seen at 3:43/7:58) but the diagram prescribes 4.7k...
4.7k works for me
very cool! you are able to make so much more great tutorials that must be seen ;-)
Can you use Serial Monitor with this UPDI method? It doesn't work in my case. Ofcourse it does not use the UART but still if we are able to upload a program to it then we may be able to get some serial output out of it. Anyone has a clue?
Amazing! I've been looking all over for this UPDI thing!
However, I wish there was an actual XMEGA microcontroller programmable the same way with enough memory and performance to be able to send a stable video signal to a display with a retro game resolution like at least 240x224 with beautiful Pico-8 pallette consisted of 16 most desirable colors.
Do you know if there is any such?
why bother with arduino, whan you have na FLIP programmer nested in nearly all xmegas as bootloader? you need only hook up the usb connector directly to the pins of uC, shorted one pin to ground (propably one of J pin) and use the flip interface to upload hex.
maybe someone already combine flip and arduino?
not really, but even the attiny is also interesting. 20Mhz could be enough for a pong game
Arduino its turning into a huge project. every day i learn it support a new board, a new chip or core inside other chips... but the IDE needs a rewriting. and the language an update
Thank for this!
Brilliant, thank you so much for sharing this!! ;-)
Cheers. Everything is perfectly explained. I can't load the jtag2updi program. He keeps throwing chiba at me. pls help me.
Great Video! Will this work if the part is already mounted on a PCB circuit with a 4k7 resitor and pin. ie I am creating a circuit to use it as a simple program to set TWI (I2C) on power on to another part requiring I2C comms to set its paramenters. Thnaks Peter
Hello, great material, will use it in my activity. Just a weird question is on my mind. Is there any chance of using this UPDI link as normal serial (UART) port? It means after programming, can I use to communicate with ATtiny from PC terminal? Or do I have to use Rx and Tx pins for serial communication?
The comparison of pin requirement is kind of weird. It's not a 6 -> 1 pin shrink. It's a 4 -> 1 pin shrink, which is still impressive. No need to dress it up any further :)
do a vid that shows how to play music while a sketch is being uploaded. that save us watching the monitor.
Great info!...cheers.
I was quite upset when there was not expected view s you got for ping pong ball screen project,
You have taken to much efforts for that video i seen.
You must have to make such video in long series and must include a to z detail not just 2 or three part.
You deserve more, explore your video as much as possible.
How can I upload binaries generated by other compilers, e.g. Atmel Stuido?
Does the ATTINY(816, let's say) microcontroller have to be at 5V(powering) for programming using Arduino(as UPDI)? What if the ATTINY uC is powered separately by a 3.3V power supply? Will a level shifter do the work in coding it?
thank you/danke for this tutorial and the notice on the release of new attinys!! theyre not really easy to get, as mouser charges a lot for shipping to germany.. so with the price of around 80 cents, theyre very cheap. but the smd component require a breakout for breadboard use, thats plus 2 euro. then i can get a nano for 3.. whats the benefit of the new attinys, compare to for example the nano, with the 328 chip, or the old attiny 85, which is Dil8, so directly usable without breakout. is there also an updated version of the Attiny 85 with dil and 8 pins? thanks!
Hello can you read an atmel 85 for example with arduino you can make a video please thank you
Did a double take when you said "Dr Azy" hahaha :D
I probably butchered your name. that line was at least 3 takes :-D
@@bitluni No my name's pronounced exactly the same 😜 Despite the single Z 😆
I have problems with UPDI on tiny412.
How do I reset UPDI to factory settings?
Hello. I'm Radu from Romania. I really appreciate your work and videos. I can't load the programmer code into Nano. I tried several versions, it gives me all kinds of errors. What's wrong? what's the secret. I mention that I want to program an Attiny 402... Thanks for any information. All the Best !
Hi! Can I connect several microcontrollers to one UPDI pin at the same time and program them one by one?
Hello, I can't load the jtag2updi program. Please as a total cod. I downloaded it from github and I can't upload it. Please help.
Hey bitlini, how did you open that .zip file in the arduino ide? I tried everything and no luck.
Hi, I'm actually working on a similar project. I have a very simple question,can an esp32 be used to program the attiny instead of a nano?? I'm very very interested to know if this is is possible, if not whats the exact reason ESP32 cannot be used? Please help me understand this...thanks in advance bitluni
Thanks for the tutorial. Do you know if there is something about the ATTINY404 except for selecting that chip from the menu? I followed the steps and can't get it to work.
After checking all the wiring and everything several times and still no luck, I tried another chip and it worked! Something in my first attempts must have bricked the first chip.
Candle light please tutorial
Dear friend. The first of all, thanks for this video which learn us to use the new attiny family. But I have a small problem when I try to upload the code. I need 10 or 20 times to upload the code correctly. Always appear an error and suddenly it upload correctly. At the beginning I thought that it was a problem of the protoboard and soldered the resistor, the capacitor and the power directly. After that I thought that maybe it was a problem of the version of the library or the IDE version and I installed the same that you use. But nothing works. Do you know what it can be happened? Thanks in advance
Does it matter what size of capacitor is needed between reset and ground?
The board package URL is no longer working
Please help! SOS! Dont work - is error avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf0
avrdude: stk500_recv(): programmer is not responding
Hi! You can plz help - I cant upload a code to Attiny414 with arduino Nano. I cant find any information how to do that. Please help. I have UPDI, but it dont work. Anything from internet dont work.
But what about D in UPDI? How can you debug attinys?
Do these common arduino libraries work with the attiny?
All great until you selet the arduino IDE options, I get to see what you select for about 100ms . Nearly impossible to see what you do.
Hey man, where do you throw your garbage?
how much power it consume in sleep mode
Whats the difference to debugWire? For me its the same?!
Schönes Video ;D
Kennst du mich noch von mer Maker Fair Hannover?
Klar, wir hatten ja schließlich ein rennen. Ich will noch eine Revanche. Übrigens hab ich deine nachricht beim makercast gelesen, aber irgendwie seh ich da nix auf insta.. bin zu alt dafür :-D
@@bitluni ;D alles gut kein thema wie kann ich dich noch gut erreichen?
Schönen abend noch ;D
Achso villeicht weil ich bei Insta GliffLP heiße ;D
how can i connet nrf2401 to attiny1604 (via spi)? does anyone know how to do?
omg, i need to know what's that background song at the installation timelapse called
Hold On a Minute - Silent Partner
It's from the youtube media library
Good.
Except jtag2updi is long deprecated.
1:05 i got your finger print
IC is backordered from every vendor...
does it work with ATTINY10?
can i program ATtiny20 XU with this way?
How to debug it?
Was für ein Flux-Gel ist das eigentlich? Könnte ich auf der Arbeit extrem gut gebrauchen... muss QFN leadless löten
das ist no-clean von reichelt.. ich mag aber den geruch nicht so sehr und die färbung lässt meine US-Cleaner füllung schnell gelb werden.
ist aber einfach aufzutragen und zu entfernen.
@@bitluni Vielen Dank für die Info
Was ist updi - gibts das auf deutsch auch? :-)
Nö
Dont search for the link written on Lunis UNO-Board. JUST DONT
Wow it literally lag my phone, incognito mode for sure...
hahahahahaha!!! OMG!
no tinies, esp32 one love
jtagmkII_getsync(): sign-on command: status -1
// simplest blink line..
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
delay(500);
Cheers. Everything is perfectly explained. I can't load the jtag2updi program. He keeps throwing chiba at me. pls help me.