The ultimate way to program a microcontroller! - High-Voltage/Parallel ATmega Programming

Поділитися
Вставка
  • Опубліковано 15 тра 2024
  • Learn how to recover the full potential of your AVR by manipulating the fuse bits and salvaging 'bricked' chips. Plus, I'll do a step-by-step demonstration to guide you through the setup of your own parallel programming system.
    -- Links --
    My Website: sinelab.net
    Code: sinelab.net/code/parallel_pro...
    Schematic: sinelab.net/pdf/parallel_prog...
    Buy me a coffee: www.buymeacoffee.com/thesinelab
    Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
    Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f
    --
  • Наука та технологія

КОМЕНТАРІ • 43

  • @olegb155
    @olegb155 26 днів тому

    Thank you very much! With this technique I managed to revive 4 of 5 atmega88s bought on aliexpress. Absolutely happy now! :)

  • @xzddakfdmiug5832
    @xzddakfdmiug5832 Рік тому +7

    I like how you automated the unlocking process. Adding an LED for success/failure is definitely helpful.

    • @SineLab
      @SineLab  Рік тому +2

      Automation makes everything a whole lot easier.

  • @Psykorr
    @Psykorr 21 день тому

    YES! this is exactly the kind of thing I wanted! Finally. I was getting pretty tired of the whole config-hell and aimless hacking about. Thanks a million!

    • @SineLab
      @SineLab  21 день тому +1

      Glad I could help!

  • @hgbugalou
    @hgbugalou 10 місяців тому +2

    Your channel is criminally undersubscibed . Lots of great info and projects!

    • @SineLab
      @SineLab  9 місяців тому

      Thank you!

  • @YanickT
    @YanickT Рік тому

    I never had a defective atmega, it's always a fuse bit problem. I saved a lot of atmega128 back then and atmega328 now with my stk500 in parallel mode. Sometime it's the isp disabled but can also be the clock became external instead of internal when no external clock is provided. Great Idea to do a device to fix this. Good work.

  • @GregCoonrod
    @GregCoonrod Рік тому

    Great video! I am sure that I will be revisiting it when I eventually brick one of my AVRs :)

    • @SineLab
      @SineLab  Рік тому

      It happens to even the best of us. :)

  • @stefancich
    @stefancich Рік тому

    Great project, I made your programmer, it works perfectly, thanks.

    • @SineLab
      @SineLab  Рік тому

      Thanks, it's good to hear that somebody is getting something from these videos. :)

  • @btg5975
    @btg5975 9 місяців тому

    Good work. Will be very useful. Regards, Engineer from India.

    • @SineLab
      @SineLab  9 місяців тому

      I'm glad you found it helpful!

  • @alicewyan
    @alicewyan 3 місяці тому

    Fuses are such a pain! :) I normally use a TL866II to program these little guys, but I'm not sure if it can do the parallel algorithm

  • @arashabdi4052
    @arashabdi4052 9 місяців тому

    Hi, thank you so much for your helpful tutorial. I have two mega328p, not applicable anymore because of the wrong configuration that I have done. So, I tried to follow your instructions, but it did not help me. indeed, when I try to connect them with avrdude I always get signature 0x0000 which is extremely weird. I hope I can use your guide in this case. Should I forget those or is there any way to rescue them?

    • @SineLab
      @SineLab  9 місяців тому +1

      This video was centered around the mega8A, but the mega328p mostly has the same process? Did you try to reset it by hand, or try the automated method?

    • @arashabdi4052
      @arashabdi4052 9 місяців тому

      Actually no, I will do it and in case of success, I will share it here.

  • @patuxenthistory6410
    @patuxenthistory6410 21 день тому

    The last time I saw a battery like that was more than 50 years ago.

  • @gbulamrasool1610
    @gbulamrasool1610 4 місяці тому

    Excellant❤❤❤❤❤

    • @SineLab
      @SineLab  3 місяці тому

      Thank you!

  • @gio0042
    @gio0042 8 місяців тому

    Oh man i should've gone for a walk or something else instead of playing with those fuse bits... Now my atmega328p is expecting an external clock source.
    Should i attempt this project or is there any simpler way to put together a clock generator or maybe i could use the clock from some other device? If anyone has some suggestions i would greatly appreciate it...

    • @SineLab
      @SineLab  8 місяців тому

      If you're willing to put in the time, this project will let you quickly save yourself anytime you mess up the fuses. It's very convenient and I have used it several times off-camera.
      Otherwise, you can use something like a 555 timer or even another atmega328p as a clock source.

    • @gio0042
      @gio0042 8 місяців тому

      ​@@SineLabhey man, i tried the manual method on a breadboard but the ready led isn't coming on, only the third bit light comes on and as soon as i apply the +12v the led turns off... 100% i must have wired something wrong or i didn't understand the procedure...could you please upload a schematic on your website for the manual method? I'm sorry if i'm asking too much but i have to admit i'm a total noob (as you may have noticed from my screw up), i'm having an hard time following the wiring on the video... I think i shouldn't have killed the chip, i applied the 12v only to the reset line, nothing else.

    • @gio0042
      @gio0042 8 місяців тому

      ​@@SineLabwhoa wait, i poked at the resistor and the led on the ready line and after power up the led came on, i will now try to program it, maybe i can pull this off

    • @gio0042
      @gio0042 8 місяців тому

      @@SineLab nevermind, as soon as i pull down the OE pin to read the first signature bytes, they're wrong...this thing is driving me crazy, i spent the entire evening putting it together

    • @gio0042
      @gio0042 8 місяців тому

      Also on the atmega328 the programming mode sequence is a bit different, i did it like this:
      1. Apply +5v while RESET is tied to ground
      2. Disconnect RESET from ground and connect it to +12v, and the ready led turns on..

  • @giantkherva2141
    @giantkherva2141 10 місяців тому

    If atmega328 mcu lock with lock bits high voltage programmer can reset lock bits without code or programe loosing?

    • @SineLab
      @SineLab  10 місяців тому

      You are forced to erase the program if you reset the lock bits.

    • @giantkherva2141
      @giantkherva2141 10 місяців тому

      @@SineLab without loosing program possible lock bits unlock by high voltage programmer or other device?

    • @giantkherva2141
      @giantkherva2141 10 місяців тому

      Any other way for save program

    • @SineLab
      @SineLab  10 місяців тому

      @@giantkherva2141 There is no official way to recover your program. There are probably other very expensive and difficult methods to recover it. Unless you have a really good reason, it's not worth the effort.

    • @JaenEngineering
      @JaenEngineering 8 місяців тому +1

      This seems more like a "I have a locked mcu with proprietary code on it and I want to steal it" kind of comment.

  • @PainterVierax
    @PainterVierax Рік тому +2

    deleting my comment is not very wise. RescueAVR is a better solution, no need to reinvent the wheel.

    • @atoomnet
      @atoomnet 11 місяців тому +2

      Well... reinventing something is a great way to learn and better understand a subject.

    • @PainterVierax
      @PainterVierax 11 місяців тому +2

      @@atoomnet I don't deny that. Just no need to put that part in an "educational" video.
      Though modifying and contributing to an existing project is a great way to learn as well. Especially when the other HV prog project is way more versatile for the entire range of AVR MCUs.
      The datasheet is useful for programming registers, functions, fuses and be aware of the chip limitations, but reading it just to unbrick some specific chip is a waste of time when automated tools already exists to allow us to restore the usual ISP or JTAG port. And as I said under a previous video we barely even need HV prog to reset external clock settings as some advanced ISP programs also provides a configurable clock signal to feed on the cristal pin.

    • @Psykorr
      @Psykorr 20 днів тому

      ​@@PainterVieraxyou are confusing the invention "the wheel" and one implementation of "the wheel". Using a wheel as an example, a tractor wheel is not a reinvention of the chariot wheel. It is only another implementation of the same principles. Some people, me for example, find this kind of demonstration of the principles of "the wheel" extremely useful because it enables us to make better decisions when time comes to select a commercial product. I do not really understand why this kind of demonstration provokes a lot of people, if you have a better solution that you prefer then fine go and use it, why even watch this video then?

    • @PainterVierax
      @PainterVierax 20 днів тому

      ​@@Psykorr I'm not. As I said, I had a more elaborated comment.