All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Abstract: Control functionality of modern vehicles is getting more and more complex. Programming complex embedded systems involves reasoning through intricate system interactions along paths between sensors, actuators and control processors. This is a time-consuming and error-prone process. Furthermore, the resulting…
Omkar Kudalkar
updated on 30 Sep 2021
Abstract: Control functionality of modern vehicles is getting more and more complex. Programming complex embedded systems involves reasoning through intricate system interactions along paths between sensors, actuators and control processors. This is a time-consuming and error-prone process. Furthermore, the resulting code generally lacks modularity and robustness. Model-based programming addresses these limitations, allowing engineers to program by specifying high-level control strategies and by assembling common-sense models of the system hardware and software.
Introduction:
Today’s software development has big challenges to master like shortened development times for the cars in total versus longer development times for the software, high safety requirements and especially the growing complexity because of the rising number of functions and the increasing interaction between the functions. To master these challenges car producers and suppliers conduct a paradigm change in the software development from hand-coded to model-based development. 2 A model-based development process is specifically attractive in embedded domains like Automotive Software due to the fact that development in these domains is driven by two strong forces:
Earlier, many embedded applications were developed using assembly level programming. However, they did not provide portability. This disadvantage was overcome by the advent of various high-level languages like C, Pascal, and COBOL. However, it was the C language that got extensive acceptance for embedded systems, and it continues to do so. The C code written is more reliable, scalable, and portable; and in fact, much easier to understand. Embedded C Programming is the soul of the processor functioning inside each and every embedded system we come across in our daily life, such as mobile phones, washing machines, and digital cameras. Each processor is associated with embedded software. The first and foremost thing is the embedded software that decides to function of the embedded system. Embedded C language is most frequently used to program the microcontroller
What is C Language?
C language was developed by Dennis Ritchie in 1969. It is a collection of one or more functions, and every function is a collection of statements performing a specific task.
C language is a middle-level language as it supports high-level applications and low-level applications. Before going into the details of embedded C programming, we should know about RAM memory organization.
The main features of the C language include the following.
What is an Embedded C Programming ?
In every embedded system based projects, Embedded C programming plays a key role to make the microcontroller run & perform the preferred actions. At present, we normally utilize several electronic devices like mobile phones, washing machines, security systems, refrigerators, digital cameras, etc. The controlling of these embedded devices can be done with the help of an embedded C program. For example in a digital camera, if we press a camera button to capture a photo then the microcontroller will execute the required function to click the image as well as to store it. Embedded C programming builds with a set of functions where every function is a set of statements that are utilized to execute some particular tasks. Both the embedded C and C languages are the same and implemented through some fundamental elements like a variable, character set, keywords, data types, declaration of variables, expressions, statements. All these elements play a key role while writing an embedded C program.
The embedded system designers must know about the hardware architecture to write programs. These programs play a prominent role in monitoring and controlling external devices. They also directly operate and use the internal architecture of the microcontroller, such as interrupt handling, timers, serial communication, and other available features.
1. Differentiate between the embedded C programming and model based system approaches.
Parameters | C | Embedded C |
GENERAL |
|
|
DEPENDENCY |
|
|
COMPILER |
|
|
USABILITY AND APPLICATION |
|
|
The first remote controllers were developed in the early 1990s, and the first remotes were connected with wires to devices. Nowadays remotes use infrared control and thus are capable of controlling several things at a time. The remotes are not only used for entertainment, but also for industries, military requirements, and recreation. Infrared remote controls were developed in the late 1970s. These remote controls are based on the principle of using infrared light as the medium of communication. And use photo receptors and different light frequencies for different functions. These remotes also use invisible light beams to send signals to electronic devices. Radio-controlled or remote-controlled toys, popularly called RC toys, are self-powered and can be controlled from a distance using a remote that works with radio waves.
To build a RC car we need to make sure that these blocks are available. The above blocks are divided into two sections Remote and Car for the purpose of understanding. Starting from Keypad which controls the movement of the Car whereas Encoder and decoders are meant to encode and decode the movement signals for secured transmission. Also transmitter sends the movement signals through wireless medium and receiver fetches the signals for the destination.
The above Remote control Circuit consists of three important components Keypad, Encoder IC HT12E and a RF Transmitter RF433 module.
KEYPAD: The Keypad for our remote is made up of four individual buttons which is wired to the data pins of the data pins AD0 to AD3 of the encoder IC. When these buttons are pressed it passes the movement signals to the encoder,
ENCODER HT12E: This encoder serves the purpose of encoding the movement signals fed by the individual buttons. The Data pins AD0 to AD3 is active low hence pressing the button closes the circuit and a logic 1 or high signal is fed to these pins. It also contains Address Pins A0 to A7 which allow us to try out different address combinations for secured transmission of data but make sure you use the same address combination in the receiving end (decoder). In the above circuit we did’t try out any address combinations hence all the pins are grounded. The Dout Pin gives the encoded output data.
RF433 TX: This is a simple RF433 TX module which operates at frequency at 433MHz. The encoded data from the Encoder is fed into DIN pin of the TX and a simple antenna is attached to its 4th pin.
OSCILLATOR FREQUENCY: The Oscillator frequency of HT12E is 3.25Khz (refer the oscillation frequency vs supply voltage graph in the datasheet). This frequency is fixed using the resistor R1 ( 1.1M ) . Modifying this resistor value will alter the output frequency.
RF433 RX: This simple RF433 RX module which operates at 433MHz. The received encoded data signals are received through the antenna and the signal is obtained from DATA pin to feed the decoder.
HT12D DECODER: The encoded signals from the RX module is fed into the DIN pin of the decoder. The signal is then decoded by the decoder; remember to use the same address combination used in the encoder if any otherwise the movement signals will be interpreted incorrectly. The decoder also consists of VT pin which serves as a identification if any RF link is established, LED was connected to this pin for identification.
OSCILLATION FREQUENCY: For successful reception of incoming signal and decode them, the HT12D oscillation frequency should be 50 times the encoder oscillation frequency. In our case HT12E oscillation frequency is 3.25 KHz, hence our decoder oscillation frequency should be 162.5 KHz. Fixing the value of R1 as 62K does this job (refer the oscillation frequency vs supply voltage graph in the datasheet).
L293D: This IC serves as a Bidirectional motor driver. It is highly impossible to drive heavy loads such as motors using decoder IC hence we have used a dedicated L293D IC for this purpose.
MOTORS: Two simple DC motors are used for the movement of RC Car. A motor for moving the Car forward and backwards whereas the other one is used to steer the car left and right.
b.) What are the differences between a remote control toy car and an actual electric vehicle?
Functions |
RC Toy CAR |
EV |
Movement of the car |
Buttons need to be pressed on a joystick to move the car in the required direction |
Throttle/Brake and Steering combination |
Signal transmission to the motor |
Antenna and Radio waves - radio wave signals are generated in the form of electrical pulses that travel through the air and activate the motor |
ADC and PWM - when the throttle/brake is pressed, the analog signal from the respective actuator goes through an ADC to be fed into the PWM, which through a duty cycle ratio controls how much power the motor should produce |
Motor type |
Two quadrant + Servo - for forward and reverse motoring, and the servo for turning left and right |
Four quadrant - forward and reverse motoring, forward and reverse braking |
Gear transmission system |
Single gear - speed and torque cannot be varied, thus the speed of an RC toy car can't be changed |
Continuously variable transmission/multiple gears - to vary the speed and torque given to the wheels to make the vehicle go faster or slow |
Braking system |
No braking system; either on standby or at full speed and thus uncontrollable |
Hydraulic and mechanical brakes |
Chassis, frame, outer body |
Mostly made of plastic, easily damaged and breakable |
Steel or aluminium alloys for chassis, aluminium and carbon composites for body |
2. c. State its limitations
Limitation of EV:
Limitation of RC Toy CAR:
The batteries are often at the root of many RC problems. Not running at all, running very slowly, or even stopping suddenly can be battery-related.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week 1 Understanding Different Battery Chemistry
Abstract: The Lithium-ion battery is one of the most common batteries used in Electric Vehicles (EVs) due to the specific features of high energy density, power density, long life span and environment friendly. With the development of lithium-ion battery technology, different materials have been adopted in the design of…
14 Dec 2021 02:03 AM IST
Week 8 Challenge:Thermal Management
Abstract: Control functionality of modern vehicles is getting more and more complex. Programming complex embedded systems involves reasoning through intricate system interactions along paths between sensors, actuators and control processors. This is a time-consuming and error-prone process. Furthermore, the…
30 Sep 2021 05:06 AM IST
UML (Unified Modeling Language) high-level schematic of a remote controller toy car system.
Abstract: Control functionality of modern vehicles is getting more and more complex. Programming complex embedded systems involves reasoning through intricate system interactions along paths between sensors, actuators and control processors. This is a time-consuming and error-prone process. Furthermore, the resulting…
30 Sep 2021 04:45 AM IST
Explain the cooling technologies of a power converter And Calculation of MOSFET Thermal Resistance and Power Dissipation.
Explain the cooling technologies of a power converter? Abstract: Power electronics devices such as MOSFETs, GTOs, IGBTs, IGCTs etc. are now widely used to efficiently deliver electrical power in home electronics, industrial drives, telecommunication, transport, electric grid and numerous other applications.…
30 Sep 2021 04:41 AM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.