若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。
If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.
This tutorial uses the light brightness to control a car. This car could be implemented by a Arduino with photoresistors. Before assembling the hardware, the simulation could be done with TinkerCAD circuits. The reader could read this article:"mBlock Unit 15: Light-Tracking Car" later.
材料(Materials):
1. Arduino UNO R3 板子 x 1
2. 光感測器模組 Photoresistor x 2
3. 直流馬達 DC motor x 2
4. 杜邦線 jumper wire x 10
5. 麵包板 small breadboard x 1
6. 10K 電阻 resistor x 2
電路(Circuit):
Photoresistor is connected to Arduino UNO A2 and A0.
DC motor is connected to Arduino UNO pin 5 and pin 3.
程式碼(The Code):
示範影片(Demo Video):
範例連結(Example Link):
https://www.tinkercad.com/things/e26raWWttD7
沒有留言:
張貼留言