Radio Control Basics

Radio Control Basics
I can program in C++ and I would like to start using the serial port to control something very basic.?

I would like to use a C++ program to control a relay or switches or something basic. I am still new to programming but I understand a lot of C++ but defenitly not everything. I know the basics such as polymorphysm, exception handling, classes, ect. I would like my programs to do more than a console so I thought controlling something would be fun. Any help would be great and where I could find something to program. Radio Shack, or best buy would be good. I dont know of any computer places here in kentucky but there might be.

The easiest way to control something (anything) using the serial port would be to get an DB9 connector, an LED and 12kOhm resistor. Solder one lead of the resistor to pin 7 (RTS) of the DB9 connector, the other to one lead of the LED. Solder the other lead of the LED to pin 5 (GND) of the DB9 connector. If you’re programming in Visual C++ or Borland C++, you need search the help files to find out how to programmatically control the state of the RTS pin. By changing the state you can turn the LED on or off.

If you want something more elaborate you’d have to make your own hardware, in other words you’d need to know something about electronics. Or you could get a I/O system from National Instruments and control it using LabView which may not be as much fun for a C++ enthusiast.

Another possibility is to get an application kit for one of the many add-on boards (“RabbitCore”) by Rabbit semiconductor. Then you would actually write code for the single board computer (not your PC). The evaluation boards contain cool stuff such as buzzers, switches, LED’s and sometimes LCD’s that you can control using sample programs or you own code.

RC Body Painting Tips By Parma


Related Blogs

Related posts:

  1. Radio Controlled Ducted Fan
  2. Radio Control Robots

Leave a Reply

*


Performance Optimization WordPress Plugins by W3 EDGE