So I'm getting married in the not too distant future and the imminently Mrs Badger wants some flashy LEDs for the castle courtyard (yes, we are nerding out and getting married in an awesome 700yr old Scottish Castle.... Resisting the urge to buy a sword..)
we want a load of glass jars scattered around the place with gently changing coloured lights in them, plus we have a few other ideas up our collective sleeves. For this I'm designing a very small pcb which will contain a rgb led, microcontroller and a boost circuit. Cost is the most critical component as we want to build a lot of them. It will also need to run all day from a AAA battery.
* Very small PCB, preferably 1.5cm x 1.5cm or smaller, I chose this size as if I panalize them, I can get 9 out of a 5cm x 5cm pcb, so from somewhere like Seeedstudio, I could get 90 for $17 including shipping! Which is rediculous.
* Single RGB led.
* Small and cheap PIC processor, I like PICs...
* Cheap boost convertor, so it can be run from a single alkaline cell.
* Pushbutton power switch, I've a nice little circuit for this that I developed a few years ago, allowing power on/off and a general user switch from a single input pin and a tiny SMD pushbutton.
* I2C interface to allow the circuit to be used for other stuff, essentially giving me a serial RGB led. I know Neopixels are out there and are rather nice, but this will have the advantage of having the controller onboard.
Chosen Parts
* For the LED, I'm going to go with this, Its nice and bright and cheap enough.
* For the processor, I'm going with the PIC12LF1552, this is a nice little 8pin beasty, only 42p in 25 qtys, has an 16MHz internal oscillator, a mighty 2k of program FLASH ( should be enough for a flashy light) and a I2C Master port.
* The boost convertor is the Microchip MCP1640. This is a nice little(6 Pin SOT23) package, is cheap, 32p in 10 qtys, can start from 0.65V and can work down to 0.35V, admittedly at low current. It can also deliver more than enough current to drive a LED.
Other Considerations
My first draft of the circuit, shown in the gallery, had the TAG programming connector and also a 4pin 2.54mm pitch header connector, which supplies power and also the I2C connection. I realised that I was using 2 out of the 3 programming pins for the I2C link, so have decided to redo the PCB, getting rid of the TAG connector and using a 5 pin header, this will have GND, VCC and the 3 programming pins, after which it can be used for I2C if needed. This frees up quite a bit of board space and simplifies the routing.
As the programming pins don't like other components connected when programming is underway, I will have to add a couple of parts afterwards, this is a little awkward, but as its not a complex project, will be managable.
I have gotten a lot out of the project, and I appreciate it very much. To read it and put something fresh into practise, I'd like to share it with the wedding sparklers crew.
There has been a great deal of value to me in my involvement with the project. Would like to share it with the Wedding Consultant Mexico team so they can also read it and implement something new.
Just a friendly reminder to please upload your complete design documents by 23:59 UTC on Dec 8, 2015 to be in the running for #The Square Inch Project!
It was a tough decision, but we reluctantly decided going full medieval may be a little bit tacky. I know I know.... Plus pointy object, lots of booze, cant be a good mix. I'd give it an hour before going full Errol Flynn.....
I have gotten a lot out of the project, and I appreciate it very much. To read it and put something fresh into practise, I'd like to share it with the wedding sparklers crew.