SlideShare une entreprise Scribd logo
1  sur  6
RF Modem Robotics Project
Rob Arnold
Robot.guy@gte.net
Ruf Bot uses the TWS 434 RF system
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. 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
Top view of the robot showing construction on a small breadboard
A schematic of this circuit
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. 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.
The PIC reads and transmits joystick information
At this point implications are easy to see. From the numbers transmitted we can
determine direction (left, right, etc) and also extent, or how far left and how far right.
With this information speed control can be introduced. The further the number from 128
(center) the more speed is applied. In this example I used the pins on PORTA of the PIC
to control the motor direction and no speed control is used. Since our serial data is 10 bits
in length (1 start bit, 8 data bits, 1 stop bit) we can send 960 commands to the receiving
PIC in one second. Not bad for under $20 in parts. Using antennas made for 900Mhz
cordless telephones I was able to get a range of 350 feet outdoors, and when I boosted
transmitter power slightly past 12 volts (not recommended) I achieved a distance of 500
feet.
Note: I used the linear output on the reciever because I wanted to see how much noise it
would take to distort the signal before it became useless. To my suprise the signal
strength (at 500 feet) dropped off before any noise on the frequency caused problems.
The following code snippets show how easy it is to work these parts into your system.
TX CODE:
symbol trisb = 134
symbol trisa = 133
symbol portb = 6
symbol porta = 5
poke trisa, 1
low 1 'use this line if enable pin on 245 is not
grounded.
input 0
start:
B0 = 0
pot 0,25,B0
serout 1,n9600,(B0)
goto start
left:
serout 1,n2400,(255)
goto start
right:
serout 1,n2400,(1)
goto start
end
RX CODE:
symbol trisb = 134
symbol trisa = 133
symbol portb = 6
symbol porta = 5
poke trisa ,0
poke porta ,0
low 0
input 1
start:
B0 = 0
serin 1,n9600,B0
if B0 > 150 then right
if B0 < 106 then left
goto stop
right:
poke porta, 6
goto start
left:
poke porta, 9
goto start
stop:
poke porta, 0
goto start
end
symbol portb = 6
symbol porta = 5
poke trisa, 1
low 1 'use this line if enable pin on 245 is not
grounded.
input 0
start:
B0 = 0
pot 0,25,B0
serout 1,n9600,(B0)
goto start
left:
serout 1,n2400,(255)
goto start
right:
serout 1,n2400,(1)
goto start
end
RX CODE:
symbol trisb = 134
symbol trisa = 133
symbol portb = 6
symbol porta = 5
poke trisa ,0
poke porta ,0
low 0
input 1
start:
B0 = 0
serin 1,n9600,B0
if B0 > 150 then right
if B0 < 106 then left
goto stop
right:
poke porta, 6
goto start
left:
poke porta, 9
goto start
stop:
poke porta, 0
goto start
end

Contenu connexe

En vedette

Docker du poste de dev à la prod
Docker du poste de dev à la prodDocker du poste de dev à la prod
Docker du poste de dev à la prodbitardo
 
Unit 6d Dwelling insurance
Unit 6d Dwelling insuranceUnit 6d Dwelling insurance
Unit 6d Dwelling insuranceAndrew Hingston
 
Эффект Рингельмана
Эффект РингельманаЭффект Рингельмана
Эффект РингельманаVadim Zhartun
 
Londons Digital Neighbourhoods Workshop - Background Paper
Londons Digital Neighbourhoods Workshop - Background PaperLondons Digital Neighbourhoods Workshop - Background Paper
Londons Digital Neighbourhoods Workshop - Background PaperNetworked Neighbourhoods
 
My Holidays
My HolidaysMy Holidays
My HolidaysMIKOT
 
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesi
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesiAltunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesi
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesiaokutur
 
Информационный вестник Сентябрь 2012
Информационный вестник Сентябрь 2012Информационный вестник Сентябрь 2012
Информационный вестник Сентябрь 2012Ingria. Technopark St. Petersburg
 
IR-ranking
IR-rankingIR-ranking
IR-rankingFELIX75
 
Mapping Communications Strategies to Resonate With the New Buyer
Mapping Communications Strategies to Resonate With the New BuyerMapping Communications Strategies to Resonate With the New Buyer
Mapping Communications Strategies to Resonate With the New Buyerprnewswire
 
Abya Yala, L'Amèrica Marginada
Abya Yala, L'Amèrica MarginadaAbya Yala, L'Amèrica Marginada
Abya Yala, L'Amèrica MarginadaJoan Inglada
 
McAfee Data Protection
McAfee Data ProtectionMcAfee Data Protection
McAfee Data ProtectionAndrei Novikau
 
Låt analysen driva Er digitala transformation!
Låt analysen driva Er digitala transformation!Låt analysen driva Er digitala transformation!
Låt analysen driva Er digitala transformation!Mattias Malmnäs
 
Mongara presentation
Mongara presentationMongara presentation
Mongara presentationMongara AB
 
Presentasjon 8 klasse høst 2013 (2)
Presentasjon 8 klasse høst 2013 (2)Presentasjon 8 klasse høst 2013 (2)
Presentasjon 8 klasse høst 2013 (2)Aud Hakestad
 

En vedette (20)

Docker du poste de dev à la prod
Docker du poste de dev à la prodDocker du poste de dev à la prod
Docker du poste de dev à la prod
 
Unit 6d Dwelling insurance
Unit 6d Dwelling insuranceUnit 6d Dwelling insurance
Unit 6d Dwelling insurance
 
