This weekends links

March 7th, 2010

Rock baby

Rube Goldberg Machine version

Unbelievable plane build and it`s movie

Sound technology, listen to nearby planes pretty cool idea

Old School Electric Boogie

Bristlebot – clean your home

February 26th, 2010

Check out this simple little robot which does nothing else than sweeping the ground beneath: http://www.evilmadscientist.com/article.php/bristlebot

Why not make a larger version and make it clean your crypt?

Computer and Arduino controlled car (1:18)

February 18th, 2010

So I decided to make something with RC-servos using the Arduino board and the sensor shield which I recently purchased.

I went ahead figuring out how to send arrow signals from my computer to Arduino using USB interface.

Using void setup() { Serial.begin(9600); } on Arduino and screen /dev/ttyUSB0 9600 on my computer, I managed to send commands back and forth. I hooked up the standard servo library and write some code before I mounted the Arduino board on my mini rock crawler. I now had a computer controlled car. Because of Arduino`s simple interface I had it all up and running around an hour. Check the small video and code below.

You can view and or use the code as you like below. (Sorry about the indention, Wordpress messes it up).

//
// LIBRARY
//
#include <Servo.h>

//
// OBJ
//
Servo servo1;
Servo servo2;

// VARS
int readByte;
int servo1Angle = 90; //default servo angle
int servo2Angle = 90;

int minPulse = 700; // minimum servo position
int maxPulse = 2300; // maximum servo position

void setup()
{
servo1.attach(2, minPulse, maxPulse); //connect servo
servo2.attach(3, minPulse, maxPulse);

Serial.begin(9600); // start serial
Serial.println(“Ready\n”);
}

void loop()
{
if (Serial.available() > 1) // procced when two bytes is avaiable
{
readByte; = Serial.read(); //read first byte
if (readByte; == 91)
{
readByte; = Serial.read(); //read second byte to determine arrow type
if (readByte; == 65 && servo1Angle <= 180) //UP
{
servo1Angle += 5;
}
else if(readByte; == 66 && servo1Angle >= 0) //DOWN
{
servo1Angle -= 5;
}
else if(readByte; == 67 && servo2Angle <= 180) //RIGHT
{
servo2Angle += 5;
}
else if(readByte; == 68 && servo2Angle >= 0) //LEFT
{
servo2Angle -= 5;
}

}
}
// set servo positions
servo1.write(servo1Angle);
servo2.write(servo2Angle);
delay(15);
}

Med eller uten? (2008-2009)

December 21st, 2009

I år går avogtil.no ut med kampanjen Med eller uten? med budskapet å slå ned på alkoholbruken i juletider. Dette går ut på å få foreldre til å kutte ut alkoholen på julaften til barna sin fordel. Ikke bare foreldre, men alle voksne som feirer sammen med barn.

Hvorfor?
Når du drikker «for mye» vil oppførselen forandre seg. Bare det at du er klar over at du inntar alkohol er med på å forandre oppførselen din. Foresatte har i de fleste oppvekster tjent trygghetsfølelsen hos barnet i begynnelsen og er barnet sitt trygghetssted. Det har du kanskje merket ved at ungen din gjemmer seg bak deg eller søker beskyttelse i dine armer.

Hvis et barn merker at oppførselen din forandrer seg vil barnetets trygghetsfølelse briste eller forsvinne uten å si noe sikkert uten personlig erfaring. Dette er noe som kanskje blir bygget opp igjen da barnet ikke forstår hvorfor du plutslig ble en annen person.

Mulig jeg overdriver, men hva gjør vi vel ikke for fremtiden?

Ha en ellers god og avholdsfri jul.

Chromium, open Spotify links in Gnome

December 13th, 2009

Did you ever get a link like http://open.spotify.com/track/1QdXJ6TDYOT7sZyq7WCHhk, but were unable to open it easy? try following:

gconftool-2 --set --type=string /desktop/gnome/url-handlers/spotify/command 'wine "C:\Program Files\Spotify\spotify.exe" /uri "%s"'
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/spotify/enabled true
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/spotify/need-terminal false

Re wounding a brush less mini motor

November 27th, 2009

After running this motor to hard outside, I managed to burn the motor. You can see pictures of the “burnt” motor in the gallery below.

First of all I opened the motor to take a look noticing protective isolation layer on the copper were melted. Not so strange, because when I approaced the motor after the plane fell from the sky, it was insane hot.

Before removing all wire I measured the wire diameter to 0,30mm. I found this king of wire inside very small tranformators in a computer power supply.

By using this picutre, found on this page. I was able to re wound the motor.

I actually did wound all the poles at the same time, well, one by one, but all three wires were in use, if you follow.

After finish wounding I had to connect wires together to make only three wires, brush less motor has three out wires.

