Skip to main content
5 votes
Accepted

XBee: How do I create a packet?

The biggest mistake people always make with serial communications of any form is to just send raw data over the connection. While you might just about get away with that on a 100% reliable direct ...
Majenko's user avatar
  • 105k
4 votes
Accepted

Arduino char showing as 2 characters

do { r = XBee.read(); Serial.print(r); } while (r != -1); Think about it. Since you tested for XBee.available() you will have at least one iteration of this loop. And then you ...
Nick Gammon's user avatar
  • 38.4k
2 votes

What is the function of the XBee / USB switch on an XBee shield?

In case someone does ask the same question in the future, this is the explanation for the USB/XBee switch functionality on the XBee Pro Shield V3 The switch serves to connect/disconnect the XBee Pro ...
Neil Tsakatsa's user avatar
2 votes

Does data coming in on Arduino serial port store for some time?

Yes. The receive ring buffer is 64 bytes and will discard anything past that until the program reads them out of the buffer. But be careful: In serial monitor, any number of bytes more than 64 and ...
SDsolar's user avatar
  • 1,165
2 votes

XBee: How do I create a packet?

The x-ctu xbee config tool has a few options worth exploring such as error checking. This means the xbee would do the work. OR using the Arduino(s) Adding a couple more bytes to you your current ...
Visual Micro's user avatar
  • 1,027
2 votes
Accepted

High errors in transmission (completely eliminated by adding delay): What's the issue?

You are probably just transmitting too fast. Your receiver is writing at least 80 bytes of debugging information (if I counted it right) for every 3 bytes of incoming data. Since both input and debug ...
Edgar Bonet's user avatar
  • 43.3k
2 votes
Accepted

Problems with Hardware Serial (UART) on Nano 33 BLE Sense

You can't make calls to IMU if you haven't initialised it with IMU.begin()
RobM's user avatar
  • 41
1 vote

Using Arduino wireless SD Shield to save data to sd card and send to PC over wireless network

"Arduino Wireless SD shield" is not "Arduino WiFi shield". The code you have is for the Arduino WiFi shield. But you have Arduino Wireless SD shield for a XBee module. XBee is not ...
Juraj's user avatar
  • 18k
1 vote

Xbee shield to shield connection sends but not receives correctly

The xbee pins can only read up about 1.2V which it will show 256 bit. You should check how much the photoresistor is giving out because it might gives something that is more than the xbee pin can ...
Muhammad's user avatar
1 vote

is using two UARTs wiser compared to I2C and UART with Arduino + Xbee + BNO055 Sensor

All software serial solutions are much less efficient than HardwareSerial (i.e., Serial). SoftwareSerial is particularly bad, because it disables interrupts for long periods of time. 95% of the MCU ...
slash-dev's user avatar
  • 2,029
1 vote

How to know physical address of XBee?

First you can check the signal received from the xbee connected with the server by using coolterm or arduino serial monitor. This is to ensure there are connections between the two xbees. Then, you ...
Muhammad's user avatar
1 vote
Accepted

Multiple arduino Wireless communication

It really depends on the communication range and context required. If your slaves are within 10-20 meters from the master device and the environment is not polluted (in terms of magnetic field) you ...
Roberto Lo Giacco's user avatar
1 vote

Communicating between two arduino terminal using Xbee

//your code looks almost ok. The thing that i am feeling wrong is that arduino at the PC end. It should communicate with PC and 2nd arduino at the same time. So use arduino mega or "#include " library ...
Hafeez Ahmad Fii Zue's user avatar
1 vote

Arduino Mega + XBee Shield + RAMPS 1.4 Is it possible?

Yes, and the answer is really simple. You need to extend the connectors between the xbee shield and the ramps shield. Either by adding another layer of the through pin connectors you have or by ...
Code Gorilla's user avatar
  • 5,637
1 vote
Accepted

Arduino Mega + XBee Shield + RAMPS 1.4 Is it possible?

