Wednesday, March 24, 2010

How to make Sew in Magnets

Found a nice link about how to stitch magnets to fabric from You sew, Girl. It can be done using fusing fabric. I wil try it soon and put up the results.

Friday, March 5, 2010

Battery Pack

This a battery pack that has two 3V coin cells in it. The circuit gets enough power from this 6V supply. Anything over 5V will work. This is a much smaller and lighter than the bulky 9V battery i was using earlier. I made this battery pack by following the How to make a Battery Pack instructable online.
It works for a temporary fix but I think I'll solder wires on for the final use cause the wires keep shifting under the tape.

Tuesday, March 2, 2010

Random Behaviour

Im working on code that will make blobs behaviour unpredictable. So that every time it gets bitten it reacts differently. The code isn't finished yet but anyway.

ARDUINO CODE

// set pin numbers:

const int buttonPin = 7; // the number of the reedswitch pin
long randNumber;
//const int motorPin = 8; // the number oh the motor pin
// variables will change:
int buttonState = 0; // variable for reading the pushbutton status
int pin2 = 2;
int pin3 = 3;
int pin4 = 4;
int pin5 = 5;

int timer = 100;


void setup() {

// initialize the reedswitch pin as an input:
pinMode(buttonPin, INPUT);

// initialize the motor as as output
// pinMode(motorPin, OUTPUT);

// initialize the LED pin as an output:
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pin4, OUTPUT);
pinMode(pin5, OUTPUT);
randomSeed(analogRead(0));
Serial.begin(9600);
}

void loop(){
// read the state of the reedswitch value:
buttonState = digitalRead(buttonPin);

// check if the reedswitch is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {



// turn LED on:
randNumber = random(5);
delay(50);
Serial.println(randNumber); }


if ( randNumber==1){
digitalWrite(pin2,HIGH);
delay(1000);
digitalWrite(pin4,HIGH);
delay(1000);}

else if ( randNumber==4){

digitalWrite(pin2, HIGH);
delay(timer);
digitalWrite(pin2, LOW);
delay(timer);

digitalWrite(pin4, HIGH);
delay(timer);
digitalWrite(pin4, LOW);
delay(timer);

digitalWrite(pin3, HIGH);
delay(timer);
digitalWrite(pin3, LOW);
delay(timer);

digitalWrite(pin5, HIGH);
delay(timer);
digitalWrite(pin5, LOW);
delay(timer);

digitalWrite(pin5, HIGH);
delay(timer);
digitalWrite(pin5, LOW);
delay(timer);


digitalWrite(pin2, HIGH);
delay(timer);
digitalWrite(pin2, LOW);
delay(timer);

digitalWrite(pin4, HIGH);
delay(timer);
digitalWrite(pin4, LOW);
delay(timer);

digitalWrite(pin3, HIGH);
delay(timer);
digitalWrite(pin3, LOW);
delay(timer);

digitalWrite(pin5, HIGH);
delay(timer);
digitalWrite(pin5, LOW);
delay(timer);


digitalWrite(pin5, HIGH);
delay(timer);
digitalWrite(pin5, LOW);
delay(timer);

digitalWrite(pin3, HIGH);
delay(timer);
digitalWrite(pin3, LOW);
delay(timer);

digitalWrite(pin4, HIGH);
delay(timer);
digitalWrite(pin4, LOW);
delay(timer);}



else if ( randNumber==2){
// i=0;
// turn LED off:
digitalWrite(pin2, HIGH);
digitalWrite(pin4, HIGH);
digitalWrite(pin3, HIGH);
digitalWrite(pin5, HIGH);}



else {
// turn motor off:
//digitalWrite(motorPin, LOW);

// turn LED off:
digitalWrite(pin2, LOW);
digitalWrite(pin4, LOW);
digitalWrite(pin3, LOW);
digitalWrite(pin5, LOW);
}}


The pains of PCB

Monday, March 1, 2010

Tinga Tinga Tales

Tinga Tinga Tales is a 52 episodes children's series based on African folk tales and aimed at 4- to 6-year olds. It was commissioned by the BBC for its CBeebies channel, and by Disney for its Playhouse channel. Named after the Tingatinga art from Tanzania, it will be made in Kenya by a studio of about 50 people.

The series was first developed by Claudia Lloyd, head of animation at Tiger Aspect, while travelling through Africa. The First three episodes premiered on the BBC website in early February 2010.