SlideShare a Scribd company logo
Basic Structure
DOWN LEFTRIGHT
UP
RX
TX
RF
Receiver
Robot
RX
RF
Transmitter
RX
TX
RX
The Transmitter
MAX232
RX
TX
RXRX
TX
RX
AT89C2051
HT12E
BIT #1
BIT #2
BIT #3
BIT #4
The Receiver (BOT)
L293D
AT89C2051
BIT #1
BIT #2
BIT #3
BIT #4
HT12D
BIT #1
BIT #2
BIT #3
BIT #4
Left Motor
Right Motor
The Application
Sender ThreadEncode data using
selected protocol
Data flow
 The software encodes the motor data using the selected
protocols upon receiving interrupt from the user and then the
sender thread transfers this data to the serial port.
 The 8051 receiving serial data converts it into parallel and
passes it to ht12e encoder.
 The encoder then encodes this 4 bit data into transferable
format and transfers the data to the transmitter.
 The receiver receives this data and ht12d decoder decodes it
into 4-bit parallel data.
 This data is recognized by the 8051 microcontroller and it thus
controls the motors using the l293d motor driver ic.
Protocols
3 bit address 1 bit data mode (3-1 protocol)
1 0 1 1
Address
Main memory (Remote)
1 0 1 1 1 0 1 1
Main memory (Remote)
Data
(encoded)
Data
This means in the main memory set the 3rd
bit (011) (starting from 0) as 1.
In order to transfer full 8 bit data a total of 8 transmissions are needed.
Example :
In order to transfer 10110011 , the following data needs to be sent –
1000 , 1001 , 0010 , 0011 , 1100 , 1101 , 0110 , 1111
Over 4-bit RF line
Protocols
2 bit address 2 bit data mode (2-2 protocol)
1 0 1 1
Address
Main memory (Remote)
1 0 1 1 1 0 1 1
Data
(encoded)
Data
Address 11 means 7th
and 8th
bit thus data
10 will be placed at 7th
and 8th
bit in the main
memory.
In order to transfer full 8 bit data a total of 4 transmissions are needed.
Example :
In order to transfer 10110011 , the following data needs to be sent –
1100 , 0001 , 1110 , 1011
Over 4-bit RF line
1 0 1 1 1 0 1 1
Address lookup
0000011011
Advantages of these protocols
 3-1 protocol is slower than 2-2 protocol but is more efficient in
transferring single bits.
 These protocols ensure there is no loss of data , while
transferring large data over small data packet size.
 2-2 protocol is more efficient in this case as it modifies 2 bits all
together . One motors need 2-bit data. Thus for controlling 2
motors a total of 4 bits in the main memory will be needed
hence the data will be transferred in only 2 transmissions (with
2-2 protocol) or in 4 transmissions (with 3-1 protocol).
 The remaining 4 bits can be used for some other data like
headlights and horn (Note : I am limited to one direction data
transfer).
Software architecture
Sender ThreadEncode data using
selected protocol
Sender ThreadEncode data using
selected protocol
The user can either control the robot using
Arrow keys or buttons. It also has bit edit
Functionality to send custom data to the
Robot. As soon as the user presses a arrow key an the sender thread calls the
Required command sequence and sends to the serial port. (Note : only starting
4 – bits are used)
Turn left :
send 00000000
delay
send 00001010
delay
Turn Right :
send 00000000
delay
send 00000101
delay
Forward :
send 00000000
delay
send 00000110
delay
Backward :
send 00000000
delay
send 00001001
delay
Precautions of motor control
 The dc motors connected to the motor driver
cannot be turned instantaneously rather a
delay (minimum of 50 ms) is required while
turning from one direction to another.
Screenshot

More Related Content

What's hot

8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)
divyangpit
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
Pallav Shukla
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
Dinesh Subhuraaj
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
Aniket Bhute
 
8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
LingalaSowjanya
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
abhikalmegh
 
Master synchronous serial port (mssp)
Master synchronous serial port (mssp)Master synchronous serial port (mssp)
Master synchronous serial port (mssp)
babak danyal
 
8251 USART
8251 USART8251 USART
8251 USART
coolsdhanesh
 
Naveen UART BATCH 43
Naveen UART BATCH 43Naveen UART BATCH 43
Naveen UART BATCH 43
Naveen Chinnasamy
 
Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
Desty Rahayu
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
Naveen Chinnasamy
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
eSAT Publishing House
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
Techvilla
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
Rashmi
 
4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc
Doped Maverick
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
Sai_praneeth
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
ShivamSood22
 
UART
UARTUART

What's hot (18)

8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
 
8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
Master synchronous serial port (mssp)
Master synchronous serial port (mssp)Master synchronous serial port (mssp)
Master synchronous serial port (mssp)
 
8251 USART
8251 USART8251 USART
8251 USART
 
Naveen UART BATCH 43
Naveen UART BATCH 43Naveen UART BATCH 43
Naveen UART BATCH 43
 
Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
UART
UARTUART
UART
 

Similar to RC Car detailed analysis

serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
KiranG731731
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
UshaRani289
 
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PImplementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
IRJET Journal
 
Vehicle tracking system with thiefth protection
Vehicle tracking system with thiefth protectionVehicle tracking system with thiefth protection
Vehicle tracking system with thiefth protection
Sarfz Ahmad
 
Fire Fighter Robot with Night Vision Camera (1).pptx
Fire Fighter Robot with Night Vision Camera (1).pptxFire Fighter Robot with Night Vision Camera (1).pptx
Fire Fighter Robot with Night Vision Camera (1).pptx
SyedMohiuddin62
 