Yes, it would seem like folks on the RepRap forums have gotten this to work with the following setup that should work in general: Attach the XBee shield to the RAMPS board by attaching 4 pins on ...
MechtEngineer's user avatar
1 vote

Evaluating delay for Xbee

Based on my experience with Xbee, I would say the limit is 50ms as Xbee can do the lowest sampling rate of 50ms.
Muhammad's user avatar
1 vote

XBee not connecting

Check the baud rate on xctu software, make sure it is on 9600 or you can click on default button and make sure you connect the xbee on the right port
Muhammad's user avatar
1 vote

How to send command from coordinator to router in Xbee?

In order to change the router from the coordinator, you have to create a function that run in a microcontroller that is connected to the coordinator.You can refer to this link , https://www.youtube....
Muhammad's user avatar
1 vote
Accepted

Receiving a packet via XBee radio

A state machine is what you want. That and to increase your preamble to two bytes, not one. The reason being is that due to the escaping of the preamble character in the data it is impossible to have ...
Majenko's user avatar
  • 105k
1 vote

Send and Read packet XBee AT mode

I'm not sure about this, but similar to any other serial communication modules used on the Arduino, you need to setup a software serial pins which act as Tx and Rx between the Arduino and the module, ...
Prateek's user avatar
  • 11
1 vote

How to keep track of if data is outdated

OK, so you have three possible states for your values: No valid data (-1, or 0xFFFF in 16-bit 2's complement) Valid data (0 to 1000, or 0x0000 to 0x03EB in 16-bit) Valid but "old" data. If you first ...
Majenko's user avatar
  • 105k
1 vote

How to connect an RF module directly to a PC without using an arduino?

The nRF24L01+ uses SPI. PCs don't (usually) have an SPI interface. So you will need some piece of hardware to provide the PC with an SPI interface. That could be an Arduino, or it could be a ...
Majenko's user avatar
  • 105k
1 vote

Arduino Due - wireless programming via Xbee

Theoretically, it is possible I have not tried to do it on an Arduino but I did work something similar with a pic controller. Usually, when we program the board with the firmware file we break the ...
user7532054's user avatar
1 vote

Reading three signals sent serially on Simulink from Arduino

You need to put your data into a packet and then send the packet to Simulink. You have tried this by this line in your transmitting code: Serial.write(sensorValue1, sensorValue2, sensorValue3); ...
sa_leinad's user avatar
  • 3,188
1 vote

Arduino unable to read from XBee Series 2

#include <XBee.h> uint8_t text[] = {'H', 'e', 'l', 'l', 'o',' ','T','H','I','S',' ','I','S',' ', 'A','R','D','U','I','N','O'}; XBee xbee = XBee(); XBeeAddress64 remoteAddress = XBeeAddress64(...
Sarath chandra's user avatar
1 vote

Arduino or XBee unique identifier?

When programming the Uno's, you could write identifying values into particular EEPROM bytes. To automate the process, write a development-system program to produce serial-numbered HEX files, with the ...
James Waldby - jwpat7's user avatar
1 vote

Receive data from multiple wireless sensors simultaneously

It is possible to do this with Zigbee. The API mode in the Xbee modules enables this. Unlike the AT mode in Zigbee the API mode enables you to distinguish between the packets that you receive from ...
MayBee's user avatar
  • 41
1 vote

How to purge incoming Xbee packets from the buffer?

It means there's a lot of latency between your issuing a command and getting a confirmation of the command's effect. When you send the command, it's best that you wait and read packets until you find ...
SoreDakeNoKoto's user avatar
1 vote

Xbee not activate on arduino micro

It is probably because you are using the only Serial to communicate to both the devices - your PC and XBee. At any instant, you can communicate to only one device. So you might need an extra serial to ...
goddland_16's user avatar
1 vote
Accepted

can i configure 2 (XBee series 2) modules using one explorer

You only need one. In order to communicate in Point To Point, you must configure each xbee to belong to the same NetworkID (PAN ID). XBees can only communicate with each other if they have the same ...
brtiberio's user avatar
  • 926

Only top scored, non community-wiki answers of a minimum length are eligible