Babygnusbuino-v2: Difference between revisions
| Line 22: | Line 22: | ||
Unfortunately, because of the architecture of the ATTINY85, it is | Unfortunately, because of the architecture of the ATTINY85, it is | ||
* Download the avrdude source files from | * Download the avrdude source files from http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0rc1.tar.gz | ||
* replace the file usbasp.c by the one in hardware/baygnusbuino/patch | |||
Then | |||
===On Mac=== | |||
./configure | |||
make | |||
rename old avrdude | |||
mv /Applications/ | |||
===On Ubuntu=== | ===On Ubuntu=== | ||
| Line 31: | Line 43: | ||
make | make | ||
mv path-to-arduino/hardware/tools | |||
replace the avrdude.conf file ! | |||
I also had to correct permissions for libusb. Not sure this is the right way, but anyway: | |||
sudo gedit /lib/udev/rules.d/50-udev-default.rules | |||
change | |||
# 'libusb' device nodes | |||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" | |||
to | |||
# 'libusb' device nodes | |||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666" | |||
see http://unix.stackexchange.com/questions/44308/understanding-udev-rules-and-permissions-in-libusb | |||
==Compatibility== | ==Compatibility== | ||
Revision as of 18:57, 12 May 2013
A word of warning
This is minimalist hardware with no safety features whatsoever.
Inserting a Babygnusbuino in your computers USB port exposes its electrical components to the outside world - this is the equivalent of running around with a double edged sword IN YOUR MOUTH: it's fun and exciting but you better not trip over… Take special care with external power sources - you can easily fry your computers USB port and ALL the devices (webcams, mice etc..) connected to the same port.
You've been warned.
Getting the files
You can either download the two folders and add their contents to the corresponding folders in your Arduino working directory, or you can pull the latest version directly through svn.
cd "the/path/to/Arduino/" (for me on a Mac it is cd ~/Documents/Arduino and on Ubuntu it is ~/sketchbook ) git clone https://github.com/mirdej/babygnusbuino.git hardware/babygnusbuino git clone https://github.com/mirdej/GnusbuinoMIDI.git libraries/GnusbuinoMIDI
later on, you can always update to the latest version by typing
git pull
Patching avrdude
The Babygnusbuino has a bootloader and can thus be reprogrammed directly via USB, without the need for a AVR ISP programmer. Unfortunately, because of the architecture of the ATTINY85, it is
- Download the avrdude source files from http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0rc1.tar.gz
- replace the file usbasp.c by the one in hardware/baygnusbuino/patch
Then
On Mac
./configure make
rename old avrdude
mv /Applications/
On Ubuntu
sudo apt-get install bison sudo apt-get install flex sudo apt-get install libusb-dev ./configure make
mv path-to-arduino/hardware/tools
replace the avrdude.conf file !
I also had to correct permissions for libusb. Not sure this is the right way, but anyway:
sudo gedit /lib/udev/rules.d/50-udev-default.rules
change
# 'libusb' device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
to
# 'libusb' device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
see http://unix.stackexchange.com/questions/44308/understanding-udev-rules-and-permissions-in-libusb