8051 serial communication1
8051 serial communication1 8051 serial communication1
8051 serial communication1
vijaydeepakg
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
Teju Kotti
 
RFID Based Toll Gate System
RFID Based Toll Gate SystemRFID Based Toll Gate System
RFID Based Toll Gate System
Ameer Khan
 
DLT645 protocol english version
DLT645 protocol english versionDLT645 protocol english version
DLT645 protocol english version
Ricky Yang
 
Cdma
CdmaCdma
A010240110
A010240110A010240110
A010240110
IOSR Journals
 
Basic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth DevicesBasic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth Devices
Premier Farnell
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
SPonmalar1
 
An5006
An5006An5006
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
8251 a basic
8251 a basic8251 a basic
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device Driver
Emblogic
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
Sudhanshu Janwadkar
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
MeenaAnusha1
 
RF ID_toll2
RF ID_toll2RF ID_toll2
RF ID_toll2
Vibhor Rampall
 

Similar to RC Car detailed analysis (20)

serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PImplementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
 
Vehicle tracking system with thiefth protection
Vehicle tracking system with thiefth protectionVehicle tracking system with thiefth protection
Vehicle tracking system with thiefth protection
 
Fire Fighter Robot with Night Vision Camera (1).pptx
Fire Fighter Robot with Night Vision Camera (1).pptxFire Fighter Robot with Night Vision Camera (1).pptx
Fire Fighter Robot with Night Vision Camera (1).pptx
 
8051 serial communication1
8051 serial communication1 8051 serial communication1
8051 serial communication1
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
 
RFID Based Toll Gate System
RFID Based Toll Gate SystemRFID Based Toll Gate System
RFID Based Toll Gate System
 
DLT645 protocol english version
DLT645 protocol english versionDLT645 protocol english version
DLT645 protocol english version
 
Cdma
CdmaCdma
Cdma
 
A010240110
A010240110A010240110
A010240110
 
Basic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth DevicesBasic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth Devices
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
 
An5006
An5006An5006
An5006
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device Driver
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
RF ID_toll2
RF ID_toll2RF ID_toll2
RF ID_toll2
 

Recently uploaded

学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 

Recently uploaded (20)

学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 

RC Car detailed analysis

  • 1.
  • 4. The Receiver (BOT) L293D AT89C2051 BIT #1 BIT #2 BIT #3 BIT #4 HT12D BIT #1 BIT #2 BIT #3 BIT #4 Left Motor Right Motor
  • 5. The Application Sender ThreadEncode data using selected protocol
  • 6. Data flow  The software encodes the motor data using the selected protocols upon receiving interrupt from the user and then the sender thread transfers this data to the serial port.  The 8051 receiving serial data converts it into parallel and passes it to ht12e encoder.  The encoder then encodes this 4 bit data into transferable format and transfers the data to the transmitter.  The receiver receives this data and ht12d decoder decodes it into 4-bit parallel data.  This data is recognized by the 8051 microcontroller and it thus controls the motors using the l293d motor driver ic.
  • 7. Protocols 3 bit address 1 bit data mode (3-1 protocol) 1 0 1 1 Address Main memory (Remote) 1 0 1 1 1 0 1 1 Main memory (Remote) Data (encoded) Data This means in the main memory set the 3rd bit (011) (starting from 0) as 1. In order to transfer full 8 bit data a total of 8 transmissions are needed. Example : In order to transfer 10110011 , the following data needs to be sent – 1000 , 1001 , 0010 , 0011 , 1100 , 1101 , 0110 , 1111 Over 4-bit RF line
  • 8. Protocols 2 bit address 2 bit data mode (2-2 protocol) 1 0 1 1 Address Main memory (Remote) 1 0 1 1 1 0 1 1 Data (encoded) Data Address 11 means 7th and 8th bit thus data 10 will be placed at 7th and 8th bit in the main memory. In order to transfer full 8 bit data a total of 4 transmissions are needed. Example : In order to transfer 10110011 , the following data needs to be sent – 1100 , 0001 , 1110 , 1011 Over 4-bit RF line 1 0 1 1 1 0 1 1 Address lookup 0000011011
  • 9. Advantages of these protocols  3-1 protocol is slower than 2-2 protocol but is more efficient in transferring single bits.  These protocols ensure there is no loss of data , while transferring large data over small data packet size.  2-2 protocol is more efficient in this case as it modifies 2 bits all together . One motors need 2-bit data. Thus for controlling 2 motors a total of 4 bits in the main memory will be needed hence the data will be transferred in only 2 transmissions (with 2-2 protocol) or in 4 transmissions (with 3-1 protocol).  The remaining 4 bits can be used for some other data like headlights and horn (Note : I am limited to one direction data transfer).
  • 10. Software architecture Sender ThreadEncode data using selected protocol Sender ThreadEncode data using selected protocol The user can either control the robot using Arrow keys or buttons. It also has bit edit Functionality to send custom data to the Robot. As soon as the user presses a arrow key an the sender thread calls the Required command sequence and sends to the serial port. (Note : only starting 4 – bits are used) Turn left : send 00000000 delay send 00001010 delay Turn Right : send 00000000 delay send 00000101 delay Forward : send 00000000 delay send 00000110 delay Backward : send 00000000 delay send 00001001 delay
  • 11. Precautions of motor control  The dc motors connected to the motor driver cannot be turned instantaneously rather a delay (minimum of 50 ms) is required while turning from one direction to another.