SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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)
 

Último

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 

Último (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

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