The LED driver works!

I found the remaining inductor and soldered it onto the board. And I also added the connector, connected it to a LED and a power supply and switched on. And see! It works! Without any fiddling or whatever :)

And immediately I had to play around with it and combine it with a PIR sensor. The nice thing is that the circuits are almost fully compatible. The ouput of the HC-SR501 can be directly connected to the PWM input of the LED driver. And both run on the 12V power supply. Unfortunately the PIR will only work up to 20V so my planned 24V will be a bit too much for it.

Panelize: The Result

Today I got my PCBs:

They look very nice :) Except that the mounting hole has not been drilled, very clever ;) Have to find out what went wrong, but I guess I forgot to include the NPTH drill file. Who cares, maybe I’m going to cut away the last centimeter of the board anyway.

Here is one cut away and almost fully assembled:

I hope the PT survived the soldering torture. Hand soldering these is not so easy because they should have solder below them to make better thermal contact. I’ll find out if it works as soon as i found out where my inductors are hiding…

Adressable SPI

Sometimes I wish that SPI slaves have an address similar to I2C devices. Then I could connect all SPI devices to the same 4 lines: SCK, MOSI, MISO and SS. This would save all but one salve select lines. Pull SS low, send address, the addressed device listens and enables its MISO, the rest as usual. When finished talking to the selected device raise SS.

A long time ago I was talking to a friend about this idea, and if it is possible to put this into a GAL. The answer is yes.

Continue reading

FTDI Vinculum II

I think I saw these chips before but today I took a closer look. It’s a very interesting 16bit CPU running at 48MHz (or 12/24 when saving power). This chip (maybe) has 2.5 times the power of an AVR. I like these small DIP boards. The official site contains a lot of information. Unfortunately I haven’t found (yet) any information about the instruction set.

A binutils and gcc port for this chip would be nice. I don’t want to use a strange IDE, especially not on WinDoS.

Panelize Kicad PCB

Edit: panelize.py got a permanent place here.

Making PCBs is fun these days. Years ago I always paid a lot of money and got one single layer PCB without mask or silk screen. Now there are many PCB manufacturers which make prototyping PCBs for reasonable prices. But normally they don’t allow you to make panels (putting multiple circuits on one PCB). At least two manufacturers exist which allow you to create up to 5 panels per PCB: seeedstudio.com and iteadstudio.com (their PCB options look so similar that I think it’s the same manufacturer).

But how do you create the panelized production files?

Doing it by hand is too cumbersome. It could be done with the gerber files. But I chose to write a little python script panelize.py which duplicates the specified parts in a kicad PCB file (.brd). The advantage is that the panelized version is still editable with kicad and I still can run the checks.

Continue reading