Close

Frustration

A project log for ATTINY13 Pong

Ultra small pong game on an ATTINY13.

ivoidwarrantiesI_void(warranties) 09/02/2024 at 22:350 Comments

Well I was making great progress.  I switched displays and got most of coding done this morning.  I'll leave log of the code and where i was at.  Its needs so major cleaning up of various functions and old comments and just randomness that was never meant for someone other than me to see.  As of this morning the only sections left to code where the right paddle movement and scoring.  I was working on getting a potientometer for the paddles so I could get away with only using two pins for the paddles along with 2 pins for the sda and scl lines for the display.  I was running into problems with this because of a noisy breadboard and too small of a screen to making an accurate position of the paddles. The paddles jumped around the screen and failed to respond.  So i switched to a set of 4 switches.  But last night I was having problems with the right paddle function interferring with the reset pin, putting the whole program into a reset.   So thats when I decided to start today off with converting the switches back to potientometers.  However I would center the paddle at the start and the if the ADC values were under 512, it would inch the paddle down or over 512, inch the paddle up.  I think i got the left one to work until everything went up in smoke.  

When i started this morning, everything on the screen was moving alot faster than it was last night.  Making sure the fuses were set correct, I went to write the clock cycle,  clicking CKSEL fuse 0, but meant to select CKSEL 1 and accidently wrote both fuses to zero for an external clock effectively bricking my last attiny13 i have on hand.  So i spent was should have been a finishing up day into also bricking (I think) my programmer when i tried to make a High Voltage programmer, searching every last box for a crystal oscillator and basically pulling out my hair trying to find some way to reset my attiny and even if i could, fix the programmer that very well may have had a short overvoltage or current, making it useless.  I tried to use other microcontrollers to see if the programmer works but to little luck.  

So now I plan to switching to a 12f683 microchip and seeing if i can convert the whole thing over to that microcontroller since I wouldn't have new attiny's or a programmer with enough time to complete the game before the sept. 10th deadline. 

Discussions