Arduino

From: Chris (CHRISSS)27 Jan 2015 13:44
To: ANT_THOMAS 252 of 542
No problem. I was surprised how high the frequency had to go to not notice any flicker at all.

I waved my little strip around (YJ) and took a picture of it.
From: Chris (CHRISSS)27 Jan 2015 18:47
To: ALL253 of 542
I've just installed the Android Arduino IDE. Maybe not a good idea, I'll never get anything done if I can work on projects with my phone. Uploaded the blink sketch to my Uno and it worked perfectly.
From: ANT_THOMAS27 Jan 2015 19:43
To: ALL254 of 542
Shift registers and power supply have arrived so I'll be figuring them out tonight.
From: koswix27 Jan 2015 21:42
To: ALL255 of 542
Floppy Organ now makes recognisable notes!

Learnt how to use interrupts tonight. Quite pleased with the progress, even though there's a lot still to do.
Floppy Organ stage 3: http://youtu.be/obYuROTBXu8
From: koswix27 Jan 2015 21:46
To: ANT_THOMAS 256 of 542
Saw some PCBs that a guy had made today by seeed, they looked pretty nice.
http://www.seeedstudio.com/blog/2011/05/04/fusion-pcb-service-upgraded-with-even-lower-pricing/
From: Chris (CHRISSS)27 Jan 2015 22:27
To: ANT_THOMAS 257 of 542
How do PWM outputs work with a shift register? Anything special needed for that?
From: ANT_THOMAS27 Jan 2015 22:27
To: koswix 258 of 542
Whilst you have to order a minimum of 5 them prices are actually fairly reasonable.
From: ANT_THOMAS27 Jan 2015 22:32
To: Chris (CHRISSS) 259 of 542
I'm using the ShiftPWM library and they seem to work really nicely.

Any flickering has totally gone now I'm using the shift registers. Still figuring out how to use 2 daisy chained together properly.

I was easily able to convert my existing sketch to make use of the shift registers.

rather than:

analogWrite(ledPin1,255);

it is just:

ShiftPWM.SetOne(1, 255);

with the 1 being pin 1 on the shift register. Then you just cycle/loop like any other PWM loop example.
From: koswix27 Jan 2015 22:32
To: ANT_THOMAS 260 of 542
Think he said he paid £10 for ten boards. Pretty small boards, but still.
From: ANT_THOMAS27 Jan 2015 22:39
To: koswix 261 of 542
It looks like about 70 USD for 5 15x20cm boards which is fairly reasonable.

I probably won't need a board that size once I actually draw out the circuits properly.
From: koswix27 Jan 2015 23:10
To: ANT_THOMAS 262 of 542
I've been trying to get my head round Eagle CAD (Jim lent me a copy of the pro version). Takes some getting used to, but a few youtube videos definitely helped.

I'm going to give the laser transfer/etching method a go once I've finished designing the board. The board's not very complicated, just a bunch of floppy drive sockets routed to a pin header to make my floppy organ (it's cold outside, John) a bit more organised and less prone to random braking.
From: ANT_THOMAS27 Jan 2015 23:15
To: koswix 263 of 542
I think if I design mine well and I don't just have the screw connectors down one side, instead having them spread across 2 or 3 sides I could probably get it down to 10cm x 10cm which is only $18.90 for 5. Assuming that leaves enough space for 20 to 24 transistors.
From: ANT_THOMAS27 Jan 2015 23:23
To: ALL264 of 542
There we go, very simple test.

4 LEDs addressed from one shift register, 4 LEDs addressed from the other.

From: Chris (CHRISSS)27 Jan 2015 23:45
To: ANT_THOMAS 265 of 542
I wonder of that will work with the PWM frequency library.

Is it the power supply (if you're using it) that has fixed the flickering?
From: Chris (CHRISSS)27 Jan 2015 23:46
To: koswix 266 of 542
:) Can you make it play a song?
From: Chris (CHRISSS)27 Jan 2015 23:47
To: koswix 267 of 542
Nooo. Really no. Don't make me want to spend even more money designing my own PCBs as well. Yes, I'd love to. I've already spent too much. Lots of little spends adds up.

Do all 5/10/whatever boards need to be the same?
From: ANT_THOMAS27 Jan 2015 23:59
To: Chris (CHRISSS) 268 of 542
ShiftPWM allows you to choose the PWM frequency so the other library isn't needed.

It seems anything over "75" stops any flickering. I had it at 150.

I'll try 3 shift registers tomorrow.
From: koswix28 Jan 2015 00:20
To: Chris (CHRISSS) 269 of 542
Currently yes, but I'd have to hand code it and I think I'd go insane. Next job is improving the software. A lot.
From: Chris (CHRISSS)28 Jan 2015 01:08
To: koswix 270 of 542
I can wait til the software is better. Can you play the theme from Project X on the Amiga?
From: Chris (CHRISSS)28 Jan 2015 01:14
To: ANT_THOMAS 271 of 542
Aha. Handy. Is 150Hz enough with them dimmed? Think it's more noticeable in a dark room too. Lots of useful libraries for the Arduino.

I'm still waiting for my two Nanos. I have a USBASP programmer which I'll use with my Pro Mini for now. Also waiting for a FTDI adapter which will be an easier connection than the USBASP. Gonna have a play with the nRF24L01 transceivers. Did you add a capacitor to the power connections on yours?