Go Down

Topic: 12 LED Charlieplexed Snowfall with AtTiny85 (Read 22489 times) previous topic - next topic

funkyguy4000

Okay, so my suspicions were true. 
Just a side question: what ATtiny package do you use for permanent applications?  Do you use the PDIP, SOIC or the SSOP?
Accelerate to 88 miles per hour.

strykeroz

#31
Jan 16, 2013, 06:46 am Last Edit: Jan 16, 2013, 06:52 am by strykeroz Reason: 1
I still use socketed PDIP and program the uC via a shield using a Uno for my programmer.  I certainly have time up my sleeve to get boards made for this, but the requirement is so simple, and since I have some 1" square perfboards that will do the job splendidly, I doubt I'll bother.

Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

daaf1984

I'm working on a PCB with SOIC and on board programming.

My width is now 12 mm and 29 cm length. I will make 20 of them. ;)

I will post when I finish the drawing.

Dave

strykeroz


I'm working on a PCB with SOIC and on board programming.

My width is now 12 mm and 29 cm length. I will make 20 of them. ;)

I will post when I finish the drawing.

Dave
Hi Dave

That being the case - I might be able to treble your order if that's okay.  I'll PM you, but I can see these being very handy so would be interested in grabbing 40, or at least getting 40 made if you'd prefer not to have to worry about logistics.

Cheers ! Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

daaf1984

Hello All,

I have done the prototype for the snowfall.
I've made a video of it. (at the bottom)
Note that I didn't trim the board to size.

I will also share the Fritzing file with all of you.
It's 2 layers and this is the part list:

• 1 ATTiny 45 @ 8Mhz (SMD SOIC)
• 1 100 nF capacitor (SMD 0805)
• 5 100 Ohm restistors (SMD 0805)
• 20 diffuse cold white LEDs 3mm
• JST-2 connector (optional)

I've broken out the ISP pins to the side of the board, so you clip a programmer clip on, or just solder wires to the pads and (re)program the ATTiny.



Have fun!

Fritzing Files:
Scheme: www.zwavelstokje.nl/Site/diversen/Charlie20SnowzijkantSO08-EIAJ-29cm_schema.jpg

.FZZ file: www.zwavelstokje.nl/Site/diversen/Charlie20SnowzijkantSO08-EIAJ-29cm.fzz

http://www.youtube.com/watch?v=MDtojFW7IK0

funkyguy4000

Ohhh nice!

How long did it take you to make the board and put it together?
Accelerate to 88 miles per hour.

daaf1984


Ohhh nice!

How long did it take you to make the board and put it together?


From scratch: about 2 hours. But it was just to test.
I've ordered 30 PCBs in China today. White mask, black silk. :)

I will post when I have them.

strykeroz

I've been having quite a bit of fun with this ATTiny charlieplexing.  Aside from the KITT Larson scanner thing, most recently have made a little EMF detector (originally showcased here for Arduino)

With apologies for the lame iPad photo quality, here's that one constructed, and another take on the 20 LEDs, arranged in a square which runs a sketch that loops around changing direction every 0.5 to 5sec.

Dave thanks again for the original inspiration.
Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

daaf1984

The PCB's Arrived!

daaf1984

I ran into some difficulties;

I made pads at the side of the board to program them as ISP.
When I designed it, I didn't mention the pitch, so the ended up useless...
Or I should solder 6 wires every time to each board.

So I googled and found this: http://hackaday.com/2010/11/18/build-your-own-soic-progamming-clip/

So, now I've programmed them all before I solder them. Saves me a lot of time.

Later this week I will post the pictures of the results. ;)


Strykeroz, I know this thread is sorta old-ish but I wanted to thank you for your Larson code.  I borrowed it and modified it for a 40-led circuit.
The 40 leds are my cars 3rd taillight.  I will program this to be a normal brakelight but when the car is stopped, they will start scanning back and forth.

Here's a video of my circuit in action.
http://www.youtube.com/watch?v=c_tHc5Vl_Gw

~Mike

strykeroz

Thanks for sharing Mike - that looks great.  Love the soundtrack too.  I'm pretty sure that high level tail light wouldn't pass a roadworthy here - but VERY pleased it's okay somewhere!

I'm overdue for an update here too I guess.  Since last posting I've had two versions of the circuitboard made up at Seeed.  The first was to prove that my new EagleCAD skills actually translated okay to the real world.  When it came back fine I've moved to the smaller 50x31mm board in the DP sick-of-beige PCB size which is far more compact, and I added a footprint for a 2.1mm DC jack sharing the space of one of the two screw terminals.

The idea is these boards will daisy-chain together for power with the end board in a chain having a wall wart plugged in via the 2.1mm jack.  Each is standalone with a diode for polarity protection.  At the bottom are two groups of 0.1mm spaced terminals for the string of LEDs to connect to, via a row of holes for strain relief.  The larger hole at the top centre takes a curtain hook or ring, to hold it to a curtain rail on the inside of a window.

In the attached photos you'll see two of the boards populated along with the front and back view.  In the group shot the board at the upper right is the v0.1 first attempt for scale.

In coming weeks I'm going to make up these first 10 to get a look at how the massed effect appears.  Once that's done I'll be ordering a batch of 50 more in black to complete the job.  I'm not looking forward too much to soldering 1200 white LEDs...but it appears we do suffer for our art  XD

Will post a video of the effect when done,
Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

Coding Badly


Are the PCBs holes for the barrel jack the correct size?  They look huge.  Did you use the Adafruit Eagle library?

strykeroz


Are the PCBs holes for the barrel jack the correct size?  They look huge.  Did you use the Adafruit Eagle library?
They are huge.  That's one of the libraries I have installed so it's quite possible that's where the part came from.  I suspect from your observation that's a known issue?

It did work out okay though.
Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

Coding Badly

I suspect from your observation that's a known issue?


Well, it's known to me.  I have not found anyone else who has had problems.  I did create an issue for it on Github/adafruit.

Quote
It did work out okay though.


Yeah but having it the correct size (probably #) works so much better.  If you want, I can dig up my version which (hopefully #) is correct.


# I have not yet made up boards since correcting the footprint.

Go Up