Archive for the ‘Project’ category

SoutHACKton: Arduino Meet

September 10th, 2009

This event was organised by Andy of SteamShift and Benjie. It was kindly hosted at the Steamshift HQ Eastliegh

SoutHACKton aims to bring together liked minded people who are fascinated in taking things apart and learning how they work. Then of course exploiting their dismantled object for a completely different purpose.

This was the first event I had attended and I had no idea what to expect. It happened on the afternoon of Saturday the 29th of August.

Informal Arduino 101

Informal Arduino 101

The event was focused on arduinos. There was an opportunity for an informal 101 as well as lots of projects people were working on.

Hacking Lou Lou the Furby to become a notification device

Hacking Lou Lou the Furby to become a notification device

There were a huge variety of projects from Furby hacking, robots that followed lines drawn on paper, zigbee interaction and my own power metering work (more to follow when/if it gets finished). All the projects were based around arduinos some by people who had been doing this for and some like me who had only started recently.

It was a great event that really showed off the talent around the Solent area.

My only comment, how did the time go so fast?

The next event is a Hack Day, on the 4th of October. Click here for details.

For more information about SoutHACKton please visit http://www.southackton.org.uk/

Power Duck to the financial rescue

April 27th, 2009

Like many people know I am bothered about the electricity consumption of my flat.

For a while now people have been talking about ambient orbs to help monitor their power usage. There are one or two very good guides for producing these on the interent. I decided to go from scratch with an Arduino. Yesterday I finally bought an RGB Full Colour LED for £2.99 from Maplin. I am fairly sure it would have been cheaper at RS but they were closed. This was to be paired with my arduino I have had since Xmas.

This evening I prototyped some code on my Arduino(See at the end) and wired up the Red and Green pins. Blue wasnt required for my intended range. Pin 9  is green and pin 10 is red.

I have linked this into my own RSMB and it reads the live feed from my currentcost device. The number is then echoed down the serial connection with the colour of the light being determin with the following formula.

Red:           Current Power Usage /1500 * 255

Green:      255- (Current Power Usage/1500*255)

Though this doesnt change in nice clear cut stages I liked the idea of a constant natural progression.

I still am fine tunning this so watch this space.

Code for the arduino

float value = 400; //initial value
float maxBoundary = 1500; //Value at which PURE red is shown
char incomingByte;
int count = 0;
char genValue[5] = “”;
void setup() {
Serial.begin(9600);           // set up Serial library at 9600 bps
Serial.println(”Starting Orb”);
analogWrite(11, 0); //Blue is always 0
}
void loop() {
// send data only when you receive data:
if (Serial.available() > 0) {
// read the incoming byte:
incomingByte = Serial.read();
//  if ((incomingByte >=0)&&(incomingByte <10)) {
genValue[count] = incomingByte;
count++;
if (count == 5){
count =0;
Serial.println(genValue);
value = atof(genValue)-100; //take off a 100 because realistically at the moment it wont go below 350
if (value<0) value=0;
}
}
}
float displayValue = value/maxBoundary;
float displayValue255 = displayValue*255;
if (displayValue255 > 254 ) displayValue255 = 255;
analogWrite(10, displayValue255); //red //This is a Analgoue output from a digital pin on the arduino
analogWrite(9,255-displayValue255); //green
delay(500);
}

Power and Temperature Orbs in OpenSim and SecondLife

March 17th, 2009

For reasons unknown to me I started to play around with OpenSim on Reactiongrids Servers in the Homecamp sim. Having never used anything like OpenSim or SecondLife before Chris Dalby(www.twitter.com/yellowpark) gave me my own office

I had NO idea what to do next. So i made a sphere and put it on a desk.

Orbs on desk

Now pachube have posted a guide for linking their feeds into opensim using HTTPRequests. (http://community.pachube.com/?q=node/82)  Following their careful guide I Produced this.orbsfinal

The text at the top  gets updated with pachube, and the colour changes depending on the values from the data feeds.

If anyone is interested they are visible in ReactionGrids Homecamp Sim look for this Office.

HomeCampOffice

Eightbar Post, MQTT Ducks

March 17th, 2009

The friendly guys over at EightBar (well Andy Piper) have put up a post I was writing for here about my ducks

Please head over and take a look at http://eightbar.co.uk/2009/03/12/the-amazing-mqtt-enabled-ducks/

It explains why, how and where next.

I have been workng in opensim with homecamp recently and hope to publish some information about my work there over the next few days.

MQTT Flashing Ducks

January 19th, 2009

Flashing Duck

Well First project was working, got a string of ducks to listen for a MQTT subscription.

However as soon as I took the picture it broke. It seems to be a linux thing. Will fix it soon.

Just need to work out what to do with them when they work.

This works with an  Arduino that takes a serial hex code that triggers the LEDs on or OFF.  I have a perl script that works on my server and listens for MQTT subscriptions on Ducks.  I got the Arduino code from “Making things talk” (link) it is a great book on the basics of Arduinos and networking with them.