From this lab, we try to control the small DC motor with an uno R3 and a transistor, first,we use the following components:
1 X Elegoo Uno R3,
1 X 830 tie-points breadboard
1 X L293D IC
1 X Fan blade and 3-6v motor
1 X M-M wires (Male to male jumper wires)
1 X Power Supply Module
1 X 9V1A adapter
We used the following code


The finally connect situation pictures

