Automate Slot Cars With An Arduino - Arduino Project Hub
Automate Slot Cars With An Arduino - Arduino Project Hub
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Fmichalin70%2Fautomate-
slot-cars-with-an-arduino-011221)
You want to race with your Carrera slot cars, but have nobody who wants to
play with you? So why don´t you race against an Arduino?
Arduino Nano R3
(/projecthub/products/buy/191
× 1
72?
( (/proj (/projecthub/products
s=BAhJIhMzMjY2ODEsUHJvam
/ ecthu /buy/19172?
VjdAY6BkVG%0A)
(/projecthub/pro p b/pro s=BAhJIhMzMjY2ODEs
r ducts UHJvamVjdAY6BkVG%
ducts/buy/19172?
o /buy/ 0A)
s=BAhJIhMzMjY2
j 19172
ODEsUHJvamVjd
e ?
AY6BkVG%0A)
c s=BA
t hJIhM
h zMjY2
u ODEs
b UHJva
/ mVjd
p AY6B
r kVG%
o 0A)
d
u
c
t
s
/
b
u
y
/
/
1
9
1
7
2
?
s
=
B
A
h
JI
h
M
z
M
j
Y
2
O
D
E
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
G
%
0
A
)
Resistor 1k ohm
(/projecthub/products/buy/37
×
912?
(
s=BAhJIhMzMjY2ODEsUHJvam
/
VjdAY6BkVG%0A)
p
r
o
o
j
e
c 1
t (/proj (/projecthub/products
ecthu /buy/37912?
h
b/pro s=BAhJIhMzMjY2ODEs
(/projecthub/pro u
ducts/buy/37912 b ducts UHJvamVjdAY6BkVG%
? / /buy/ 0A)
s=BAhJIhMzMjY2 p 37912
ODEsUHJvamVjd r ?
AY6BkVG%0A) o s=BA
hJIhM
d
u zMjY2
c ODEs
t UHJva
s mVjd
/ AY6B
kVG%
b
u 0A)
y
/
3
7
9
1
2
?
s
=
B
A
h
JI
h
M
z
M
j
Y
Y
2
O
D
E
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
Breadboard (generic)
(/projecthub/products/buy/42
× 1
749?
( (/proj (/projecthub/products
s=BAhJIhMzMjY2ODEsUHJvam
/ ecthu /buy/42749?
VjdAY6BkVG%0A)
(/projecthub/pro p b/pro s=BAhJIhMzMjY2ODEs
ducts/buy/42749 r ducts UHJvamVjdAY6BkVG%
? o /buy/ 0A)
j 42749
s=BAhJIhMzMjY2
ODEsUHJvamVjd e ?
AY6BkVG%0A) c s=BA
t hJIhM
h zMjY2
u ODEs
b UHJva
/ mVjd
p AY6B
r kVG%
o 0A)
d
d
u
c
t
s
/
b
u
y
/
4
2
7
4
9
?
s
=
B
A
h
JI
h
M
z
M
j
Y
2
O
D
E
s
U
H
J
v
a
m
V
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
Arduino IDE
(https://www.arduino.cc/en/main/ (https://www.arduino.cc/en/
(https://www.ar software) main/software)
duino.cc/en/mai
n/software)
The challenge of slot car racing is to accelerate and brake the car just in the right
moment. When we want to automate this by a microcontroller, we must know where
the car actually is. Magnets which are fixed to the car´s wheels and hall effect switches
around the track are therefore a perfect way to identify the position of the car:
Whenever the car passes by a hall effect sensor, it sends an impulse to the Arduino.
And this is how the Arduino sketch works: Every time when the slot car passes by a hall
effect sensor, an Interrupt routine is being called. There the hall sensor which caused the
interrupt is identified and a speed value is read out of an Array. The analogWrite()
command gives us a PWM signal which is amplified by a transistor circuit and led to the
track. So the speed of the slot cars is being controlled.
CODE
Github
Find everything you need to make the project by yourself
0 (https://github.com/michalin/arduracer/watchers) 0 (https://github.com/michalin/arduracer/forks)
michalin (https://github.com/michalin) / arduracer
(https://github.com/michalin/arduracer)
Automate a slot race track with hall effect sensors and a microcontroller — Read More
(https://github.com/michalin/arduracer#readme)
https://youtu.be/rkMEo5EV-iw (https://youtu.be/rkMEo5EV-iw)
Arduino Sketch
0 (https://github.com/michalin/arduracer/watchers) 0 (https://github.com/michalin/arduracer/forks)
michalin (https://github.com/michalin) / arduracer
(https://github.com/michalin/arduracer)
Automate a slot race track with hall effect sensors and a microcontroller — Read More
(https://github.com/michalin/arduracer#readme)
https://youtu.be/rkMEo5EV-iw (https://youtu.be/rkMEo5EV-iw)
COMMENTS
AUTHOR
(/projecthub/michalin70)
Doctor Volt (/projecthub/michalin70)
7 PROJECTS 39 FOLLOWERS
FOLLOW (/PROJECTHUB/USERS/SIGN_UP?ID=982030&M=USER&REASON=FOLLOW&REDIRECT
PUBLISHED ON
WRITE A COMMENT
Share
(/projecthub/ivan-vasilevich) (/projecthub/blowfish2003)
(/projecthub/marcomerli) (/projecthub/Cmtelesann)
and 1 other
(/projecthub/dan-murphy/atmega-alien-themed-slot-machine-07ab7d?
ref=similar&ref_id=326681&offset=0)
ATmega Alien Themed Slot Machine (/projecthub/dan-
murphy/atmega-alien-themed-slot-machine-07ab7d?
ref=similar&ref_id=326681&offset=0)
Project tutorial by Dan Murphy (/projecthub/dan-murphy)
2,794 VIEWS 6 COMMENTS 25 RESPECTS
(/projecthub/talofer99/slot-cars-laser-triggered-lap-time-glcd-display-4a2c3f?
ref=similar&ref_id=326681&offset=1)
Slot Cars Laser Triggered Lap Time GLCD Display
(/projecthub/talofer99/slot-cars-laser-triggered-lap-time-glcd-
display-4a2c3f?ref=similar&ref_id=326681&offset=1)
Project tutorial by Tal O (/projecthub/talofer99)
2,796 VIEWS 4 COMMENTS 9 RESPECTS
(/projecthub/warcraft12321/rcar-robots-for-all-38629f?
ref=similar&ref_id=326681&offset=2)
(/projecthub/Metonymy/arduino-simple-simon-says-351b9e?
ref=similar&ref_id=326681&offset=3)
(/projecthub/PunkyMunky64/lcd-hill-run-v2-runner-game-1b0523?
ref=similar&ref_id=326681&offset=4)
LCD Hill Run v2 Runner Game (/projecthub/PunkyMunky64/lcd-hill-
run-v2-runner-game-1b0523?ref=similar&ref_id=326681&offset=4)
Project tutorial by PunkyMunky64 (/projecthub/PunkyMunky64)
6,472 VIEWS 22 COMMENTS 45 RESPECTS
(/projecthub/shubhamsuresh/how-to-make-a-smart-central-lock-system-for-
motorcycle-fed275?ref=similar&ref_id=326681&offset=5)
How to Make a Smart Central Lock System for Motorcycle
(/projecthub/shubhamsuresh/how-to-make-a-smart-central-lock-
system-for-motorcycle-fed275?
Project tutorial by Shubham Shinganapure (/projecthub/shubhamsuresh)
4,020 VIEWS 1 COMMENT 13 RESPECTS
(https://www.arduino.cc)
Powered by
(https://www.hackster.io)