Since it`s a pretty fast motor I made a delta hookup, but I did a mistake at first. This motor should have around 195mOhm per 14-turn, maybe I did not mention it is a 14-turn motor. Which means each pole (there are nine here) needs 14 turns of isolated copper wire and in a small motor like this one, it`s not that easy. Anyway, by hooking up wrong end`s I broke a ESC of mine ($10) so I had to buy another one.

The motor works just great now and I might add a video later.

Gallery

Fixing brushless motor

A Clik is born

November 25th, 2009

After my first self builded depron was basically a failure, I removed all electronics and carbon from it and threw it away. Electronics on the plane were in good shape so I had to make another one. I have a Blade EPP before, but having two planes in the field is neat when one plane is down and gluing.

The plane is built as light as possible and will probably land around 150g. More information will be available when finished.

Pictures from the build can be viewed here.

A Clik is born

A movie will be available later.

Installing Frets On Fire on Ubuntu by making .deb package

November 8th, 2009

sudo apt-get install dh-make
mkdir fretsonfire-1.3.110
cd fretsonfire-1.3.110
dh_make -s -n
cd debian
rm *.ex *.EX
mkdir fretsonfire
mkdir fretsonfire/usr
mkdir fretsonfire/usr/share

Now download the game
wget http://downloads.sourceforge.net/fretsonfire/FretsOnFire-1.3.110.tar.gz?use_mirror=osdn
tar zxf FretsOnFire-1.3.110.tar.gz
mv Frets\ on\ Fire-1.3.110/ fretsonfire/usr/share/fretsonfire
rm -rf Frets\ on\ Fire-1.3.110/ FretsOnFire-1.3.110.tar.gz

mkdir fretsonfire/DEBIAN
pico control

Make sure it look something like this
Source: fretsonfire
Priority: optional
Section: universe/games
Maintainer: yourname
Homepage: http://fretsonfire.sourceforge.net/
Package: fretsonfire
Architecture: all
Version: 1.3.110
Depends: python-pygame, python-opengl, python-numpy
Description: Open source guitar game

cp control fretsonfire/DEBIAN/
mkdir fretsonfire/usr/bin
echo -e "#\!/bin/dash\ncd /usr/share/fretsonfire/src/\npython FretsOnFire.py" > fretsonfire/usr/bin/fretsonfire
chmod +x fretsonfire/usr/bin/fretsonfire
mkdir fretsonfire/usr/share/pixmaps

# if the following image does not exist, find another one through google
wget http://www.freedownloadsplace.com/photo/Frets-on-Fire-1.png -O fretsonfire/usr/share/pixmaps/fretsonfire.png
mkdir fretsonfire/usr/share/applications
pico fretsonfire/usr/share/applications/fretsonfire.desktop

Overwrite with this text
[Desktop Entry]
Version=1.3.110
Type=Application
Name=Frets On Fire
Comment=A opensourced guitar game
Icon=fretsonfire
Exec=fretsonfire
Terminal=false
Categories=Game;ArcadeGame;

cd ..
dh_builddeb
cd ..
dpkg -i fretsonfire_1.3.110_all.deb

Ubuntu network install (PXE)

October 25th, 2009

sudo apt-get install tftpd-hpa tftp-hpa xinetd dhcp3-server
sudo pico /etc/xinetd.d/tftp

Then write following

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /var/lib/tftpboot
disable = no
}

Edit TFTP config
sudo pico /etc/default/tftpd-hpa

Make it look something like

#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"

Create TFTP directory and get latest netboot image

sudo mkdir /var/lib/tftpboot
cd /var/lib/tftpboot
sudo wget -np -r http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/
sudo mv archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/* .
sudo rm -rf archive.ubuntu.com

Now restart TFTPD
sudo /etc/init.d/tftpd-hpa restart

To check if running@
netstat -uap

For DHCP, make sure you have a fixed ip for your device
pico /etc/dhcp3/dhcpd.conf

I did use firestarter as a DHCP generator since I used my desktop as PXE-server.


# DHCP configuration generated by Firestarter
ddns-update-style interim;
ignore client-updates;
authoritative;

subnet 192.168.66.0 netmask 255.255.255.0 {
option routers 192.168.66.9;
option subnet-mask 255.255.255.0;
option domain-name-servers 130.67.60.68, 193.213.112.4;
option ip-forwarding off;
range dynamic-bootp 192.168.66.10 192.168.66.20;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.66.9; # important for PXE
filename "pxelinux.0"; # important for PXE
}

After the DHCP change we must restart DHCP
sudo /etc/init.d/dhcp3 restart

You should now be able to boot PXE of this machine.

450-size Comanche RAH-66 project

October 18th, 2009

Here is another project with it`s story for you.

I`we flown RC helicopters for around three years now and only electric. We all know batteries tend to get worn out, which is what who has happened to many of my batteries. They don`t have the same punch as they had, which is essential for good 3D flying. Even tho they are bad for 3D they can still be used for low-amps applications, such as scale flying.

Therefore I`we decided to get myself an scale body for one of my Align T-rex 450 helis, the oldest in fact. At first I bought a Airwolf body, but I didn`t really want an Airwolf and it did miss the tail with retracts. Comanche on the other hand has always impressed me, being «the best» helicopter around with a very long development period.

The build process started by figuring out what scale the heli would become for a T-rex 450. If I recall correctly the 450 has a blade with of 70cm and RAH-66 has 11,9meters. This results in a scale of 1:17. From here I calculate 1:17 length of 13.20m (without gun barrel).

There are very few good pictures of this helicopter from all angles on the internet, but I were able to calculate the tail to be tilted 15 degrees. I also had to do allot of testing of bottom plate and the lower sides to make it scale looking. After the bottom was finish I used a paper-piece and draw the upper body. After I cutting the paper piece out it was easy to make a similar in 6mm depron.

Images

Comanche RAH-66

First video