For the LEDs, as they are standard ones, it is OK to attach them to digital outputs. The value of the resistor in the potentiometer is not important as we will convert it to a value between 0 and 5V. We basically read an analog value from the variable resistor on the Duemilanove board, transmit it using the RF transmitter to the RF receiver connected to the UNO board, and light red/yellow LED depending on the value. It is good to bend the antenna pins, otherwise when using a breadboard they will be inserted into the breadboard connectors and result in range reduction. We start by naming the connectors in the RF link modules (spreadsheet for receiver / transmitter). I’m reusing 2 Arduino boards (Duemilanove with chip Atmega 328, and UNO), and the Zumo robot from previous post, plus 2 LEDs, one potentiometer, a few wires, one battery (not in the picture), a small cardboard box, and the RF modules (which I bought from Coolcomponents):īefore starting the main project, let’s do a warm up with a basic example on how to work with these RF modules. So, first of all, thanks to Coolcomponents for providing an excellent customer service (basically, even if you order one or two components, they deliver within one or two days at a very low extra cost). Today I’m going to show you how to do it with the cheap RF link modules. Python + Arduino + XBee + Zumo robot XBee 002: radio-chat between PC and Arduino XBee 001 Basic example: radio-chat between 2 PC A few months ago I create some tutorials about how to use Arduino and the XBee to do radio-frequency.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |