![](http://www.emcu.eu/wp-content/uploads/2017/12/SBlogo-300x198.png)
The necessary materials are:
* One shoe box.
* Two RC motors, I used the MG996R.
* One NUCLEO-F401RE.
* One 100 ohm resistance.
* One LED diode.
* One toggle switch.
NOTE:
Surely you’ll have to stretch the switch pin to create less effort on the RC motor (we’re using a cardboard box).
To lengthen the switch pin, use an aluminum rod that you will cut to length and glue it on the switch pin (see the videos).
Schematic:
![](https://www.emcu-homeautomation.org/wp-content/uploads/2021/07/immagine-71.png)
The Software:
All was developed using mBed and is here.
The binary file, ready to upload on NUCLEO-F401RE is here.
Some Photos
![](http://www.emcu.eu/wp-content/uploads/2017/12/20171210_171309-300x169.jpg)
![](http://www.emcu.eu/wp-content/uploads/2017/12/20171210_171211-300x169.jpg)
![](http://www.emcu.eu/wp-content/uploads/2017/12/20171210_171224-300x169.jpg)
![](http://www.emcu.eu/wp-content/uploads/2017/12/20171210_171240-300x169.jpg)
![](http://www.emcu.eu/wp-content/uploads/2017/12/20171210_171250-300x169.jpg)