Show Posts
Pages: [1] 2
1  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 28, 2012, 02:45:18 am
thank you.ill look into it
2  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 27, 2012, 09:26:21 am
arrch,
ill do it later,let me get the answer to my post first.
3  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 27, 2012, 09:24:54 am
Jack,
here is the product,
https://www.sparkfun.com/products/9087

ok,this is a special product by Digi, and they do not make this anymore.
4  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 26, 2012, 03:30:51 pm
paulS,
1.Why yes?.does it really matter what i use.?

2.Only when the pushbutton is pressed,and the circuit is completed and there is a HIGH i want D to be printed. how else would i do that?.
5  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 26, 2012, 03:25:17 pm
well,i didnt make it up...we are a team of 2,and i wrote the code on my team-mates arduino, not mine, and tested it there,so i knew what happened,and i coudnt reply yesterday because i did not have the zigbees with me.,and coudnt call my team mate up at 5 in the morning. smiley-razz

ok,so here is the deal now.
I made a mistake in the above posts,we do not have a xbee series 2, we have one called the xbee pro xsc ufl..now according to the internet , they have stopped manufacturing it .But we did configure them as a master and slave, now comes the problem, in x-ctu, no function set is actually working for it,it always fails,basically we are trying to use the API mode ,can you please explain me how to do it,i am really clue - less about it.

6  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 24, 2012, 06:42:23 pm
firmware: ZNET 2.5 CORDINATOR AT version 1047...on both the xbee's.
the led is not glowing.it glows like 7-8 times , in about 2 sec and then stops.
I get your point,thats why the serial monitor is actually showing D's continuously but there is also an "start on slave" command,which should be printed on the serial monitor as well..its not happening.

and i'd copy paste if i had the code written before.smiley-grin
7  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 24, 2012, 06:29:41 pm
yes.sorry again.need to slow down. smiley-roll-sweat
8  Using Arduino / Networking, Protocols, and Devices / Re: Xbee on: October 24, 2012, 06:26:08 pm
sorry,semicolon error
master:
Code:
int pushbutton = 2;

void setup()
{
Serial.begin(9600);
pinMode(2, INPUT);
Serial.print("start ");

}
void loop()
{
  digitalRead(pushbutton);
  if(digitalRead(pushbutton) == HIGH)
  {
    Serial.print("D");
  }
}


slave:
Code:
int led = 3;


void setup()
{
  Serial.begin(9600);
  pinMode(3,OUTPUT);
  Serial.print("start on slave");
}
void loop()
{
 
if (Serial.available() > 0)
{
  if (Serial.read() == "D")
  {
    digitalWrite(3,HIGH);
  }
else
{
  digitalWrite(3,LOW);
}
}
}
9  Using Arduino / Networking, Protocols, and Devices / Xbee on: October 24, 2012, 06:10:27 pm
Hey,
I have 2 xbee series 2.0's and want to make a message sending device through them.
Basically , i want to use it to send a message from the pit to a racing car ,and the reverse.It should be bi-directional.I am using the X-ctu software,and have configured them as master and slave respectively.
I was testing it with a push button,such that whenever the button is pressed the led lights up,on another arduino .After i press the button,the led does not light up,but is actually stored as a buffer,and when i switch the "master" arduino off,the led lights up.I have no clue whats going on,its acting like a buffer of some kind.
code on the master arduino:
Code:
 
int pushbutton = 2;

void setup()
{
Serial.begin(9600);
pinMode(2, INPUT);
Serial.print("start ");

}
void loop()
{
  digitalRead(pushbutton)
  if(digitalRead(pushbutton) == HIGH);
  {
    Serial.print("D");
  }
}


and code on slave is:
Code:
int led = 3;


void setup()
{
  Serial.begin(9600);
  pinMode(3,OUTPUT);
  Serial.print("start on slave");
}
void loop()
{
 
if (Serial.available() > 0);
{
  if (Serial.read() == "D");
  {
    digitalWrite(3,HIGH);
  }
else
{
  digitalWrite(3,LOW);
}
}


sorry for the long post.
10  Using Arduino / General Electronics / Re: Hall effect sensors on: October 24, 2012, 03:28:08 pm
I actually made one rpm sensor for my CVT using a pulse in function and it gives very exact values,..i can help you out wit it,..pulse in does give you the duration,all you do is take the duration for the "on" time and the "off" time,..this will give you the sampling time.Now you have time,so you can get frequency,and then rpm.
The driver side of my side has an idling speed of about 1800 rpm,and i get the value at 1805 rpm ,constant till i throttle the engine,and gives a value of 3760 rpm ,for a max theoritical value of 3800 rpm.
so i can tell you that pulseIn works for sure
11  Using Arduino / General Electronics / Re: Hall effect sensors on: October 22, 2012, 01:48:21 pm
Hey,
I suggest that you do not use the attach interrupt function at all,try using the pulseIn function,as what you want the is the pulse,whenever the magnetic fields react with the sensor.
12  Using Arduino / Programming Questions / Re: Capacitive Sensing Library being ignored by arduino UNO. on: October 18, 2012, 01:40:16 pm
sorry , got my mistake,
should use   long total = cs_4_2.capacitiveSensor(30);
thanks guys.should have looked at the examples first.
13  Using Arduino / Programming Questions / Re: Capacitive Sensing Library being ignored by arduino UNO. on: October 18, 2012, 01:23:33 pm
ok,here is what i have written now, realizing my mistake with writing the library name,now after i compile it there is an error in the
 long value  = CS_4_2.CapacitiveSensor(30); line,saying that invalid use of class CapacitiveSensor

i am sorry but i am new to this library.


Code:
#include <CapacitiveSensor.h>
CapacitiveSensor CS_4_2 = CapacitiveSensor(4,2); // 10 megohm resistor between pins 4 & 2
void setup()
{
  CS_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1
  Serial.begin(9600);
}
void loop()
{
  long start = millis();
  long value  = CS_4_2.CapacitiveSensor(30);
  Serial.println(value);
  delay(100);
}
14  Using Arduino / Programming Questions / Re: Capacitive Sensing Library being ignored by arduino UNO. on: October 17, 2012, 01:56:04 pm
it is listed there.
15  Using Arduino / Programming Questions / Re: Capacitive Sensing Library being ignored by arduino UNO. on: October 17, 2012, 01:02:11 pm
ok now..i have written my program, and i am posing it here,because its in reference to the capsense library.
After i press the compile button,it shows an error ,
capSense does not name a type?...i have included the library
#include<CapSense.h>

its saved as a .h file.

i tried changing the brackets to quotes but it didnt work out.
Pages: [1] 2