Raspberry Pi Expansion Board, Supports Arduino XBee Overview Arduino is a massive ecosystem, if there's a way for the Raspberry Pi GPIO interface to adapt to Arduino pinouts, it is possible to use the Pi together with vast Arduino shields and hardware/software resources.
Last week I was doing some research on RF communication and controlling devices using RF. So what am I going to control here, I wanted to control the water pump running in my reservoir without running wires from my raspberry pi. This way I can extend my hydroponic system to more balconies without buying extra RPi, a single RPi will send a switch on/off command and the RF client will switch on/off the motor via a relay.
My research for RF communication platform leads to protocol and component. XBee is a very popular Zigbee complaint product from. For my testing I got two XBee Pro S2 and two The explorer I bought uses USB to A/B cable, if you are buying it make sure buy A/B cable as well. You will get micro usb explorer as well. To configure the XBee’s I use the X-CTU software from Digi, you can download it free from Digi’s. I use the Legacy X-CTU for configuring my modules and for issuing commands. Configuration is pretty simple and so many sites will walk you through it.
I configure my XBee’s as shown below. One XBee act as Coordinator and enabled API mode and another XBee act as router and enabled Router AT. XBee Coordinator •. Destination Address Low: 0000 I left all other settings as default. Connecting to Raspberry pi For testing I connected the XBee coordinator to my computer and XBee Router to my RPi. In RPi I created a simple node app to send some thing to coordinator.
Below diagram will show, how I connected Router XBee to my RPi. Here we use serial communication between RPi and XBee. RPi has only one set of serial communication pin and by default it’s configured for console I/O, there are so many tutorial out there to free it up. I use one from. Image developed using I connected the XBee directly using jumper wires, the above diagram is just for illustration and I use the bread board. Connect RPi 3.3 volt to XBee 3.3 volt pin, Ground to XBee ground, Rx to Xbee Tx (Data Out), Tx to XBee Rx (Data In). Sending some data from Router Xbee to Coordinator Now I wanted to send some data from Router XBee connected to my RPi to the coordinator connected to my Computer.
Kumpulan lagu midi karaoke full lirik gratis. I created a small app using node js, below is the code. To run the code we have to install two node modules.
• xbee-api: npm install xbee-api • serialport: npm install serialport.