![]() Great features and a simple to use and easy to navigate interface makes CoolTerm a great application for your data transfer needs. CoolTerm is a simple application from Roger Meier that is geared toward hobbyists and professionals like you that need to exchange data with hardware devices such as servo controllers, robotic kits, GPS receivers, and microcontrollers that are connected via serial port. Simply write the name of the colour you want.If you are in search of an application that will make it easy to transfer data to devices that are connected to your Windows PC via serial port and you’ve scoured the internet to no ends and have tried all others, don’t worry we’ve got just what you need. Once this is done… it is ready for communication. This will enable sending one string at a time instead of individual characters. The only change you need to do respect to the previous tutorial is enabling Line mode under Options>Terminal. Connect the “A” XBee with its USB adaptor to the computer and open CoolTerm program. So, disconnect the USB from the Arduino and power it with batteries (or use one computer to power and another to communicate). The second option is using the other XBee (from our previous tutorial) and the program CoolTerm to send data through the XBee. First, using the same computer that is already connected by USB with the Arduino, open the Serial Monitor in the Arduino UI and write the colour of the LED you want to be on.Īs you can see my electrical set-up is not as tidy as the schematic… but it works. Communicate There is 2 ways of communication. If there is data on the XBeeSerial port, read it and ligth the corresponding lights If there is data on the Serial port, read it and ligth the corresponding lights Serial.begin(9600) // start serial port at 9600 bps: ![]() Some variables for the LEDs and reading the Serial including this file allows us to create another Serial port using pins 6 and 7 Arduino serial comunication happens through the USB or on the pins TX and RX Depending on what we read from the Serial, we turn on one LED or other. Simply reads from Serial (USB) or from the new serial defined in ports 6 and 7 to comunicate with the XBee. As you can see, the code comments explain what it does. These two pins are going to be used for serial communication between the Arduino and the XBee.įor other alternatives to communicate between a microcontroler and the XBee, the parallax webpage gives a good support here. To be able to communicate with the XBee you need to power it (+5V to pin VDD and ground to VSS pin), the Arduino can provide enough power, so use it. Use the ground on the Arduino to close the circuit. Remember to use an appropriate resistor to limit the amount of current. ![]() We connect 3 LED to pins 9,9,10 on the Arduino. Using one computer or the other we are going to switch LED on and off. We will have an Arduino board connected by USB to one computer and by radio (using a pair of XBee) to another computer. XBee 001 Basic example: radio-chat between 2 PC This is the “B” module from my previous tutorial… and we will start asumming that the XBee has been set up using that tutorial. The starting point of this tutorial is that I add some breakaway headers to the XBee’s USB breadboard adapter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |