I have started using Kicad (again) on Mac OS X and it sort of works. There are some quirks, but nothing major so it looks quite usable.
After drawing the scheme I wanted to place the footprints of elements to PCB and bumped into a problem.
Where are the footprints?
After some googling I found that there should be a list of files in fp-lib-table, but how?
Finally I found the location of the file it’s in home directory under the Library/Preferences/kicad and since you need to add all the footprints by hand – obvious pain I found the script made in shell to create a file automatically.
Since I needed to hack the file and had some troubles with the idea I have decided to create similar thing in Python and here it is.
I hope the code is obvious (added some comments).
Thinking of GUI version, but not sure if there is interest 🙂
After a lot of playing with the above mentioned board I decided to play with accelerometers on the board. Might write about that in one of the next posts, if there will be interest 🙂
Anyway it appeared that variables (even simple integer) are not shown on the LCD. So it took me quite some time, to find where the error lies.
The culprit was missing linker options and I had to add –specs=nano.specs to the line:
And the simple “let’s show a variable” program works:
I am trying to create PCBs using Kicad and since I work more or less just on Mac OS X and try to avoid virtual environment with other OSes.
Anyway I managed to find properly compiled Kicad to work with Yosemite (can’t remember where I found it, but if there is an interest I will be searching for it 🙂 ).
The Kicad produces gerber used in the PCB industries which is all nice and dandy, but I would like to create a PCB by using CNC and for that you need something called isolation milling.
One of the possible solutions (so I have read, since I have to prepare some things to try isolation milling in vivo) is to use pcb2gcode.
I tried to compile it, but no go. Even did all the possible installation things with Homebrew. After a lot of kicking my ass and bending the brain I found the very, very simple solution. You just have to do:
and off you go. Mind you, you need X11 to be installed.
So I was playing with LCD access with using the VX-toolset by Tasking and I have to admit I had a lot of troubles with creating some form of library or something to access LCD in different apps.
So I asked myself: is there an open source way to access the LCD?
And here is the answer:
1. Git clone https://github.com/MaJerle/stm32f429.git in a directory (e.g. /Users/bostjan/peskovnik/arm/stm32f4)
2. Use following makefile:
3. The example of usage is rather simple:
So, just a background change.
And if it doesn’t work (the background doesn’t change) try pressing RESET button – on the board, of course.