Hi Everyone,
It’s my first time doing project involving XBEE. Any help will be appreciated. Here is the scope of the project.
The project consists of 3 devices.
Objective: To capture the readings from the two accelerometers sensors and store them into the flashdrive using wireless device.
Sensor 1: Tri-axle digital accelermeter + PIC18F + XBEE
Sensor 2: Tri-axle digital acclermeter + PIC18F + XBEE
Base Station: XBEE + PIC18F + Flashdrive
I have 2 questions:
-
How to set up/program the XBEE devices?
-
Is there any sample codes for it?
P.S. I am programming the PICs in C.
Thank you in advance!
kenetic2003:
Hi Everyone,
It’s my first time doing project involving XBEE. Any help will be appreciated. Here is the scope of the project.
The project consists of 3 devices.
Objective: To capture the readings from the two accelerometers sensors and store them into the flashdrive using wireless device.
Sensor 1: Tri-axle digital accelermeter + PIC18F + XBEE
Sensor 2: Tri-axle digital acclermeter + PIC18F + XBEE
Base Station: XBEE + PIC18F + Flashdrive
I have 2 questions:
-
How to set up/program the XBEE devices?
-
Is there any sample codes for it?
P.S. I am programming the PICs in C.
Thank you in advance!
Suggestions
Use the XBee Series one modules with the firmware load in them that does wireless serial port extension. You program a microprocessor to talk to the XBee using a UART and 3.3V logic levels. That micro talks to the sensors.
The sensor XBee + microprocessor talk wirelessly to another XBee that is connected to, what, a PC? If so, get an XBee board with USB or RS232 for that end.
I recommend using an Atmel AVR microprocessor rather than a PIC 18F, for many reasons including the lack of a real stack in the PICs, and the need for RAM bank switching. These are hidden to the C programmer but cause silly machine code to be needed. The AVR’s have Atmel’s Studio and the free and unrestricted GCC compiler called WinAVR. Microchip’s C has a student version with a time limit after which the code bloats out and that can lead to insufficient memory capacity ($$$). I don’t know of a good/free/unlimited PIC C compiler- though there are several for sale. See also avrfreaks.net forum. In the PROJECTS section there you may find relevant examples.
But PIC is popular among students.
I found this to be very helpful:
http://selmaware.com/appbee/AppBee_Doc.PDF
And of course if you haven’t read the XBee documentation, you should. It’s very good.
Hi everyone,
My name is Zac and I am doing a smart meter home application, Zigbee network, for my senior project.
I am actually reaching out to you because I am, kind of, desperate.
I need to have my project done in one week and I still have not figured out how to wirelessly communicate the microcontroller 18f4550 with the XBEE pro2b. I am using MPLAB with HI-TECH C compiler, and also Microchip C18 compiler, but I cannot figure out a code to make both communicate wirelessly.
Please, I really need somebody help. All I need to do is to write a code that will allow the 18f4550 put the XBEE in API command, or AT command, and send commands that will make the XBEE (coordinator) to turn on/off a smart plug, digi XBEE smart plug, that is linked to the network. That’s at least the first step I want to achieve.
I am also looking to write a code that will turn off the smart plug in a specific time. Please, if you can help me do so I need to graduate.
Thanks for your time,
Courteously,
Zac
Garcp23:
Hi everyone,
My name is Zac and I am doing a smart meter home application, Zigbee network, for my senior project.
I am actually reaching out to you because I am, kind of, desperate.
…
Please, if you can help me do so I need to graduate.
Thanks for your time,
Courteously,
Zac
Uh oh. Zac discovers the consequences of procrastination!
In private industry, the consequences are: Your’e Fired!