Latest Entries »



Installing bootloader on ATMEGA328P






LED status while writing bootloader

RBBB & EtherCard

Direct connect between RBBB and EtherCard:

RBBB >>> EtherCard
D13  >>> SCK
D12  >>> MISO
D11  >>> MOSI
D8   >>> B0
RST  >>> RST
PWR  >>> PWR
GND  >>> GND

To get rid of the crackle when starting audio, follow the steps below:

~$ sudo apt-get update
~$ sudo apt-get upgrade

~$ sudo apt-get install git-core
~$ sudo wget -O /usr/bin/rpi-update
~$ sudo chmod +x /usr/bin/rpi-update

~$ sudo cp /boot/start.elf /boot/start.elf.knowngood

~$ sudo rpi-update
~$ sudo reboot

Ah well, sooner or later it brakes! I guess there are dozens of Pies with broken SD card sockets since it is known to be a weak spot…

The first attempt was to fix it as shown on This is good solution if you want to fix it rather quick.


A more durable repair is to replace the broken SD card socket.


Get rid of the broken socket. Unless you have a desoldering station, it’s best to cut the pins with a cutting plier before unsoldering the socket from the Pi.


A single spare socket – in most cases – is more expensive than a complete USB-to-SD-Adapter … weird… (don’t cut the pins this time…)





…and soldering the salvaged socket.


The Pi is working again! (Just in case you wonder about the piggyback… this is an arduino :))

If you get “error: WProgram.h: No such file or directory” while compiling, make sure to change

#include "WProgram.h"


#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#include "WProgram.h"
in the header files of included libraries.

If you are using “custom hardware” like having a naked 328p on a breadboard and you get an error like “pins_arduino.h: No such file or directory” when trying to compile, just add the following line to the relevant boards.txt:

The complete block in your boards.txt could look like this:

bare ATMEGA328P



Arduino ISP




socket pin 01 to arduino digital 10
socket pin 07 to arduino +5V
socket pin 08 to arduino GND
socket pin 09 to arduino digital 09
socket pin 17 to arduino digital 11
socket pin 18 to arduino digital 12
socket pin 19 to arduino digital 13
socket pin 20 to arduino +5V
socket pin 22 to arduino GND


iPhone charging

Charging an iPhone at 500mA needs +2V between D+/D- and GND. This tiny handicraft work takes 6V to 23V as input and drops it to 5V. It uses a Hobbyking HKU3 UBEC for the step-down conversion and some resistors for the voltage devider on the data lines.



The final setup sealed with epoxy inside a film container


Using the most recent Arduino IDE 1.0.2 one has to setup the following to get the Jeenode v5 working:

As board select: “Arduino Duemilanove w/ ATmega328”

For the Serial Monitor choose: 57600 baud

To get the FTDI Basic USB to Serial Adapter working on Win7 have a look here: