• Blog
  • LDS
    • Canada
    • Japan
    • U.K.
    • U.S.
    • World
    • Politicians
  • Site
    • About
    • Archive
    • Best of Rickety
    • Comments Policy
    • Copyright
    • FAQ
    • Feedback
    • Guests
    • Privacy Policy
    • Technical
    • Why Blog?
  • Sundry
    • Comics
    • HyperCheese Help
    • JFHE
    • Projects
      • Book of Mormon
    • Wishful Thinking

Rickety

Mostly about Utah

  • Family
    • Jill
    • Rick
    • Children
      • Daniel
      • Jake
      • Paul
      • Sarah
      • Steven
    • Children’s Spouses
      • Adelaide
      • Derek
      • Megan
      • Rachel
      • Shelese
    • Grandchildren
      • Aurora
      • Benjamin
      • Bryson
      • Caleb
      • Calvin
      • Cassandra
      • Elizabeth
      • Ezra
      • Helen
      • Jameson
      • Ryan
      • Sadie
  • Finance
    • Bank Rewards Checking
    • Credit Union Rewards Checking
    • Debt
    • Employment
    • Money
    • Rewards Checking Posts
  • Government
    • City
    • Elections
    • Federal
    • Military
    • Paul on Politics
    • Politics
    • States
    • Taxes
  • Recreation
    • Competition
    • Food
    • Fun in Utah
    • Games
    • Music
    • Parade
    • Sports
    • Travel
  • Religion
    • Christmas
    • Family History
    • Jesus Christ
    • LDS
    • Marriage
    • Missionary
    • On Religion
    • Preparedness
    • Scriptures
    • Temple
  • Series
    • 100 Years Ago
    • Christmas Letter
    • Epic Excerpts
    • On Religion
    • Past Pictures
    • Daniel’s Mission
    • Jake’s Mission
    • Paul’s Mission
  • Technology
    • Applications
    • Blogging
    • Communication
    • Computer
    • Energy
    • Environment
    • How To
    • Photography
    • Population
    • Transportation

Arduino AVR High-Voltage Serial Programmer

March 19, 2010 by paul w 115 Comments

My son Paul is the author of this guest post.

This Arduino sketch is useful for rescuing ATtiny microcontrollers rendered useless by incorrect fuse settings. It does this by putting the bricked tiny into high-voltage serial programming mode and writing the fuses to safe values.

Connection Diagram

Diagram

Click to enlarge

The Arduino is connected to the tiny though 1k resistors and a 2N3904 transistor is used to switch 12 volts applied to the tiny’s reset pin. After uploading the sketch the Arduino sends “Enter a character to continue.” repeatedly until communications are established by sending a byte through the serial monitor. The Arduino then programs the fuses.

Serial Monitor log

Enter a character to continue.

Enter a character to continue.

Enter a character to continue.

1

Entering programming Mode

lfuse reads as 62

hfuse reads as 5F

efuse reads as FF

Writing hfuse

Writing lfuse

lfuse reads as 62

hfuse reads as DF

efuse reads as FF

Exiting programming Mode

Download the program: hv_serial_prog.pde

Based on work by Jeff Keyzer.

Let me know if it works for you.

Filed Under: How To Tagged With: ATtiny, Bricked

Recent Comments

  • Anonymous on One Hundred Thousand Milpengo
  • Jeremy McMullin on Mesa Easter Pageant – Jesus The Christ
  • Genma Vincent on George W Bush on Religion
  • Anonymous on The Twelve Stones of The Apocalypse
  • Judy Crowe on Ten Artists Paint Old Testament Women
  • Angela on The Twelve Stones of The Apocalypse
  • Angela on The Twelve Stones of The Apocalypse
  • AllHailKingJesus on The Twelve Stones of The Apocalypse
  • Microwave guy on Make a Halloween Costume from a Microwave Oven
  • Anonymous on Arduino AVR High-Voltage Serial Programmer

Who is this Rickety?

Rick at homeI'm Rick Willoughby. I live in Utah, a retired Software Engineer. I'm a Mormon, married with 5 children and 12 grandchildren.

I emigrated from England in my late twenties, bringing with me one small suitcase and a few dollars. I appreciate the opportunities America has given me and the friendliness of the people to new citizens.

I blog about my family as well as politics, religion, finance, technology, and other topics.

Copyright © 2025 · Lifestyle Pro Theme on Genesis Framework · WordPress · Log in