Perfect video lesson. I have damaged an Attiny85 tried in other ways. Your explanation is accurate and it works, it works very well. Thank you very much.
Just digging through my electronics and came across a tube of 20 ATtiny85 from back in my PIC16F84 days (mid 90's). I have a remote control project so I was going to use one of them to provide the code and flash the LED when the remote button is pressed. Found a "digispark" thing in the same drawer as the ATtiny85 and thought that might work as a test bed. Long story short. I'm glad I found this video and will get my Arduino setup as a programmer. Thanks!
I tried programming the Attiny45 for RBG common anode LEDs with no results. All the videos I've seen so far have been confusing. I think you explained the programming of the Attiny microcontroller the best. Having said that you have encouraged me to try again. Thank you very much. All the best wishes
And you’re very welcome! That’s why I made the video in the first place, because just like you, I kept finding that all the videos and guides would make it *look* easy, but whenever I’d go to try it out myself it would never work, so I’m super happy that my video’s given you the motivation to try again. I wish you the best with your project! :)
Of all the videos I have looked at, this is the 'Holy Grail'. Top marks. I had built a shield for my Uno based on the instructions from another video. Got the PCB made and inserted the relevant components, Attempted to program an ATTiny85 - Nothing!! Tried all combinations of settings. Nothing. Programmer required!! Looked at other videos. Still no joy! Came across your video an noticed the words 'Complete in-depth tutorial' and thought, Okay. try this one to see what happens. Wired up the breadboard as per your instructions and set the test program up. THEN CAME THE CRITICAL BIT at 12:20 in the video!! None of the other tutorials mentioned using the 'Upload using Programmer' command in the sketch menu. WHAT!!! OKAY!!. Hmm!! Do as the man says!! It uploaded to the breadboard setup and I had no errors. OKAY!! Try the Blink sketch. Uploaded it and Hey Presto! the LED started blinking!! One happy guy so, curiosity then kicked in. I installed the PCB header I got made. and uploaded the same sketch. Boom!! LED started blinking on the PCB. BRILLIANT!! And all because of one small command - A KEY STEP!! - that every other video seems to have missed out. Thank You!!
Awesome! I'm so glad the video helped you with your project! 😊 Reading comments like this makes me so happy! I'll be making more videos like this for programming all the components that I can't find proper tutorials for. :) Future Edit: I liked your comment so much that I’m actually going to save it to my phone notes and read it every time I don’t feel motivated to record/edit a video. Thank you ❤️
Nicely explained, especially the important point about 'upload using programmer'. Just a small point though, the cap has to be disconnected after bootloading. And lastly, used Arduino IDE ver 2.3.2. Thanks again.
Where were you years ago when I needed you 🤣😭🤣Excellent Video tutorial! Earned another sub from me 🙂Have you considered turning this into a step by step free PDF download for your viewers, I am sure there are many oldies like me who love to print it out and have it in front of them.
Oh you’re very welcome! It’s only happened a couple times so far but it makes me so happy when someone says that they got something to work after seeing one of my videos! 💚
Yeah that’s a good one! I wasn’t sure whether to make one or not but if you guys want one I’ll do it. The attiny13a I remember being super frustrating to get working the first time I tried it. But then I just switched to the attiny45/85 to make it easier.
Definitely! It’s really straightforward too, just make sure you get the ATtiny45 or 85, not the ATtiny13 because that programming that one needs some extra steps.
Such a clean and well explained tutorial! I suppose this will work the same for other Attiny85 variants such as the ATTINY85-20SU model? I also noticed this smaller version is used in Digispark Attiny85 boards. I have a few 20SU that i need to program and then i will have to solder them to the ready PCB i ordered. Since this model is smaller, i will have to connect it to the breadboard using a OTS-20-1.27-01 SOP8 adapter socket.
I’ve never tried the ATTINY85-20SU but I’d imagine it should also work if it’s got the same overall specs as the ATTINY85-20PU. I glanced over the specs and it seems like the 20SU is just the surface mount version, and since you said it’s also used on those digispark boards, I think it’s got a pretty good chance of working the same.
@@KeonsLab update. Worked perfectly using your method! Used the adapter i was talking about and everything went smooth. Code upload success! Thanks to your well informed and clean tutorial! Thanks mate! Cheers!
Aw that’s awesome! When I read comments like this it makes me so happy 😊 I’m so glad you found it interesting and I’ll definitely keep making cool videos!
If you’re referring to physical pins 5,6, and 7, then they can be used as normal digital pins, either as inputs or outputs. Of course you’d want to disconnect the programming leads before connecting components to them but yeah, they’re totally usable as digital I/O pins! D0 & D1 even have PWM capability!
(If I remember correctly) It’s to stop the Arduino from self-resetting when uploading (I hope I’m getting that right but it’s just for stability when the ArduinoISP is uploading to the ATMEGA)
I’ll try my best here with a comment but if you still end up needing help, feel free to send an email to the channel’s email address accessible on the ‘About’ tab of the channel page. Ok so let’s try and solve the issue, that error is one I usually get when something’s wrong with the physical integrity of my connections, so everything may be wired up correctly but it may be something like the breadboard or wires themselves that’s causing the issue. Since I can’t really tell you how to fix it without any context, I’ll leave a few questions below to get a better idea of what may be causing your error: - Have you burned the Bootloader successfully? - Is the programmer set to “Arduino as ISP”? - Are the jumper wires you’re using new or have they been used a lot or with currents over 1 Amp? - When you insert a resistor lead into the breadboard, does it seem to make a snug fit or does it just barely grab on? - Not a question but try rewiring everything with different or unused jumper wires on either the other side of the breadboard or on a different breadboard if possible. - What is the CPU frequency for the attiny set to? If not already, try 1 MHz instead of 8 MHz.
I have the error invalid signature and failed to erase the chip. Somehow first time worked then I wanted to amen program . Then continuely error there. Similar errorcthere for ATTiny13 also. I refrred help lines in Arduino community website. But was not successful .
Should I make a tutorial on programming the Atmega328p or the ATtiny13a?
Perfect video lesson.
I have damaged an Attiny85 tried in other ways. Your explanation is accurate and it works, it works very well.
Thank you very much.
You’re very welcome!! 😁
Just digging through my electronics and came across a tube of 20 ATtiny85 from back in my PIC16F84 days (mid 90's).
I have a remote control project so I was going to use one of them to provide the code and flash the LED when the remote button is pressed.
Found a "digispark" thing in the same drawer as the ATtiny85 and thought that might work as a test bed.
Long story short. I'm glad I found this video and will get my Arduino setup as a programmer.
Thanks!
I tried programming the Attiny45 for RBG common anode LEDs with no results. All the videos I've seen so far have been confusing. I think you explained the programming of the Attiny microcontroller the best. Having said that you have encouraged me to try again. Thank you very much. All the best wishes
And you’re very welcome! That’s why I made the video in the first place, because just like you, I kept finding that all the videos and guides would make it *look* easy, but whenever I’d go to try it out myself it would never work, so I’m super happy that my video’s given you the motivation to try again.
I wish you the best with your project! :)
Of all the videos I have looked at, this is the 'Holy Grail'. Top marks. I had built a shield for my Uno based on the instructions from another video. Got the PCB made and inserted the relevant components, Attempted to program an ATTiny85 - Nothing!! Tried all combinations of settings. Nothing. Programmer required!! Looked at other videos. Still no joy!
Came across your video an noticed the words 'Complete in-depth tutorial' and thought, Okay. try this one to see what happens. Wired up the breadboard as per your instructions and set the test program up. THEN CAME THE CRITICAL BIT at 12:20 in the video!!
None of the other tutorials mentioned using the 'Upload using Programmer' command in the sketch menu. WHAT!!! OKAY!!. Hmm!! Do as the man says!! It uploaded to the breadboard setup and I had no errors. OKAY!! Try the Blink sketch. Uploaded it and Hey Presto! the LED started blinking!! One happy guy so, curiosity then kicked in.
I installed the PCB header I got made. and uploaded the same sketch. Boom!! LED started blinking on the PCB.
BRILLIANT!! And all because of one small command - A KEY STEP!! - that every other video seems to have missed out.
Thank You!!
Awesome! I'm so glad the video helped you with your project! 😊
Reading comments like this makes me so happy! I'll be making more videos like this for programming all the components that I can't find proper tutorials for. :)
Future Edit: I liked your comment so much that I’m actually going to save it to my phone notes and read it every time I don’t feel motivated to record/edit a video. Thank you ❤️
Nicely explained, especially the important point about 'upload using programmer'. Just a small point though, the cap has to be disconnected after bootloading. And lastly, used Arduino IDE ver 2.3.2. Thanks again.
I really appreciate your straightforward tutorial
Thanks! 😊 I’m glad you found it helpful
Where were you years ago when I needed you 🤣😭🤣Excellent Video tutorial! Earned another sub from me 🙂Have you considered turning this into a step by step free PDF download for your viewers, I am sure there are many oldies like me who love to print it out and have it in front of them.
Hi, I was getting so frustrated, then I found your tutorial. It worked right away. THANK YOU so much!
Oh you’re very welcome!
It’s only happened a couple times so far but it makes me so happy when someone says that they got something to work after seeing one of my videos! 💚
I had similar frustration i will try it. Only diffrence for me is i did not use capacitor .
I had frustration also since I got invalid signature error when uploading i will try this. Only diffrence for me is i did not use capacitor .
So the capacitor made it work properly right? Or was it the other way around and removing the capacitor made it work?
@@KeonsLab no dear no it did not. I feel it csnnot be connections
Make a video about the ATtiny13a. Looking foward.
Yeah that’s a good one! I wasn’t sure whether to make one or not but if you guys want one I’ll do it. The attiny13a I remember being super frustrating to get working the first time I tried it.
But then I just switched to the attiny45/85 to make it easier.
Always wanted to use these little guys but the documentation isnt as easy to understand for me. Maybe now I can give it a go. Thanks for the video.
Definitely! It’s really straightforward too, just make sure you get the ATtiny45 or 85, not the ATtiny13 because that programming that one needs some extra steps.
Such a clean and well explained tutorial! I suppose this will work the same for other Attiny85 variants such as the ATTINY85-20SU model? I also noticed this smaller version is used in Digispark Attiny85 boards. I have a few 20SU that i need to program and then i will have to solder them to the ready PCB i ordered. Since this model is smaller, i will have to connect it to the breadboard using a OTS-20-1.27-01 SOP8 adapter socket.
I’ve never tried the ATTINY85-20SU but I’d imagine it should also work if it’s got the same overall specs as the ATTINY85-20PU.
I glanced over the specs and it seems like the 20SU is just the surface mount version, and since you said it’s also used on those digispark boards, I think it’s got a pretty good chance of working the same.
@@KeonsLab thanks! I will update if i successfuly program the 20SU using your clean method! 👍
Sounds good, I wish you luck!
@@KeonsLab update. Worked perfectly using your method! Used the adapter i was talking about and everything went smooth. Code upload success! Thanks to your well informed and clean tutorial! Thanks mate! Cheers!
Awesome!!😄
Nice. P.S.: That was actually really cool.
Thanks! 😊
Nice👍, very interesting.
Now learned something new, thanks to you.
Keep doing such interesting videos.
Aw that’s awesome! When I read comments like this it makes me so happy 😊 I’m so glad you found it interesting and I’ll definitely keep making cool videos!
Verey nicely explained. Can I assume this will work with a 3224 also? Thanks, Paul
Thanks a ton for this, super useful and interesting.
Great job kid!
Thanks!!! 😄
Thanks buddy, good video 🎉🎉
You’re so welcome :)
So 0,1,2 are for programming only? not outputs
If you’re referring to physical pins 5,6, and 7, then they can be used as normal digital pins, either as inputs or outputs.
Of course you’d want to disconnect the programming leads before connecting components to them but yeah, they’re totally usable as digital I/O pins! D0 & D1 even have PWM capability!
i can't burn bootloader, any solution that you can suggest?
Excellent, thank you!
Btw 8192 bytes is exactly 8 kB.
Right!
Why do we need to insert a 10 uf cap ??
(If I remember correctly) It’s to stop the Arduino from self-resetting when uploading (I hope I’m getting that right but it’s just for stability when the ArduinoISP is uploading to the ATMEGA)
Hi im getting theerror invalid signature failed to erase chip. Wiring correct.please help.
I’ll try my best here with a comment but if you still end up needing help, feel free to send an email to the channel’s email address accessible on the ‘About’ tab of the channel page.
Ok so let’s try and solve the issue, that error is one I usually get when something’s wrong with the physical integrity of my connections, so everything may be wired up correctly but it may be something like the breadboard or wires themselves that’s causing the issue.
Since I can’t really tell you how to fix it without any context, I’ll leave a few questions below to get a better idea of what may be causing your error:
- Have you burned the Bootloader successfully?
- Is the programmer set to “Arduino as ISP”?
- Are the jumper wires you’re using new or have they been used a lot or with currents over 1 Amp?
- When you insert a resistor lead into the breadboard, does it seem to make a snug fit or does it just barely grab on?
- Not a question but try rewiring everything with different or unused jumper wires on either the other side of the breadboard or on a different breadboard if possible.
- What is the CPU frequency for the attiny set to? If not already, try 1 MHz instead of 8 MHz.
@@KeonsLab ok
Cannot find an email in About section please
I have the error invalid signature and failed to erase the chip. Somehow first time worked then I wanted to amen program . Then continuely error there. Similar errorcthere for ATTiny13 also. I refrred help lines in Arduino community website. But was not successful .
Downloaded library using your link.