Cov txheej txheem:

BrickPi3 Line Follower: 4 Kauj Ruam
BrickPi3 Line Follower: 4 Kauj Ruam

Video: BrickPi3 Line Follower: 4 Kauj Ruam

Video: BrickPi3 Line Follower: 4 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image
Khiav
Khiav

Nov yog txoj haujlwm qhia pom tias Dexter Industries Line Follower tuaj yeem siv los ua BrickPi3 neeg hlau ua raws kab.

Kauj Ruam 1: Teeb Kho Vajtse

Txoj haujlwm no siv BrickPi3 neeg hlau ua nrog ob lub cav tsav hauv kev teeb tsa txoj kev hla. Lub tshuab tsav sab laug txuas nrog BrickPi3 chaw nres nkoj B, thiab txoj cai tsav lub cev txuas nrog BrickPi3 chaw nres nkoj C. Tus Kab Follower sensor txuas nrog Grove I2C chaw nres nkoj ntawm BrickPi3.

Koj tuaj yeem tsim koj tus kheej kab teeb tsa siv kab ntu muaj nyob ntawm no, lossis koj tuaj yeem siv Lego Mindstorms lev.

Kauj ruam 2: Teeb Software

Txawm hais tias koj tus Raspberry Pi tab tom khiav Raspbian lossis Raspbian Rau Neeg Hlau, txhawm rau teeb tsa cov tsav tsheb thiab phiaj xwm piv txwv txoj haujlwm, koj tuaj yeem ua ob qho lus txib no:

curl -kL dexterindustries.com/update_brickpi3 | bashcurl -kL dexterindustries.com/update_sensors | tsoo

Kauj ruam 3: Calibration

Txhawm rau ntsuas cov kab hauv qab, tso lub ntsuas hluav taws xob ua tiav hla qhov dawb thiab ua cov lus txib no:

nab hab sej -c "los ntawm di_sensors ntshuam easy_line_follower; easy_line_follower. EasyLineFollower (). set_calibration ('dawb')"

Tom qab ntawd tso lub ntsuas hluav taws xob ua tiav hla kab dub thiab khiav cov lus txib no:

nab hab sej -c "los ntawm di_sensors ntshuam easy_line_follower; easy_line_follower. EasyLineFollower (). set_calibration ('dub')"

Kauj ruam 4: Khiav

Cov kab ntawv ua raws tus piv txwv txoj haujlwm nyob hauv ~/Dexter/BrickPi3/Projects/LineBot. Txhawm rau ua piv txwv, mus rau phau ntawv teev npe:

cd ~/Dexter/BrickPi3/Cov Haujlwm/LineBot

Tom qab ntawd khiav qhov program:

nab hab sej LineBot.py

Pom zoo: