Xbee+arduino communication problem

  • Thread starter Thread starter ReneeL
  • Start date Start date
  • Tags Tags
    Communication
Click For Summary
SUMMARY

The discussion centers on troubleshooting communication issues between Xbee modules and Arduino boards in a project involving the transmission of three analog EMG signals. The transmitting setup utilizes an Arduino Mega with a Series 1 Xbee configured in AT mode, while the receiving setup employs an Arduino Uno with a matching Xbee configuration. Key parameters include Channel 10, PAN ID 1234, and respective MY and DL addresses of 10 and 11 for the transmitting Xbee, and 11 and 10 for the receiving Xbee. The user seeks guidance on implementing serial streaming to ensure accurate signal transmission.

PREREQUISITES
  • Understanding of Xbee Series 1 configuration in AT mode
  • Familiarity with Arduino Mega and Arduino Uno programming
  • Knowledge of analog signal processing and transmission
  • Experience with serial communication protocols
NEXT STEPS
  • Research "Arduino Serial Streaming" techniques for efficient data transmission
  • Explore "Xbee configuration settings" for optimal performance
  • Learn about "analog signal digitization" and its implications in Arduino projects
  • Investigate "Simulink integration with Arduino" for data visualization and analysis
USEFUL FOR

Electronics hobbyists, embedded systems developers, and engineers working on wireless communication projects involving Arduino and Xbee modules.

ReneeL
Messages
1
Reaction score
0
I tried testing the system and I’m not sure if the problem is with the xbee’s, the transmitting code, or the recieveing code. Before I post my code I will explain what we are doing with the signals. We have three analog EMG signals that will be sent serially through on xbee using an arduino and xbee shield. We want to send these signals to the receiving xbee where the arduino will output these signals to be connected to a third arduino through wires to be used in a Simulink program. We are using an arduino mega for the transmitting side and an arduino uno for the receiving side. I was told I need to do serial streaming but I’m not sure how that’s done. I understand the xbee and arduinos both digitize signals but we are hoping to get a signal very similar to the analog signals we are transmitting. Any amount of help is greatly appreciated!
This is how I have my xbees configured (series 1) both in AT mode:
Transmitting Xbee:
Channel:10
Pan id: 1234
MY: 10
DL: 11
Receiving Xbee:
Channel:10
Pan ID: 1234
MY: 11
DL: 10
transmitting Arduino code:
void setup() {
Serial.begin(9600);
}
void loop() {
// read the input on analog pins
int sensorValue1 = analogRead(A0);
int sensorValue2 = analogRead(A1);
int sensorValue3 = analogRead(A2);
// print out the value you read:
Serial.println(sensorValue1);
Serial.println(sensorValue2);
Serial.println(sensorValue3);
delay(1);
}
Receiving Arduino code:
int received1=8;
int received2=9;
int received3=10;
void setup(){
pinMode(received1, OUTPUT);
pinMode(received2, OUTPUT);
pinMode(received3, OUTPUT);
Serial.begin(9600);
}
void loop(){
if(Serial.available() )
{
byte output1 = Serial.read();
byte output2 = Serial.read();
byte output3 = Serial.read();
digitalWrite(received1, HIGH);
digitalWrite(received2, HIGH);
digitalWrite(received3, HIGH);
}
}
 
Computer science news on Phys.org
I'm sorry you are not finding help at the moment. Is there any additional information you can share with us?
 

Similar threads

Replies
7
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
15K