Latest Entries »

AVRISP

Installing bootloader on ATMEGA328P

001

002

003

P1020293

004

LED status while writing bootloader

Advertisements

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 https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -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 http://raspi.tv/2012/how-to-fix-a-broken-sd-card-slot-on-your-raspberry-pi. This is good solution if you want to fix it rather quick.

 

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

P1020439

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.

P1020443

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…)

 

P1020447

 

P1020460

…and soldering the salvaged socket.

P1020463

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"

to

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
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:

atmegaXXX_XX.build.variant=arduino:standard

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

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=arduino:standard

bare ATMEGA328P

 

 

Arduino ISP

P1020293

P1020297

P1020299

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

arduino-as-isp

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.
P1020260

P1020253

P1020255P1020336

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:

http://www.ftdichip.com/Drivers/VCP.htm

 

Wohoo! stalker and uno talking to each otherI got the communication up and running.

receiving timestamp, temperature and humidity