Electronic Art


 

I had been wanting to do this for such a long time…

Read more of this post

Self Balancing Robot – V3


Same as the previous post, this is an old project that still doesn’t work properly, but will probably never have the time to fix, so I’ve decided to post the details here, in case I need to refer to them later.

Read more of this post

Self Balancing Robot – V2


DSC06380

This is a quick post to dump some pictures and lessons learneth the hard way, when I tried to build a nicer / better self balancing robot.

All this dates back from October 2014, so more than 1 year ago, but I finally gave up on trying to make this work and wanted to keep all this info/details for my own reference.

Read more of this post

Arduino, when the Servo library is not good enough…


 

I went back to try and finish this ball balancing project, but after some improvements I started to get frustrated by the fact that the servos kept being “jittery”.

Time for my new and shiny servo tester I thought… ! It turned out I was seeing the same problem.

Read more of this post

Optical Wheel Encoder from Infrared Printer Sensor


Quick post about some intermediary work I had to do while working on my new Self Balancing robot.

Once the basics were done and the robot was balancing, I realised that it seemed unstable as it wasn’t staying in place…

The easiest way to deal with this would be an optical encoder for the wheels, that would tell me how much each moves.

Optical sensor mounted

Optical sensor mounted

Read more of this post

Self balancing robot


It’s really been a very long time since I added this on my todo list, and in the past couple of week-ends I finally found the time to do it.

Read more of this post

Stepper motor bluetooth serial driver


First Test using an Arduino (clone) board

First Test using an Arduino (clone) board

Above is the image of my very first attempt of driving this nice little bi-polar stepper motor (M35SP-11HPK) that I had salvaged from a broken Canon printer a while ago.

I have quickly put together a L293D H-bridge with an Arduino board and using the Stepper library was quite straight forward

For the impatient you can see a (probably boring) video right after the break…

Read more of this post

SRF05 Ultra-Sonic Ranger


I’ve just spend a couple of hours preparing this ultra-sonic ranger and the necessary code to integrate it into my autonomous tank project.

Here’s a quick post briefly explaining the theory and providing some Arduino code for it.

SRF05 in all its glory

Read more of this post

WiiMote IR Camera with Arduino


This post shows how to extract the IR Camera from the WiiMote and connect it to a .NET micro framework board (FEZ Domino in my case).

The present blog is simply a porting of the C# code to Arduino code, in case anybody is interested…

It’s a very basic file, really showing just the minimum necessary to get it working.


#include <Wire.h>

const byte ADDR_SENSOR = 0xB0 >> 1;
byte buff[2];
byte recvBuff[13];

int x, y, s;

void setup(){
Serial.begin(115200);
Wire.begin();

send(0x30, 0x01 );
send( 0x30, 0x08 );
send( 0x06, 0x90 );
send( 0x08, 0xC0 );
send( 0x1A, 0x40 );
send( 0x33, 0x03 );
send( 0x30, 0x08 );

delay(100);
}

void loop(){
readData();
Serial.print(x); Serial.print(" / "); Serial.print(y); Serial.print(" / "); Serial.println(s);
delay(300);
}

void readData()
{
send( 0x36 );
Wire.requestFrom(ADDR_SENSOR, (byte)13);
for(byte i=0; i<13; i++) recvBuff[i] = Wire.receive();

// have no idea why the 1st BLOB start at 1 not 0....
byte offset = 1;
x = recvBuff[offset];
y = recvBuff[offset + 1];
int extra = recvBuff[offset + 2];
x += (extra & 0x30) << 4;
y += (extra & 0xC0) << 2;
s = (extra & 0x0F);
}

void send(byte val){
Wire.beginTransmission(ADDR_SENSOR);
Wire.send(val);
Wire.endTransmission();
delay(10);
}

void send(byte val1, byte val2){
Wire.beginTransmission(ADDR_SENSOR);
buff[0] = val1; buff[1] = val2;
Wire.send(buff, 2);
Wire.endTransmission();
delay(10);
}

Tiger 1 BB airsoft RC Tank – V2


It’s all about the same project as here, BUT with a different technology: instead of using the FEZ Domino (.NET micro framework based) board, I’ll be using the Lego NXT controller and an Arduino board for low level interaction with the electronics.

NXT + Arduino internals

Read more of this post

%d bloggers like this: