pcmola/lego-magic-train
Last updated
Was this helpful?
Last updated
Was this helpful?
The train speeds up when I put my hand close to the sensor. If I move my hand away from the sensor, it slows down.
You must have PowerFunctions.cpp, PowerFunctions.h file in advance.
These files could be downloaded at https://github.com/jurriaan/Arduino-PowerFunctions .
Label
Part Type
LED1
Red (633nm) LED
R1
220Ω Resistor
Part1
KY-005 Infrared Transmitter Module
Part2
HC-SR04 Ultrasonic Sensor
Part3
Arduino Uno (Rev3)
YouTube - Controlling Lego Train By Palm
[2] Lego Power Functions Infrared Control for Arduino