Show Posts
Pages: 1 [2]
16  Using Arduino / Networking, Protocols, and Devices / Re: serial data transfer between arduino uno and arduino micro on: January 08, 2013, 04:23:34 am
Yews sorry i have done this also. I forgot to mention it..

In both of the boards the TX led is blinking.
17  Using Arduino / Networking, Protocols, and Devices / serial data transfer between arduino uno and arduino micro on: January 08, 2013, 04:18:47 am
Ok this is what I have done:

It is exaclty the same other people have done but I do not know what I have done wrong:

Arduino UNO: TX--> RX of arduino micro
Arduino UNO: RX ---> TX of arduino micro.
common GND.

Code for arduino uno: (sender)

Code:
void setup()
{
 Serial.begin(9600);
}

void loop()  {
 
  //--- display the character just sent on console ---
  Serial.println( "Hello world" );
delay(1000);
  
}  

Code for receiver (micro):

Code:
void setup()
{
 Serial.begin(9600);

}

void loop()  {
 if (Serial.available() > 0) {
    int temp=Serial.read();
    Serial.println(temp);
 } else {
    Serial.println("Not available data");
 }
 delay(1000);
}

and I do see not available data.

What am I missing?

18  Using Arduino / Networking, Protocols, and Devices / Re: sending data between 2 arduinos using xbee on: January 08, 2013, 03:52:59 am
If they are working with FTDI, doesn't that mean that they are working correclty?

I have seet PAN ID of both to 2001.
also set ATDH to be the common high bits of xbee.

And ATDL is the bottom bits of the destination. Since A wants to send to B, ATDL of A has the bottom bits of B and vice versa.
19  Using Arduino / Networking, Protocols, and Devices / Re: sending data between 2 arduinos using xbee on: January 07, 2013, 04:14:35 pm
Both XBees are connected to different arduino.

the one does xbee.write() where xbee is a new software serial

and the other one does xbee.read().

XBees are correclty configured since I tested it (I think I done it correctly).

I am missing something, though.
20  Using Arduino / Networking, Protocols, and Devices / Re: sending data between 2 arduinos using xbee on: January 07, 2013, 01:22:25 pm
XBee series 1.

they are configured through X-CTU, based on the one tutorial found on ladyada.net.

Then I connected XBee to arduino (TX to pin 3, RX to 2, vcc and gnd respectively) and the other XBee to pc through FTDI cable.
I was able to send characters from the arduino and see them in the serial monitof of the X-CTU. Does this mean that they are configured correclty?

Then I wanted to connect an arduino to my receiver. You can see the code above. I am always getting no available data.

Returned -1 means that there is no data in the serial.
21  Using Arduino / Networking, Protocols, and Devices / sending data between 2 arduinos using xbee on: January 07, 2013, 11:02:02 am
I am having the following:

2 arduinos and 2 xbees. I want to send data from the one to another. The xbees communicate because I have the proposes test (connect one xbee with the arduino and the other to the PC, write from the one, watch the other in the other terminal).

Now I want to send data from the one to another:

These are my 2 scripts:

for sending: 9which is tested in the former test that sends all the letters)
Code:
    #include <SoftwareSerial.h>
   
    SoftwareSerial xbee(2, 3); // RX, TX
    char c = 'A';
    int  pingPong = 1;
   
    void setup()
    {
     Serial.begin(9600);
     
     Serial.println( "Arduino started sending bytes via XBee" );
     
       // set the data rate for the SoftwareSerial port
       xbee.begin(9600);
    }
   
    void loop()  {
      // send character via XBee to other XBee connected to Mac
      // via USB cable
      xbee.write( c );
     
      //--- display the character just sent on console ---
      Serial.println( c );
     
      //--- get the next letter in the alphabet, and reset to ---
      //--- 'A' once we have reached 'Z'.
      c = c + 1;
      if ( c>'Z' )
           c = 'A';
     
      //--- switch LED on Arduino board every character sent---
      if ( pingPong == 0 )
        digitalWrite(13, LOW);
      else
        digitalWrite(13, HIGH);
      pingPong = 1 - pingPong;
      delay( 1000 );
    }
Problem is when connected an arduino to receive data from the other XBee.

Here is my code:

 
Code:
  #include <SoftwareSerial.h>
   
    SoftwareSerial xbee(2, 3); // RX, TX
   
   
    void setup()
    {
     Serial.begin(9600);
     
     Serial.println( "Arduino started receiving bytes via XBee" );
     
       // set the data rate for the SoftwareSerial port
       xbee.begin(9600);
    }
   
    void loop()  {
     int temp=xbee.read();
   
     Serial.print("Character received:");
     Serial.println(temp);
     delay(1000);
    }
Output is always:

   
Code:
Character received: -1.

If I change the temp from int to byte I see
Code:
Character received: (a non-ascii symbol)
22  Using Arduino / Networking, Protocols, and Devices / Connect to linvor on: June 18, 2012, 10:42:46 am
Hello! This is the device that I use:

http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=261024357609&ssPageName=ADME:L:OU:US:1123

If i open the bluetooth of my pc, identify the device and open the port via putty or any other terminal the devices seem to be connecting. From any other device, such as my phone, I am seeing linvor as a device but If i try to connect I cannot. My opinion that somehow I must open the port, and my question is how to do it? From my pc, from arduino code, from my android code, where?

And how can I leave it open because I want it to be able to work without having to do it again and again.

Thanks.
23  Using Arduino / Project Guidance / Re: Using BT module on: June 18, 2012, 09:21:48 am
So what do you suggest me to do. I want something much cheaper that an arduino because only thing I want to send is only one byte, not even receive data.
24  Using Arduino / Project Guidance / Using BT module on: June 17, 2012, 04:56:23 pm
Hello! I have bought this one:

http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=261024357609&ssPageName=ADME:L:OU:US:1123

My question is this:

1)Can ot work stand-alone, without arduino uno for example? What I really want is this: send a specific data (either H or L or a single byte) to the device that the BT module is being synced with. If I build my own board that provides the Tx pin with the data that I want to send, will the be transmitted to the device or not?

2)If yes, what type of input data does the Tx pin gets?Is it a pulse, is it a single bit, a byte or what? I cannot find it anywhere..
25  Using Arduino / Installation & Troubleshooting / Re: Which arduino to buy? on: March 06, 2012, 05:00:23 am
So which one to buy?

I have found this: http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_12&products_id=141

Will I do my job with this? Do I have to buy the "shield" from the link you gave me? http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_12&products_id=141

Do I need them both or only the first one?
26  Using Arduino / Installation & Troubleshooting / Re: Which arduino to buy? on: March 01, 2012, 08:21:24 am
yes but I don't know which one it is. It is a video on youtube, and it is not mentioned.

Here is the link
27  Using Arduino / Installation & Troubleshooting / Which arduino to buy? on: March 01, 2012, 08:06:08 am
Hello!

I am an arduino beginner. I want to buy an arduino and be able to connect it with my android phone. Basically I have seen on the web an application when a guy turns on a light from his android phone and I want to do the same. So the first question (out of many:P) is which arduino to buy?

Thanks for your time..
Pages: 1 [2]