Эффект Рингельмана
Эффект РингельманаЭффект Рингельмана
Эффект Рингельмана
 
Point in-time count training 2014
Point in-time count training 2014Point in-time count training 2014
Point in-time count training 2014
 
Point-in-Time Count Training 2014
Point-in-Time Count Training 2014Point-in-Time Count Training 2014
Point-in-Time Count Training 2014
 
Londons Digital Neighbourhoods Workshop - Background Paper
Londons Digital Neighbourhoods Workshop - Background PaperLondons Digital Neighbourhoods Workshop - Background Paper
Londons Digital Neighbourhoods Workshop - Background Paper
 
My Holidays
My HolidaysMy Holidays
My Holidays
 
himno ecuador
himno ecuadorhimno ecuador
himno ecuador
 
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesi
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesiAltunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesi
Altunizade Kültür Merkezi 18 Nisan 2014 Müzikli Maarif Takvimi gecesi
 
Информационный вестник Сентябрь 2012
Информационный вестник Сентябрь 2012Информационный вестник Сентябрь 2012
Информационный вестник Сентябрь 2012
 
IR-ranking
IR-rankingIR-ranking
IR-ranking
 
Sustainable fishing, Teichiami by future evangelist @Impact Hub Kyoto 2014.11.30
Sustainable fishing, Teichiami by future evangelist @Impact Hub Kyoto 2014.11.30Sustainable fishing, Teichiami by future evangelist @Impact Hub Kyoto 2014.11.30
Sustainable fishing, Teichiami by future evangelist @Impact Hub Kyoto 2014.11.30
 
iakhomasuridze
iakhomasuridzeiakhomasuridze
iakhomasuridze
 
De Todo C Orazon
De  Todo  C OrazonDe  Todo  C Orazon
De Todo C Orazon
 
Mapping Communications Strategies to Resonate With the New Buyer
Mapping Communications Strategies to Resonate With the New BuyerMapping Communications Strategies to Resonate With the New Buyer
Mapping Communications Strategies to Resonate With the New Buyer
 
Abya Yala, L'Amèrica Marginada
Abya Yala, L'Amèrica MarginadaAbya Yala, L'Amèrica Marginada
Abya Yala, L'Amèrica Marginada
 
McAfee Data Protection
McAfee Data ProtectionMcAfee Data Protection
McAfee Data Protection
 
Låt analysen driva Er digitala transformation!
Låt analysen driva Er digitala transformation!Låt analysen driva Er digitala transformation!
Låt analysen driva Er digitala transformation!
 
Mongara presentation
Mongara presentationMongara presentation
Mongara presentation
 
Presentasjon 8 klasse høst 2013 (2)
Presentasjon 8 klasse høst 2013 (2)Presentasjon 8 klasse høst 2013 (2)
Presentasjon 8 klasse høst 2013 (2)
 

Dernier

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Dernier (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

New Microsoft Word Document

  • 1. RF Modem Robotics Project Rob Arnold Robot.guy@gte.net Ruf Bot uses the TWS 434 RF system 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. 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
  • 2. Top view of the robot showing construction on a small breadboard A schematic of this circuit 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
  • 3. 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. 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. The PIC reads and transmits joystick information
  • 4. At this point implications are easy to see. From the numbers transmitted we can determine direction (left, right, etc) and also extent, or how far left and how far right. With this information speed control can be introduced. The further the number from 128 (center) the more speed is applied. In this example I used the pins on PORTA of the PIC to control the motor direction and no speed control is used. Since our serial data is 10 bits in length (1 start bit, 8 data bits, 1 stop bit) we can send 960 commands to the receiving PIC in one second. Not bad for under $20 in parts. Using antennas made for 900Mhz cordless telephones I was able to get a range of 350 feet outdoors, and when I boosted transmitter power slightly past 12 volts (not recommended) I achieved a distance of 500 feet. Note: I used the linear output on the reciever because I wanted to see how much noise it would take to distort the signal before it became useless. To my suprise the signal strength (at 500 feet) dropped off before any noise on the frequency caused problems. The following code snippets show how easy it is to work these parts into your system. TX CODE: symbol trisb = 134 symbol trisa = 133
  • 5. symbol portb = 6 symbol porta = 5 poke trisa, 1 low 1 'use this line if enable pin on 245 is not grounded. input 0 start: B0 = 0 pot 0,25,B0 serout 1,n9600,(B0) goto start left: serout 1,n2400,(255) goto start right: serout 1,n2400,(1) goto start end RX CODE: symbol trisb = 134 symbol trisa = 133 symbol portb = 6 symbol porta = 5 poke trisa ,0 poke porta ,0 low 0 input 1 start: B0 = 0 serin 1,n9600,B0 if B0 > 150 then right if B0 < 106 then left goto stop right: poke porta, 6 goto start left: poke porta, 9 goto start stop: poke porta, 0 goto start end
  • 6. symbol portb = 6 symbol porta = 5 poke trisa, 1 low 1 'use this line if enable pin on 245 is not grounded. input 0 start: B0 = 0 pot 0,25,B0 serout 1,n9600,(B0) goto start left: serout 1,n2400,(255) goto start right: serout 1,n2400,(1) goto start end RX CODE: symbol trisb = 134 symbol trisa = 133 symbol portb = 6 symbol porta = 5 poke trisa ,0 poke porta ,0 low 0 input 1 start: B0 = 0 serin 1,n9600,B0 if B0 > 150 then right if B0 < 106 then left goto stop right: poke porta, 6 goto start left: poke porta, 9 goto start stop: poke porta, 0 goto start end