Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / ultrasonic sensors on: January 17, 2013, 08:04:30 am
Hey,
I wanted to use the ultrasonic sensors for range detection, but unfortunately instead of ordering the range detection sensor ,i ordered 2 ultrasonic sensors ( individual).Can anybody guide me as to what should i do now and how should i connect them to the arduino.
2  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 11:34:00 pm
I was also trying to connect my galaxy s to connect to the arduino adk,to receive data,so i was trying to make an app for it using processing but the problem still remains that the header files for adk arent defined properly and i got tons of errors ,this is what ill try,for the tft did you code the microcontroller in assembly?
3  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 11:13:10 pm
yup,for this xbee,basically instead of choosing the xbee model like xb 24 or something  and then choosing router at or coordinator at,i had to choose xbee xsc 9600 which automatically comes when its read,now comes the fun part,i cant use atdh or atdl for this,so it took me along time figuring this out ,the two commands are ATID(pan address) which i set as default for both,and ATDT which have to be the same so i put it as 0100 using teraterm instead of putty ,and the communication was made after ATWR.
And the thing is that it isnt series 1 or series 2 or pro versions of those 2,there is a totally different model https://www.sparkfun.com/products/9087
4  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 10:55:51 pm
yeah i think thats what im going to do next,its taken too long,the main function for this was long range thats why i bought it,and its taken me so long to get it to work.What xbees did you use?
5  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 10:23:13 pm
its actually not the first time,ive configured it,and ive seen that video too but it doesnt help alot as ive a xbee pro xsc,but the connection is established and im using a 3v3 regulator to connect to the arduino for both my xbees,
dout=rx0(data that came ,now stored in the buffer)
din =tx0(data coming in from the arduino to transmit)
and the thing is all the codes that Ive tried till now can only do a specific function like light an led,or like jeremy blum's servo motor,but i still dont know to receive data.
The major problem with this xbee in specific is that it cant go more than 9600 baud rate,plus it works on point to point communication,so i really cant use the api mode.
6  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 09:11:59 pm
yup that is happening,the thing is that its glowing the led whenever defined like at 0 or 1,it does go on and the rest of the times its off,but the problem is with receiving the data,its showing me values that are constant
7  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 04:29:42 pm
yup so ive put it at tx0 and rx0 so i didnt configure it
8  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 04:25:46 pm
and doesnt the mega have 4 serial ports,im using the 0th one,so do i need to configure it as 1
9  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 04:19:10 pm
ok so we made the master as the mega now and the uno as the slave,and changed it to Serial1.write();
10  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 04:04:21 pm
ok so this is the new output on 0 and 1 after tweaking:
start on slaveÏÏ
11  Using Arduino / Project Guidance / Re: Xbee Pro XSC on: November 16, 2012, 03:42:12 pm
sorry but we are not even using the pushbutton...so  therefore the display is only being produced by the arduino.
12  Using Arduino / Project Guidance / Xbee Pro XSC on: November 16, 2012, 03:15:36 pm
We have been working on the xbee pro xsc for a couple of days,we got it to light the other arduino's led but were having problem display it on the com port,it continuously showed us -49 for any integer data.

the master code:
Code:
void setup()
{
Serial.begin(9600);
pinMode(2, HIGH);
Serial.print("start ");

}
void loop()
{
 
    Serial.print("0");
    delay(1200);
   
    Serial.print("1");
    delay(1200);
    Serial.print("2");
    delay(1200);
    Serial.print("3");
    delay(1200);
    Serial.print("e");
    delay(1200);
    Serial.print("f");
    delay(1200);
   
 
}

the slave code:
Code:

int led = 13;


void setup()
{
  Serial.begin(9600);
  pinMode(13,OUTPUT);
  Serial.print("start on slave");
}
void loop()
{
 
if (Serial.available() > 0)
{
  if (Serial.read() == '0')
  {int data=Serial.read();
  data=data-'0';
  Serial.print(data,DEC);
    digitalWrite(13,HIGH);
  }
else
{
  digitalWrite(13,LOW);
}
}
}
13  Products / Arduino Due / Arduino Mega or DUE? on: October 29, 2012, 10:06:53 am
i have to buy an arduino board with more i/o pins and a better clock cycle,so was looking at mega, but the recent launch of due, has confused me,should i go for due?..wont there be some bugs present in it?
14  General Category / General Discussion / Re: Simulation on: October 28, 2012, 04:10:59 pm
yes,avr
and thanks. smiley
15  Topics / Robotics / Re: How to find the Last program loaded in Arduino ATMEGA328p on: October 28, 2012, 03:58:29 pm
If u uploaded a program now, and did not upload any new program after switching your arduino ON , the same program should still be their on the ON-chip memory,as its non-volatile and you can test it by checking your output...but i dont think u can retrieve the program once you upload any new program,as it does not save the sketches.
Pages: [1] 2 3