Program an ATtiny45/85 with an Arduino Uno without Any Errors | Complete In-Depth Tutorial (2024)

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 58

  • @KeonsLab
    @KeonsLab  4 месяца назад +4

    Should I make a tutorial on programming the Atmega328p or the ATtiny13a?

  • @murilomilani
    @murilomilani 8 месяцев назад +4

    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.

    • @KeonsLab
      @KeonsLab  8 месяцев назад +1

      You’re very welcome!! 😁

  • @jdholbrook33
    @jdholbrook33 Месяц назад

    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!

  • @Kimiamodularedheinteligjencaar
    @Kimiamodularedheinteligjencaar Месяц назад +1

    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

    • @KeonsLab
      @KeonsLab  Месяц назад

      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! :)

  • @dpbarry
    @dpbarry 5 месяцев назад +1

    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!!

    • @KeonsLab
      @KeonsLab  5 месяцев назад +2

      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 ❤️

  • @rectifyer949
    @rectifyer949 2 месяца назад +1

    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.

  • @tikroute
    @tikroute 2 месяца назад +1

    I really appreciate your straightforward tutorial

    • @KeonsLab
      @KeonsLab  2 месяца назад +1

      Thanks! 😊 I’m glad you found it helpful

  • @merkabaenergy9558
    @merkabaenergy9558 Месяц назад

    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.

  • @pierodis
    @pierodis 6 месяцев назад +2

    Hi, I was getting so frustrated, then I found your tutorial. It worked right away. THANK YOU so much!

    • @KeonsLab
      @KeonsLab  6 месяцев назад +2

      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! 💚

    • @janakasilva9207
      @janakasilva9207 4 месяца назад +1

      I had similar frustration i will try it. Only diffrence for me is i did not use capacitor .

    • @janakasilva9207
      @janakasilva9207 4 месяца назад +1

      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 .

    • @KeonsLab
      @KeonsLab  4 месяца назад

      So the capacitor made it work properly right? Or was it the other way around and removing the capacitor made it work?

    • @janakasilva9207
      @janakasilva9207 4 месяца назад

      @@KeonsLab no dear no it did not. I feel it csnnot be connections

  • @rectifyer949
    @rectifyer949 2 месяца назад +1

    Make a video about the ATtiny13a. Looking foward.

    • @KeonsLab
      @KeonsLab  2 месяца назад +1

      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.

  • @JH-uu7jl
    @JH-uu7jl 7 месяцев назад +1

    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.

    • @KeonsLab
      @KeonsLab  6 месяцев назад +1

      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.

  • @redpill7238
    @redpill7238 5 месяцев назад +2

    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.

    • @KeonsLab
      @KeonsLab  5 месяцев назад +2

      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.

    • @redpill7238
      @redpill7238 5 месяцев назад +1

      @@KeonsLab thanks! I will update if i successfuly program the 20SU using your clean method! 👍

    • @KeonsLab
      @KeonsLab  5 месяцев назад +2

      Sounds good, I wish you luck!

    • @redpill7238
      @redpill7238 4 месяца назад +1

      @@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!

    • @KeonsLab
      @KeonsLab  4 месяца назад

      Awesome!!😄

  • @mikebond6328
    @mikebond6328 Месяц назад +1

    Nice. P.S.: That was actually really cool.

  • @valixg7557
    @valixg7557 8 месяцев назад +1

    Nice👍, very interesting.
    Now learned something new, thanks to you.
    Keep doing such interesting videos.

    • @KeonsLab
      @KeonsLab  8 месяцев назад

      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!

  • @pwal8468
    @pwal8468 11 дней назад

    Verey nicely explained. Can I assume this will work with a 3224 also? Thanks, Paul

  • @ysiegel5544
    @ysiegel5544 День назад

    Thanks a ton for this, super useful and interesting.

  • @michaelstraughn3465
    @michaelstraughn3465 2 месяца назад +1

    Great job kid!

    • @KeonsLab
      @KeonsLab  2 месяца назад

      Thanks!!! 😄

  • @LarryFourfingers
    @LarryFourfingers 8 месяцев назад +1

    Thanks buddy, good video 🎉🎉

    • @KeonsLab
      @KeonsLab  8 месяцев назад

      You’re so welcome :)

  • @michaelstraughn3465
    @michaelstraughn3465 2 месяца назад +1

    So 0,1,2 are for programming only? not outputs

    • @KeonsLab
      @KeonsLab  2 месяца назад

      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!

  • @marcodeluca7011
    @marcodeluca7011 6 дней назад

    i can't burn bootloader, any solution that you can suggest?

  • @SamiJumppanen
    @SamiJumppanen 7 месяцев назад +1

    Excellent, thank you!
    Btw 8192 bytes is exactly 8 kB.

  • @sooraj369_9
    @sooraj369_9 6 месяцев назад +1

    Why do we need to insert a 10 uf cap ??

    • @KeonsLab
      @KeonsLab  6 месяцев назад +2

      (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)

  • @janakasilva9207
    @janakasilva9207 4 месяца назад +1

    Hi im getting theerror invalid signature failed to erase chip. Wiring correct.please help.

    • @KeonsLab
      @KeonsLab  4 месяца назад +1

      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.

    • @janakasilva9207
      @janakasilva9207 4 месяца назад

      @@KeonsLab ok

    • @janakasilva9207
      @janakasilva9207 4 месяца назад +1

      Cannot find an email in About section please

    • @janakasilva9207
      @janakasilva9207 4 месяца назад

      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 .

    • @janakasilva9207
      @janakasilva9207 4 месяца назад

      Downloaded library using your link.