Loading...
  Show Posts
Pages: [1]
1  Using Arduino / Motors, Mechanics, and Power / Re: Reading power state on Arduino Uno on: October 24, 2012, 01:39:04 am
See attached drawing. This is how I interpert your advice. Is it correct?

thanks for your help!
2  Using Arduino / Motors, Mechanics, and Power / Re: Reading power state on Arduino Uno on: October 23, 2012, 01:50:40 pm
Hi, thanks for the reply.

I am not quite sure how the circuit will look.
So, I'll be connecting two resistors in series with the positive of my battery before it reaches the arduino.
Between the resistors i'm breaking out to my analogue input.
The diagram in your link I understand, but to apply it to the arduino I am not so sure how the wiring will work.
What happens to the ground indicated in the diagram, is that the negative of my battery or the ground for my analogue pin?
3  Using Arduino / Motors, Mechanics, and Power / Reading power state on Arduino Uno on: October 23, 2012, 12:20:03 am
Good Day,

Is there a way that one could read the power state of an Arduino Uno.
I want my remote unit to let me know when its power source, a battery, is running below a certain threshold.
 Please let me know if this is possible and how can it be achieved. Only by code, or with added hardware solution?

Thanks for the help. smiley
4  Using Arduino / Project Guidance / Using arduino on: October 17, 2012, 02:37:43 pm
Hello, is it possible that i could use arduino products just as they are in commercial products for my company?
5  Using Arduino / Installation & Troubleshooting / Re: Arduin Uno, Wireless Shield v1.1 & XBee2 on: October 12, 2012, 12:39:48 am
Hello spcomputing,

I do thank you so much for the help. My setup is working now. I think my problem was that I had two router end devices and no co-ordinator.
Also, on the shield for the now co-ordinator my serial pins were swopped around.
All is working now. Thanks alot hey.

Are you good with writing libraries? Cus the code I want to use on one of my projects are quite alot, I would like to simplify it with compacting some of the code into functions and then moving my code to a library spesific to my project so that the my code I write is not a long list of things, but rather short, sweet and understandable.

If you are up for it to help me, I will post my code.

Regards. smiley
6  Using Arduino / Installation & Troubleshooting / Re: Arduin Uno, Wireless Shield v1.1 & XBee2 on: October 09, 2012, 11:55:16 pm
Oh I see I did not answer your XBee question.
On the Xbee it says:
MODEL: XBee2
Description is: Xbee Series 2
In X-CTU it says its a XB24-ZB, Router AT, version 2264. That was the initial modem and firmware versions.
7  Using Arduino / Installation & Troubleshooting / Re: Arduin Uno, Wireless Shield v1.1 & XBee2 on: October 09, 2012, 11:51:32 pm
Yes, thats the one. Except, v1.1
The difference is that next to the v1.0 in your pic i have the jumper selection for 3.3v usage.
I am not using the software serial library no.
I did try that, but the same thing occured.
8  Using Arduino / Installation & Troubleshooting / Re: Arduin Uno, Wireless Shield v1.1 & XBee2 on: October 09, 2012, 11:04:03 pm
Xbee Shield, v1.1, made by ITead Studio. It doesnt have the micro and usb dip switch selection. It has jumper selections to choose which pins you want to use for DI and DO. It has jumper selection to use or not 3.3v.
Thanks 4 the quick reply. :-)
9  Using Arduino / Installation & Troubleshooting / Arduin Uno, Wireless Shield v1.1 & XBee2 on: October 09, 2012, 02:24:23 pm
Good Day to whom ever whishes to help me smiley

I am using 2 Arduino Uno's with Wireless shields v1.1 and XBee2 RF modules.
My RF modules are not communicating with eachother.
Goal:
1. Turn LED 13 on, on Arduino A, wirelessly, with Arduino B by use of XBee2's.
2. Arduino A needs to listen on Serial for the letter H, if so, turn LED 13 on and then off.
3. Arduino B needs to transmit over Serial the letter H to Arduino A.
4. Arduino A XBee needs to pass the serial data on to Arduino A.
5. Arduino B XBee needs to pass serial data on to Arduino A XBee.

Whats happening?:
1. On Arduino B's wireless shield I can see the data being transmitted as the DI LED flashes whenever the data is transmitted
2. On Arduino A's wireless shield no data is coming in, as the DO led never flashes and LED 13 never flashes.

Is my sketches correct?
1. Arduino A:const int led = 13;

void setup ()
{
  pinMode(led, OUTPUT);
  digitalWrite(led, LOW);
  Serial.begin(9600);
}

void loop ()
{
  if (Serial.available() > 0)
  {
    int data = Serial.read();
    if (data == 72)//Capital letter H's decimal value
  {
  digitalWrite(led, HIGH);
  delay(500);
  digitalWrite(led, LOW);
  delay(500);
  }
  else if (data != 72)
 {
  digitalWrite(led, LOW);
}
  }
}

2. Arduino B:
void setup()
{
  Serial.begin(9600);
}

void loop()
{
  Serial.println('H');
  delay(5000);
}

Is my XBees config correct?
Arduino A:
1. PAN ID = 0
2. DH = 13A200
3. DL = 4065DA24
4. SH = 13A200
5. SL = 4063D90C

Arduino B:
1. PAN ID = 0
2. DH = 13A200
3. DL = 4063D90C 
4. SH = 13A200
5. SL = 4065DA24

Please help, cause I just can't seem to get it right.

THanks smiley-cool
Pages: [1]