๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday October 14, 2019 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday October 11 will go out Tuesday October 15 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

Stealth USB Capslocker / PLL/1k clock source fuse???
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Stealth USB Capslocker / PLL/1k clock source fuse???

by keen101 on Wed Apr 23, 2008 9:22 pm

OK, to begin, I have made the USBtiny programmer, and a tvbgone from the kits.

Currently I have been trying to make a DIP version of the USB capslocker prank from the following link:

http://macetech.com/blog/?q=node/46

I have successfully made the circuit, bought and programmed an ATTINY85-20PU, but I do not know how to set the "fuse for PLL/1k clock source" with avrdude.

I've tried using the fuse calculator, and tried the following commands:

-U lfuse:w:0x41:m
-U hfuse:w:0xDF:m
-U efuse:w:0xFF:m

But, my circuit seems to still be running too fast.

Does anyone know how to set the PLL/1k clock source with avrdude?
keen101
 
Posts: 34
Joined: Wed Apr 23, 2008 8:51 pm
Location: Colorado

by magician13134 on Wed Apr 23, 2008 10:15 pm

Can I see a copy of your circuit layout, I am still struggling with mine. This thread should have all the necessary info for you:
http://www.ladyada.net/forums/viewtopic.php?t=5574
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

Thanks

by keen101 on Wed Apr 23, 2008 11:57 pm

Thanks. That really helped a lot. I got it working now!!!

although, I did follow the advice someone called "JT" game me too....

he said, "Submitted by JT (not verified) on Wed, 04/09/2008 - 18:24.

Hi Andrew
Get the Tiny85 chips as there's more RAM & EPROM to run your other programs... and probably don't cost too much more than the Tiny45, and are otherwise the same. The DIP8 is still fairly small and good to start off with. About the Fuses... not too tricky to but depends on your programmer software. I am familiar with Bascom-AVR Demo can be downloaded from http://www.mcselec.com which has easily selectable fuse options from drop-down lists. For this application you need to enable the PLL clock source, and disable the "Clock Division by 8". These are not the default options programmed into the chips as shipped."

anyway... I figured out the fuses. The correct values are:

avrdude -c usbtiny -p t85 -U lfuse:w:0xc1:m -U hfuse:w:0xDF:m -U efuse:w:0xFF:m



http://palmavr.sourceforge.net/cgi-bin/ ... +fuse+bits

But, I think I will try downloading the latest code... since this older one is not random enough for me. The website says he has updated the code a little. Maybe I will try compiling my own too some time.

p.s.: I will try and post some pics of my circuit when i can get a hold of my friends digital camera.
keen101
 
Posts: 34
Joined: Wed Apr 23, 2008 8:51 pm
Location: Colorado

by magician13134 on Thu Apr 24, 2008 6:29 am

Cool, but do you actually have the original Eagle files, so I'll be able to make one using that? I was having some major problems with keeping the USB lines straight when I made the 45/85 through hole
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by keen101 on Thu May 01, 2008 12:01 am

Umm... I did not use a PCB.

I just made it on a piece of proto board or whatever it's called.

...and I haven't been able to take a picture yet.
keen101
 
Posts: 34
Joined: Wed Apr 23, 2008 8:51 pm
Location: Colorado

by magician13134 on Thu May 01, 2008 10:28 pm

Oh, I see. That's cool. I got some surface mount samples, maybe I'll give it another shot with those
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by magician13134 on Mon Jun 30, 2008 10:15 pm

Did yours work? I've been trying, but I haven't been able to get it working...
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by uberscientist on Wed Jul 02, 2008 10:53 pm

Wow, I just put together an SMD version of the capslocker, and my mind forgot about the part where he talks about the fuses, I was just super happy when the hex file wiggled its way onto the chip.

SO... I guess I need to solder some kynar wire to the little baby again and hold them in the ISP header in awkward positions while I set the fuses? Bah, maybe I should make a jig that fits over the PCB.

Does anyone know of a SOIC8 to DIP8 adapter (no solder of course)? That would be useful.
uberscientist
 
Posts: 57
Joined: Wed Jul 02, 2008 10:49 pm

by uberscientist on Mon Jul 07, 2008 1:32 pm

Alright, first off, thank you keen101 for figuring out the right avrdude command to set the fuses, it worked great! Just have to make sure you have the -p set right, I had to change it back to t45.

Image

I think I'm going to try and sell this one on ebay: http://cgi.ebay.com/ws/eBayISAPI.dll?Vi ... 0262464328

... so I can afford a SOIC to DIP adapter lol, they are expensive... cheapest one I could find was $17!!
uberscientist
 
Posts: 57
Joined: Wed Jul 02, 2008 10:49 pm

Please be positive and constructive with your questions and comments.