Search the Community

Showing results for tags 'xbee'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

  • Community Calendar

Found 8 results

  1. I am new to Launchpad and Xbee. My goal is to create a sensor network. Right now, I am stuck at trying to get an xbee pro S3B attached to a Launchpad communicating to another xbee pro S3B in X-CTU on the computer. The second xbee is attached to the computer using Sparkfun's Xbee Explorer USB. X-CTU: the xbee connected to the computer is configured as a Non-Routing Coordinator on Network ID AAA. The Launchpad xbee is configured as a Standard Router with the High and Low Destination Addresses set to the high and low addresses on the Non-Routing Coordinator. The Network ID is also set to AAA. All other parameters are left to the default settings. The Launchpad connected xbee has pin 1 connected to an external 3.3 volt source. Pin 2 (data out) is connected to the Launchpad P1.1 pin. Pin 3 (data in) is connected to the Launchpad P1.2 pin. Pin 10 is connected to ground. Both the xbee and Launchpad are powered by the external 3.3 volt source with the same common ground. Also to note, the UART RX and TX pin jumpers have been rotated 90 degrees. The launchpad is loaded with the energia program: void setup() { Serial.begin(9600); } void loop() { Serial.print("Hello"); delay(1000); } In the serial monitor program, it displays "Hello" every second when the baud rate is set to 4800 baud. At 9600 it prints funky symbols. When I open X-CTU and start the range test I receive the "Timeout waiting for data" message. I also receive nothing in the Terminal tab. Suggestions??
  2. I have an XBee (S2C) connected to my Mac and another XBee connected to a TI microcontroller (TIVA-C129) communicating with each other - Mac as a coordinator and TI as a router. I can communicate between them, but on the TI side, I can't read the exact data that is coming in the serial port. On the Mac, I am running below python code that reads the incoming serial data through XBee and writes an acknowledgment. #!/usr/bin/python import serial ser = serial.Serial('/dev/tty.usbserial-A104IC2U', 9600) ack='A' while True: incoming = ser.readline().strip() if incoming != 'A': print '%s' % incoming ser.write('%s\n' % ack) On the TI side, I have below code int incomingByte = 0; void setup() { Serial3.begin(9600); //UART3 has XBee connection pinMode(LED, OUTPUT); } void loop() { Serial3.println("Sending command to the XBee"); delay(1000); Serial3.println("I am R1"); delay(1000); if (Serial3.available() > 0) { // read the incoming byte from UART3 incomingByte = Serial3.read(); // say what you got, print at the usb serial console Serial.print("I received: "); Serial.println(incomingByte, DEC); } } When I run this, XBee communication stops after printing "I am R1" in the python console. I am sure Serial3.available() > 0 is working as when I replace it with a blink code like below, it works and XBee communication keeps working on. if (Serial3.available() > 0) { digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } So looks like the problem is in incomingByte = Serial3.read(); From python, I am sending a string (%s) with ser.write('%s\n' % ack). Is Serial3.read() the right read mechanism for the ack string? Anything else? FYI: I tested the serial.read() only with TI (no python involved) by writing something in the console and serial.read() can read and print it.
  3. I am using TM4C129 Launchpad launchpad and trying to connect XBee Series 2 (S2C) through UART. Looking into the pinout of TM4C129, I am connecting like below XBee TX <---> RX (UART0) XBee RX <---> TX (UART0) XBee 3.3V <---> pin#41 XBee GND <---> pin#62 I use below code on the LaunchPad at Energia void setup() { Serial.begin(9600); //pinMode(13, OUTPUT); } void loop() { Serial.println('H'); delay(1000); Serial.println('L'); delay(1000); } And the below python code runs on my Mac as a coordinator #!/usr/bin/python import serial ser = serial.Serial('/dev/tty.usbserial-A104IC2U', 9600) while True: incoming = ser.readline().strip() print '%s' % incoming But it doesn't work. FYI, this code worked on Arduino. Has anyone tried this before? Any suggestion? Am I missing some connection? jumper settings? Anything on the code?
  4. Hello! I am having trouble getting the correct values from my MSP432 to my DAC. So basically my project setup is as follows: Transmitting: -Microphone connected to the A15 channel of my MSP432 -Xbee connected to the UART pins 3.2, 3.3 CODE Tx: const int MICAN = A15; // MIC in void setup() { Serial1.begin(9600); // baud rate setting } void loop() { Serial1.print(analogRead(MICAN));// send mic value over serial delay(100); // for testing } /////////////////////////////////////////////////////////////////////// Receiving: -MSP432 connected to my other Xbee device UART pins 3.2, 3.3 -MSP432 connected to LTC1658 14-bit DAC. -DAC is connected to pins 1.6 (MOSI, or input), 4.3 (CS), and 1.5 (SCLK) CODE Rx: const int slaveSelectPin = 6; // CS for the DAC #include <SPI.h> int DacVal = 0; // value to be sent to the dac void setup() { Serial1.begin(9600);//baud rate setting //spi crap pinMode (slaveSelectPin, OUTPUT); SPI.setClockDivider(SPI_CLOCK_DIV4); SPI.begin(); } void loop() { if (Serial1.available()>0) {// If there is SHIT in the buffer DacVal = Serial1.read(); } //YOUR POST PROCESING HERE!!!!!!! DACWrite(DacVal); } void DACWrite(int Val) { char LSBs; char MSBs; // take the SS pin low to select the chip: //Split the int to 2 chars, the bit shift may be off, but i dont have any hardware to test on LSBs=char(Val); MSBs=char(Val>>8); digitalWrite(slaveSelectPin,LOW); // send in the address and value via SPI 1 byte at a time: SPI.transfer(LSBs); SPI.transfer(MSBs); // take the SS pin high to de-select the chip: digitalWrite(slaveSelectPin,HIGH); } ////////////////////////////////////// And basically I am not getting values that are correct when I put a oscilloscope on the output of the DAC. I am thinking my problem is somewhere in the Rx code because when my Tx board is setup I am reading the values from my other zigbee through the computer successfully. Any help would be great, thank you!!
  5. Hi, I am new to MSP432 and Xbee devices. I am trying to use the MSP432 and the Diji Xbee S1 to transmit and receive audio signals. However, I can't seem to transmit data over the Xbee. I just have the xbee module connected to pins: 3.3V, Ground, pin 3.3 transmitter and 3.2 receiver... I have confirmed that the Xbee's communicate using XCTU. Code: void setup() { Serial.begin(9600);// baud rate setting } void loop() { Serial.print("Failing");// send mic value over serial delay(100);// for testing } I can see the "Failing" showing up on the com port but not on the other xbee on the XTCU console screen. Any help would be much appreciated.
  6. Justo got my new BeagleBone Black. I had Xbee explorer that i used with Arduino Uno. Need help to connect Xbee to BBB and receive data.
  7. Over the past 10 years I've used various micro-controllers and devices to monitor and control my home heating and cooling system, water heater, sump pump, humidifier, AC power, lights, as well as a custom security system. After downsizing and moving into a condo a couple years ago, I also downsized my system toys, much to my wife's relief. But I am currently using a BeagleBoardXM to monitor our gas furnace and relevant weather datapoints. I thought I would share some of this project with anyone who might be interested. The heart of the monitoring system is a BeagleBoardXm running Ubuntu 13.04 headless. The program itself is written in Python 2.7.4. Data passed to the program consists of whether the furnace's gas burner is on or off, the temperature and humidity inside our home and the temperature, wind chill and wind speed outside. These 6 data points are uploaded to Xively every 60 seconds where they are automatically graphed for web analysis. In addition all data is logged to the BeagleBoard's SD card everytime the status of the furnace changes. To be more specific about the hardware, a 24VAC relay is connected to the furnace's gas valve. It's normally closed contacts are connected to a digital input pin on a Xbee radio module. The Xbee is set up in I/O line passing mode. When the furnace fires, pin D3 goes High, which is reflected on another Xbee, also running in I/O line passing mode, connected to a USB port on the BeagleBoard. This Xbee then sends a 13 byte packet to the serial port which is read by the Python program. I could add more appliances to the Xbee in our utility room, for example, the water heater, clothes washer/dryer and AC power. But for now I'm keeping things minimal. To measure the temperature and humidity inside our home, I'm using a Phidgets 8/8/8 Interface Board. Phidgets temperature and humidity sernsors are connected to a couple of its analog inputs. Here again I could add more sensors. To get outside conditions, I'm pulling down metadata from WeatherBug.com, parsing its 30 some data elements and retreiving just temperature, wind chill and wind speed. Those seemed to be the things most relevant to how much my furnace runs. Then as I mentioned, these 6 data elements are uploaded to Xively.com for online viewing. This has come in handy when we are away to make sure things are running OK at home. Here's a link to my account: https://xively.com/feeds/97217%C2'> It may not always be updating, as I fiddle around with the program. I use MobaXterm to SSH into the BeagleBoardXm and WinSCP for more extensive file management, both from my Windows machine through our home network. I did find it necessary to setup a static IP adress for the BBXm. Some of the Python packages this project uses are: PySerial, Mechanize and Phidgets. I'm using an embedded class from: github.com/mattvenn/cosm to format the data elements into a format suitable for uploading to Xively. Interestingly, Pachube was bought by Cosm and finally by Xively during the years I have been using them to graph my data. I also managed to get my sound working and may use it for audible warnings or messages. Perhaps more to come...
  8. Electric stitches has a wonderful tutorial on talking to your beaglebone via a xbee radio. He's using the python-xbee API.