RF Modem Robotics Project using PIC16F84 microcontroller

RF is just way too cool not to use in your designs. But if you’re a newbie like me it is difficult to successfully build solid RF transmitters and receivers. When I started out I didn’t realize that the larger breadboard I was working off of was causing a lot of the signal deviance because the metal traces on the breadboard worked like small capacitors and changed my circuit dynamics.

Modem Robotics

So after much research I found the Reynolds Electronics RWS and TWS 434 RX/TX pair. I looked into a similar product by MING Microsystems and Radioshack but the Reynolds were superior in performance, cost and ease of use. So with that and two PIC 16F84’s I started working on my serial RF link from my control interface (Joystick) to my robot. You can find these parts at http://www.rentron.com/rf_remote_control.htm

I found that the TX/RX pair and the serial communication built into the PICBasic programming language for my PIC’s worked very well together. I wasn’t sure how well the timing would work using Asynchronous Serial communication at 9600 baud, I expected some problems at this higher speed but in testing found very little error. The actual programming couldn’t be easier since it is written in Basic and uses premade serial communication routines. I simply read the position of the Potentiometer in the joystick using the PICBasic ‘POT’ command and put the result in memory location ‘B0’. From there using the ‘SEROUT’ command I sent the contents of ‘B0’ to pin 6 of the TWS 434 transmitter.

Schematic Modem Robotics

On the receiver end I use the ‘SERIN’ command and read the incoming data from pin 3 on the RWS 434 and put the result in ‘B0’. The value in ‘B0’ directly correlates to joystick position, above 150 is right, below 106 is left, and in between is center. By using these numbers I can define a deadzone.

 

For more detail: RF Modem Robotics Project using PIC16F84 microcontroller

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter