Saturday 27 October 2012

Successful!!

I have made it!...my circuit has functioning well!....I have transmitted my digital signal of my ecg wirelessly to my pc...Project success!!!...


Digital signal of ECG waveform


For your information : I manage to transmit my digital signal of ECG waveform to my pc..In order to produce analog signal of ECG, i have to construct DAC (digital analog converter) circuit...This is much more complicated...But,this is already shows that i can transfer my ECG wirelessly..So,my target is to transfer digital signal graph..This project has considered SUCCESS!.


Here's my circuit! :-

Full circuit





Friday 19 October 2012

New xbee

I got my new xbee...Configured it...And now it's time for me to test my circuit whether it is functioning or not...nervous!!!


Tuesday 16 October 2012

Unfortunate..

Today is my unfortunate day because one of my xbees (transmitter) has burn..This is all because of my 3.3V voltage regulator that i bought in Jalan Pasar...It has damaged...aarghhhhhhhhh!!....I have to buy another xbee and it cost me around RM120/each !!!!...#@$%!$@%!%^#!&




Burn xbee!!!

Wednesday 10 October 2012

Programs

Finally, I've manage to find programs for my project..here's the examples of the codes :-

Arduino codes :

void setup() {
// initialize the serial communication:
Serial.begin(9600);
}

void loop() {
// send the value of analog input 0:
Serial.println(analogRead(0));
// wait a bit for the analog-to-digital converter
// to stabilize after the last reading:
delay(10);
}

Processing codes :

Serial myPort;        // The serial port
int xPos = 1;         // horizontal position of the graph
int thresh = 190;

void setup () {
// set the window size:
size(800, 500);      
myPort = new Serial(this, "COM4", 9600); // local USB- port
// don't generate a serialEvent() unless you get a newline character:
myPort.bufferUntil('\n');
background(0);
}


void draw () {
// everything happens in the serialEvent()
}


void serialEvent (Serial myPort) {
// get the ASCII string:
String inString = myPort.readStringUntil('\n');
if (inString != null) {
// trim off any whitespace:
inString = trim(inString);
// convert to an int and map to the screen height:
float inByte = float(inString);
inByte = map(inByte, 0, 1023, 0, height);
println(inByte);
// draw the line:
stroke(127,34,255);
line(xPos, height, xPos, height - inByte);

line(0, thresh, width, thresh);
if(inByte > thresh){
fill(255,0,0);
ellipse(100,100,50,50);
}else{
fill(0,0,0);
ellipse(100,100,50,50);
}

// at the edge of the screen, go back to the beginning:
if (xPos >= width) {
xPos = 0;
background(0);
}
else {
// increment the horizontal position:
xPos++;
}
}
}

Thursday 4 October 2012

Testing

This is it...I have to try my circuit..Not only that...i have to do some research about the programming for my project..This program is very important because it is the main part which make my project successful..So, i have to search sources such as arduino forum because it is an open source web which provides codes for arduino and processing software..