Build a Robot Car With Speed Sensors Using Arduino Interrupts
Build a Robot Car With Speed Sensors Using Arduino Interrupts
Welcome to the Workshop! Come and explore the new website features.
DroneBot Workshop
Arduino, Electronics, IoT, Raspberry Pi and Robots – Welcome to the Workshop!
Search
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 1/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Introduction
Many of the robotics projects that I’ve been working on lately
have made use of a very common “Robot Car Chassis”. These
tiny units have a lot of advantages for robotics experimenters,
especially ones like myself whose expertise lies with electronics
and software and not with mechanics:
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 2/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
A few of the robotics projects that I’ll be presenting to you here 3 Making Plans
at the Dronebot Workshop rely upon these types of robot car 4 Optical Interrupter Sensor
chassis so I thought it would be a good idea to show you how to
5 Add an LM393 Comparator
put one together. And I also want to use the opportunity to
show you how to use those two strange black “slotted disks” 6 Calculating Wheel Speed
that come with each of these kits. 6.1 Step 1 – Preparing the
Chassis
Those disks are actually “encoder wheels” and they can be used
with an opto interrupter-based sensor to measure speed and 6.2 Step 2 – Prepare the Motors
distance travelled. I haven’t seen many instructions for using
6.3 Step 3 – Mount the Motors
them with the robot car chassis so in this article (and the
on the Chassis
accompanying video) I’ll give you all the information you need to
6.3.1 Style 1 – Acrylic Mount
put them to work.
6.3.2 Style 2 – Aluminum
So let’s get rolling!
Mount
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 3/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
probably the thing that confuses most users so I’ll illustrate 9.1 Playing with the code
that in detail.
DC Motors. These 6-volt motor have a surprising amount 10 The End – Not Really!
of torque for their size.
Wheels. A car isn’t much use without wheels! These 10.0.1 Parts List
chassis kits use two plastic wheels, with tire treads that
work well on both smooth surfaces and carpet. 10.0.2 Resources
Rear Castor. As there are only two wheels a castor is
provided for balance and stability. The castor comes with
mounting hardware.
Encoder Wheels. These two plastic disks are meant to
mount to the motor shafts, on the opposite sides from the
wheels. They have a series of slots in them as they are
designed to be used with an optical source-sensor to
provide feedback on motor speed and wheel position. I’ll
show you how to use them today.
Battery Holder. These kits come with a holder for 4 AA
cells, to provide 6 volts for the motors. I often replace
these with a 5 cell holder as the L298N H-Bridge controller
that I usually use to drive the motors will drop 1.4 volts, so
I consider the 4 cell holder to be “spare parts”.
Mounting Hardware. All of the nuts, bolts and spacers you
will need to put the chassis together. You’ll need to supply
more hardware to mount your own components on the
base.
Misc Parts – It’s amazing what else some of these kits
come with. Common additions are power switches, wires
and pan-and-tilt mechanisms for mounting sensors or
cameras. One of my kits even supplied a small screwdriver.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 4/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Making Plans
Before starting any project it’s a good idea to plan out what
you’ll be doing. In the case of the robot car chassis this means
determining what components and sensors you’ll be using in
your design and where on the chassis you want to mount these
items.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 5/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
What’s missing from the kit is the sensor itself (to be fair most
of these kits don’t contain any electronic components, just the
motors and hardware, so the omission is acceptable). The
chassis, however, is precut to accept an H206 slot-type opto
interrupter. This is the key to getting the speed sensor to work.
The key is the reference voltage. If the input (in our case from
the phototransistor) is below the reference voltage then the
digital output of the comparator remains low. If the input equals
or exceeds the reference voltage then the output goes high.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 7/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Notice that I’m saying “wheel speed” and not “motor speed”,
they are different as the motor has internal gearing that slows it
down.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 8/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
I measured one of the wheels in the kit I’m working with and it
had a diameter of 66.1 mm. So using the formula I arrive at the
following:
66.1 x π = 207.6
Let’s gather together all of our components and the robot car
chassis parts and start assembly. In addition to the robot car
chassis kit itself we will need the following items:
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 10/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Once the plate has been prepared you can peel off the
protective backing from both sides of the chassis plate. You can
also remove the backing from the acrylic motor holders if your
chassis uses them.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 11/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Again you may want to put a bit of heat-shrink tubing over the
connections after they are soldered to make them more solid
and to insulate them, but this step is optional.
On some kits you only get one acrylic piece for each motor, if
this is the case with your kit then it mounts on the inside of the
chassis. Again you secure it with a couple of screws.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 12/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
The wheels simply press-fit onto the motor shaft, note that both
the motor shaft and the mounting hole on the wheels are “D
shaped” so they need to be lined up correctly. Once you have
them lined up press the wheels on as far as they will go.
The rotary encoders also press-fit onto the motor shaft, on the
opposite side from the wheels. You will need to slide the disk
back and forth until you arrive at a position that lets it spin
without binding on the robot car chassis or on the opto
interrupters. I found them to be a bit loose so I secured mine in
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 13/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
You’ll also need to decide how you plan to power the Arduino
Uno. The easiest (but not necessarily the best) way is to use a 9-
volt battery plugged into the Arduino’s 2.1 mm power jack. You
can purchase 9-volt power clips already soldered to 2.1 mm
plugs or you can just solder up one yourself.
If your kit came with a power switch (some do, some don’t) you
can use it to switch the Arduino power supply. The other
batteries are used to power the motors so when the motors
aren’t being driven they shouldn’t draw any current (assuming
you use the Arduino supply for the L298N boards logic power).
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 14/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
The Arduino will also need some power. In this simple design I
will be using a 9-volt battery to power the Arduino but of course
there are better options available. Those 5-volt USB power
banks work well and have the added advantage of being
rechargeable.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 15/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Interrupts
Interrupts are a very important concept in coding for any
computer, be it a tiny Arduino or a full sized desktop computer
running Windows, Linux or OSX. You’ve probably used them a
few million times, perhaps without knowing it.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 16/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Types of Interrupts
You might notice that I used the term “hardware interrupt” in
the previous example, and if it leads you to suspect that there
may be other types of interrupts then you are correct.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 17/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Internally the AVR processors that the Arduinos are based upon
use interrupt numbers starting at zero, as opposed to using the
pin numbers. Here is a chart that explains how the pin numbers
are related to some of the Arduino models:
Uno 2 3
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 18/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Mega2560 2 3 21 20 19 18
Micro 3 2 0 1 7
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 19/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
The following code will test the speed sensors and display the
motor rotation speed in RPM on the Arduino serial monitor.
You can watch the experiment in the YouTube video associated
with this article or give it a try yourself. In the video I just
hooked the motors directly to a 6-volt battery to spin them at
full speed and I attached the sensors as follows:
The two sensors are powered from the 5-volt output from the
Uno. If you use something other than an Uno you’ll need to
consult the Interrupt pinout chart to get the correct pins
1 /*
2 Optical Sensor Two Motor Demonstration
3 DualMotorSpeedDemo.ino
4 Demonstrates use of Hardware Interrupts
5 to measure speed from two motors
6
7 DroneBot Workshop 2017
8 http://dronebotworkshop.com
9 */
10
11 // Include the TimerOne Library from Paul Stoffregen
12 #include "TimerOne.h"
13
14 // Constants for Interrupt Pins
15 // Change values if not using Arduino Uno
16
17 const byte MOTOR1 = 2; // Motor 1 Interrupt Pin - INT 0
18 const byte MOTOR2 = 3; // Motor 2 Interrupt Pin - INT 1
19
20 // Integers for pulse counters
21 unsigned int counter1 = 0;
22 unsigned int counter2 = 0;
23
24 // Float for number of slots in encoder disk
25 float diskslots = 20; // Change to match value of encode
26
27 // Interrupt Service Routines
28
29 // Motor 1 pulse count ISR
30 void ISR_count1()
31 {
32 counter1++; // increment Motor 1 counter value
33 }
34
35 // Motor 2 pulse count ISR
36 void ISR_count2()
37 {
38 counter2++; // increment Motor 2 counter value
39 }
40
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 21/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
41 // TimerOne ISR
42 void ISR_timerone()
43 {
44 Timer1.detachInterrupt(); // Stop the timer
45 Serial.print("Motor Speed 1: ");
46 float rotation1 = (counter1 / diskslots) * 60.00; // ca
47 Serial.print(rotation1);
48 Serial.print(" RPM - ");
49 counter1 = 0; // reset counter to zero
50 Serial.print("Motor Speed 2: ");
51 float rotation2 = (counter2 / diskslots) * 60.00; // ca
52 Serial.print(rotation2);
53 Serial.println(" RPM");
54 counter2 = 0; // reset counter to zero
55 Timer1.attachInterrupt( ISR_timerone ); // Enable the t
56 }
57
58 void setup()
59 {
60 Serial.begin(9600);
61
62 Timer1.initialize(1000000); // set timer for 1sec
63 attachInterrupt(digitalPinToInterrupt (MOTOR1), ISR_coun
64 attachInterrupt(digitalPinToInterrupt (MOTOR2), ISR_coun
65 Timer1.attachInterrupt( ISR_timerone ); // Enable the ti
66 }
67
68 void loop()
69 {
70 // Nothing in the loop!
71 // You can place code here
72 }
One thing you will notice about this sketch is that the loop
doesn’t contain any code! This might seem surprising as a
standard Arduino Sketch has most of its code within the loop. I
did this intentionally to show you that the interrupts are not
dependent upon any code within the loop. If you wish try adding
some of your own code inside the loop and watch it run while
the speed sensors still display the motor speeds.
1 /*
2 Robot Car with Speed Sensor Demonstration
3 RobotCarSpeedSensorDemo.ino
4 Demonstrates use of Hardware Interrupts
5 to control motors on Robot Car
6
7 DroneBot Workshop 2017
8 http://dronebotworkshop.com
9 */
10
11 // Constants for Interrupt Pins
12 // Change values if not using Arduino Uno
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 22/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
13
14 const byte MOTOR_A = 3; // Motor 2 Interrupt Pin - INT
15 const byte MOTOR_B = 2; // Motor 1 Interrupt Pin - INT 0
16
17 // Constant for steps in disk
18 const float stepcount = 20.00; // 20 Slots in disk, chan
19
20 // Constant for wheel diameter
21 const float wheeldiameter = 66.10; // Wheel diameter in m
22
23 // Integers for pulse counters
24 volatile int counter_A = 0;
25 volatile int counter_B = 0;
26
27
28 // Motor A
29
30 int enA = 10;
31 int in1 = 9;
32 int in2 = 8;
33
34 // Motor B
35
36 int enB = 5;
37 int in3 = 7;
38 int in4 = 6;
39
40 // Interrupt Service Routines
41
42 // Motor A pulse count ISR
43 void ISR_countA()
44 {
45 counter_A++; // increment Motor A counter value
46 }
47
48 // Motor B pulse count ISR
49 void ISR_countB()
50 {
51 counter_B++; // increment Motor B counter value
52 }
53
54 // Function to convert from centimeters to steps
55 int CMtoSteps(float cm) {
56
57 int result; // Final calculation result
58 float circumference = (wheeldiameter * 3.14) / 10; // C
59 float cm_step = circumference / stepcount; // CM per S
60
61 float f_result = cm / cm_step; // Calculate result as
62 result = (int) f_result; // Convert to an integer (note
63
64 return result; // End and return result
65
66 }
67
68 // Function to Move Forward
69 void MoveForward(int steps, int mspeed)
70 {
71 counter_A = 0; // reset counter A to zero
72 counter_B = 0; // reset counter B to zero
73
74 // Set Motor A forward
75 digitalWrite(in1, HIGH);
76 digitalWrite(in2, LOW);
77
78 // Set Motor B forward
79 digitalWrite(in3, HIGH);
80 digitalWrite(in4, LOW);
81
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 23/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
82 // Go forward until step value is reached
83 while (steps > counter_A && steps > counter_B) {
84
85 if (steps > counter_A) {
86 analogWrite(enA, mspeed);
87 } else {
88 analogWrite(enA, 0);
89 }
90 if (steps > counter_B) {
91 analogWrite(enB, mspeed);
92 } else {
93 analogWrite(enB, 0);
94 }
95 }
96
97 // Stop when done
98 analogWrite(enA, 0);
99 analogWrite(enB, 0);
100 counter_A = 0; // reset counter A to zero
101 counter_B = 0; // reset counter B to zero
102
103 }
104
105 // Function to Move in Reverse
106 void MoveReverse(int steps, int mspeed)
107 {
108 counter_A = 0; // reset counter A to zero
109 counter_B = 0; // reset counter B to zero
110
111 // Set Motor A reverse
112 digitalWrite(in1, LOW);
113 digitalWrite(in2, HIGH);
114
115 // Set Motor B reverse
116 digitalWrite(in3, LOW);
117 digitalWrite(in4, HIGH);
118
119 // Go in reverse until step value is reached
120 while (steps > counter_A && steps > counter_B) {
121
122 if (steps > counter_A) {
123 analogWrite(enA, mspeed);
124 } else {
125 analogWrite(enA, 0);
126 }
127 if (steps > counter_B) {
128 analogWrite(enB, mspeed);
129 } else {
130 analogWrite(enB, 0);
131 }
132 }
133
134 // Stop when done
135 analogWrite(enA, 0);
136 analogWrite(enB, 0);
137 counter_A = 0; // reset counter A to zero
138 counter_B = 0; // reset counter B to zero
139
140 }
141
142 // Function to Spin Right
143 void SpinRight(int steps, int mspeed)
144 {
145 counter_A = 0; // reset counter A to zero
146 counter_B = 0; // reset counter B to zero
147
148 // Set Motor A reverse
149 digitalWrite(in1, LOW);
150 digitalWrite(in2, HIGH);
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 24/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
151
152 // Set Motor B forward
153 digitalWrite(in3, HIGH);
154 digitalWrite(in4, LOW);
155
156 // Go until step value is reached
157 while (steps > counter_A && steps > counter_B) {
158
159 if (steps > counter_A) {
160 analogWrite(enA, mspeed);
161 } else {
162 analogWrite(enA, 0);
163 }
164 if (steps > counter_B) {
165 analogWrite(enB, mspeed);
166 } else {
167 analogWrite(enB, 0);
168 }
169 }
170
171 // Stop when done
172 analogWrite(enA, 0);
173 analogWrite(enB, 0);
174 counter_A = 0; // reset counter A to zero
175 counter_B = 0; // reset counter B to zero
176
177 }
178
179 // Function to Spin Left
180 void SpinLeft(int steps, int mspeed)
181 {
182 counter_A = 0; // reset counter A to zero
183 counter_B = 0; // reset counter B to zero
184
185 // Set Motor A forward
186 digitalWrite(in1, HIGH);
187 digitalWrite(in2, LOW);
188
189 // Set Motor B reverse
190 digitalWrite(in3, LOW);
191 digitalWrite(in4, HIGH);
192
193 // Go until step value is reached
194 while (steps > counter_A && steps > counter_B) {
195
196 if (steps > counter_A) {
197 analogWrite(enA, mspeed);
198 } else {
199 analogWrite(enA, 0);
200 }
201 if (steps > counter_B) {
202 analogWrite(enB, mspeed);
203 } else {
204 analogWrite(enB, 0);
205 }
206 }
207
208 // Stop when done
209 analogWrite(enA, 0);
210 analogWrite(enB, 0);
211 counter_A = 0; // reset counter A to zero
212 counter_B = 0; // reset counter B to zero
213
214 }
215
216 void setup()
217 {
218 // Attach the Interrupts to their ISR's
219 attachInterrupt(digitalPinToInterrupt (MOTOR_A), ISR_co
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 25/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
220 attachInterrupt(digitalPinToInterrupt (MOTOR_B), ISR_co
221
222 // Test Motor Movement - Experiment with your own sequ
223
224 MoveForward(CMtoSteps(50), 255); // Forward half a met
225 delay(1000); // Wait one second
226 MoveReverse(10, 255); // Reverse 10 steps at 255 speed
227 delay(1000); // Wait one second
228 MoveForward(10, 150); // Forward 10 steps at 150 speed
229 delay(1000); // Wait one second
230 MoveReverse(CMtoSteps(25.4), 200); // Reverse 25.4 cm
231 delay(1000); // Wait one second
232 SpinRight(20, 255); // Spin right 20 steps at 255 spee
233 delay(1000); // Wait one second
234 SpinLeft(60, 175); // Spin left 60 steps at 175 speed
235 delay(1000); // Wait one second
236 MoveForward(1, 255); // Forward 1 step at 255 speed
237
238
239 }
240
241
242 void loop()
243 {
244 // Put whatever you want here!
245
246
247 }
This sketch demonstrates how to run the car and take the input
from the two speed sensors to control how far it moves, we can
also control the car’s direction. Note the use of the “volatile”
integers in the pulse counters, this makes sure that the Arduino
IDE doesn’t “throw away” these variables when it compiles the
code.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 26/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
You’ll note that once again I didn’t put anything in the loop, all of
the code runs in the setup routine and as such it will run once
and finish. You can repeat it by pressing the reset button on the
Arduino Uno. If you would prefer that the code runs forever
then put the car movement statements into the loop instead.
If there are features you would like to see please let me know in
the comments and I’ll see what I can do to include them.
Parts List
Here are some components that you might need to complete the
experiments in this article. Please note that some of these links
may be affiliate links, and the DroneBot Workshop may receive a
commission on your purchases. This does not increase the cost to
you and is a method of supporting this ad-free website.
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 27/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
COMING SOON!
Resources
Robot Car Sketches All of the sketches used in this article.
Summary
Publisher Logo
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 28/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
{} [+]
53 COMMENTS Oldest
Thank you,
I found very useful the way you get the rpm speed of
every motor using the opto interrupters. I didn’t
know about those little sensors.
I have a question regarding the sketches, though:
wouldn’t you need to define the pin mode
(output/input) for every arduino pin in the setup() ?
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 29/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 30/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
hi and thank you for this work, it’s a great start for
me.
Thank you,
For your great effort
Reply
Author
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 31/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Reply to Eb Swarbrick
I join
Reply
Reply to Gennaro
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 32/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Reply to Carlos
Reply to Carlos
Hello Carlos
I use the same sensor as yours. I have
faced the problem that motors just
runs without stopping. I would like
you to tell me which pins from the
sensor you connected to the board,
D0 or A0? Thanks.
Reply
Reply to Carlos
sensor?
It would be a great help to me!
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 34/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Hello
I did everything according to the tutorial. When I
upload the sketch RobotCarSpeedSensorDemo.ino I
get the following result. Motors run only Forward or
Reverse or Left or Right. Motors do not react to any
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 35/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Thank you!
Any modification, if motors speed is different.
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 36/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Hi Bill, Thank you for all the effort you put into The
Workshop. Can you do an article on ultrosonic with
the car?
Thank you.
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 37/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 38/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 39/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 40/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 41/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Reply
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 42/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 43/44
07/05/2023, 15:35 Build a Robot Car with Speed Sensors using Arduino Interrupts
Build a REAL Robot Use a PS3 Controller with an ESP32 Getting started with ESP32
Electronics Using ChatGPT to Write Code for Getting started with the ESP32-CAM
Arduino and ESP32
ESP32 Controlling DC Motors with the
Using the ESP32 DAC (and making a
L298N Dual H-Bridge and an Arduino
Featured Fruity Instrument)
Using Servo Motors with ESP32
General Mecanum Wheel Robot Car with
ESP-NOW Remote Control ESP32 WiFiManager - Easy WiFi
IoT
Provisioning
Driving DC Motors with
Project
Microcontrollers Stepper Motors with Arduino -
QuadCopter Getting Started with Stepper Motors
Measure Air Quality with
Raspberry Pi Microcontrollers ESP NOW - Peer to Peer ESP32
Communications
Raspberry Pi 10 Projects Pico W with the Arduino IDE
Measure DC Voltage and Current
Robots Building a Dual-Boot Workstation
with an Arduino
Software Designing and Building Linear DC
Power Supplies
Tutorial
Using GC9A01 Round LCD Modules
Vendors
Sound with ESP32 – I2S Protocol
Home Arduino Raspberry Pi Drones Robots Electronics IoT Reviews Tutorials About Us Contact Us
Privacy and Cookies
https://dronebotworkshop.com/robot-car-with-speed-sensors/ 44/44