Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Sign In (https://www.hackster.io/users/auth/arduino?

current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Fmichalin70%2Fautomate-
slot-cars-with-an-arduino-011221)

Automate Slot Cars with an Arduino © MIT


(http://opensource.org/licenses/MIT)

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?

car (/projecthub/projects/tags/car) fun (/projecthub/projects/tags/fun)

games (/projecthub/projects/tags/games) sports (/projecthub/projects/tags/sports)


1,638 VIEWS 0 COMMENTS 5 RESPECTS

COMPONENTS AND SUPPLIES 

slot car track × 1

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
)

General Purpose Transistor


NPN
× 1 
(/projecthub/products/buy/42
( (/proj (/projecthub/products
755?
/ ecthu /buy/42755?
s=BAhJIhMzMjY2ODEsUHJvam
p b/pro s=BAhJIhMzMjY2ODEs
(/projecthub/pro VjdAY6BkVG%0A)
r ducts UHJvamVjdAY6BkVG%
ducts/buy/42755
? o /buy/ 0A)
j 42755
s=BAhJIhMzMjY2
e ?
ODEsUHJvamVjd
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
/
4
2
7
5
5
?
?
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
%
0
A
)
Darlington High Power ×
Transistor (
/ 1 
(/projecthub/products/buy/56
p (/proj (/projecthub/products
522?
r ecthu /buy/56522?
s=BAhJIhMzMjY2ODEsUHJvam
o b/pro s=BAhJIhMzMjY2ODEs
(/projecthub/pro VjdAY6BkVG%0A)
ducts/buy/56522 j ducts UHJvamVjdAY6BkVG%
? e /buy/ 0A)
c 56522
s=BAhJIhMzMjY2
ODEsUHJvamVjd t ?
AY6BkVG%0A) h s=BA
u hJIhM
b zMjY2
/ ODEs
p UHJva
r mVjd
o AY6B
d kVG%
u 0A)
c
t
s
/
b
u
y
/
5
6
5
2
2
?
s
=
B
A
h
JI
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
%
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
)

Resistor 10k ohm


(/projecthub/products/buy/37
× 
908?
( (/projecthub/products
s=BAhJIhMzMjY2ODEsUHJvam
/ /buy/37908?
VjdAY6BkVG%0A)
(/projecthub/pro p s=BAhJIhMzMjY2ODEs
ducts/buy/3790 r UHJvamVjdAY6BkVG%
8? o 0A)
j
s=BAhJIhMzMjY2
ODEsUHJvamVjd e
AY6BkVG%0A) c
t
h
u
u
b
/
1
p
(/proj
r
ecthu
o
b/pro
d
ducts
u
/buy/
c
3790
t
8?
s
s=BA
/
hJIhM
b
zMjY2
u
ODEs
y
UHJva
/
mVjd
3
AY6B
7
kVG%
9
0A)
0
8
?
s
=
B
A
h
JI
h
M
z
M
j
Y
2
O
D
E
s
U
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
)

APPS AND ONLINE SERVICES 

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)

ABOUT THIS PROJECT 

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.

Slot car passes by a hall effect switch

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.

Circuitry with hall effect switches, Arduino and


transitor driver
The placement of the hall effect switches and speed values in the Arduino sketch
determine, how hard it is to win the race! Have fun!
Watch video to learn more about the details and see it in action.

How to Automate Slot Cars With an Arduino

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)

Latest commit to the master branch on 3-16-2020 Download as zip (https://github.com/michalin/arduracer/zipball/master)

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)

Latest commit to the master branch on 3-16-2020 Download as zip (https://github.com/michalin/arduracer/zipball/master)

COMMENTS 

Please log in (/projecthub/users/sign_in?


id=326681&m=project&reason=comment&redirect_to=%2Fprojecthub%2Fmichalin70%2
Fautomate-slot-cars-with-an-arduino-011221%23comments) or sign up
(/projecthub/users/sign_up?
id=326681&m=project&reason=comment&redirect_to=%2Fprojecthub%2Fmichalin70%2
Fautomate-slot-cars-with-an-arduino-011221%23comments&source=popup) to
comment.

Be the first to comment!

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

March 22, 2020

 RESPECT PROJECT (/PROJECTHUB/USERS/SIGN_UP?ID=326681&M=ARTICLE&REASON=RESPECT&R...

 WRITE A COMMENT

 Share

MEMBERS WHO RESPECT THIS PROJECT

(/projecthub/ivan-vasilevich) (/projecthub/blowfish2003)

(/projecthub/marcomerli) (/projecthub/Cmtelesann)
and 1 other

SEE SIMILAR PROJECTS


YOU MIGHT LIKE

SIMILAR PROJECTS YOU MIGHT LIKE

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

RCar | Robots for All! (/projecthub/warcraft12321/rcar-robots-for-


all-38629f?ref=similar&ref_id=326681&offset=2)
Project tutorial by Luís Rita (/projecthub/warcraft12321)
8,522 VIEWS 2 COMMENTS 42 RESPECTS
8,522 VIEWS 2 COMMENTS 42 RESPECTS

(/projecthub/Metonymy/arduino-simple-simon-says-351b9e?
ref=similar&ref_id=326681&offset=3)

Arduino Simple Simon Says (/projecthub/Metonymy/arduino-


simple-simon-says-351b9e?ref=similar&ref_id=326681&offset=3)
Project tutorial by Metonymy (/projecthub/Metonymy)
8,606 VIEWS 2 COMMENTS 11 RESPECTS

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

You might also like