![]() |
| Burn xbee!!! |
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 !!!!...#@$%!$@%!%^#!&
Wednesday, 10 October 2012
Programs
Finally, I've manage to find programs for my project..here's the examples of the codes :-
Arduino codes :
Processing 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);
}
// 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++;
}
}
}
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..
Saturday, 29 September 2012
Xbee configuration..
I have to configure the xbees i buy first...This is to make sure that both transmitter and receiver has the same value of transfer which means that i can transfer the data successfully.
This configuration involve in XCTU software which suit xbee series 1 model..
This is some example of the configuration :-
This configuration involve in XCTU software which suit xbee series 1 model..
This is some example of the configuration :-
![]() | |
| XCTU software |
![]() |
| Xbee with dongle |
Wednesday, 19 September 2012
Constructing..
Thursday, 13 September 2012
INA128P
Very simple amplifier...It's advantages are as follows:-
- Low offset voltage
- Low drift
- Low input bias
- High CMR (120dB min)
- Inputs protected up to 40V
- Low current
Tuesday, 4 September 2012
Sensor Circuit..Failed!
As stated before, I used LM358 as my amps..But, it has failed me..Why?...because there's so much noise in this amps and it did not filter the noise accurately...So, I've decided to change to another amps which I prefer most that is INA128P...I think this amp will be successful for me..Let's go to Jalan Pasar...again!..
Subscribe to:
Posts (Atom)




