樹莓派 0W 狂想曲︰ 木牛流馬《開始》

有興趣探索『GoPiGo』韌體與軟體 I2C 界面細節者,可以參考

W!o+ 的《小伶鼬工坊演義》︰ 一窺全豹之系統設計《實驗》

# This is the address for the GoPiGo
address = 0x08
debug=0

文本序列同時並行。

此處我們稍稍瀏覽

Python Programming API Functions:

Below is a more detailed description of the functions available with the GoPiGo with Python along with the usage and examples.

Click on the individual links below for more detail on their usage.

Motor control functions:

  • fwd(): Move the GoPiGo forward with PID (better control)
  • motor_fwd(): Move the GoPiGo forward without PID
  • bwd(): Move the GoPiGo back with PID (better control)
  • motor_bwd(): Move the GoPiGo back without PID
  • left(): Turn GoPiGo Left slow (one motor off, better control)
  • left_rot(): Rotate GoPiGo left in same position (both motors moving in the opposite direction)
  • right(): Turn GoPiGo right slow (one motor off, better control)
  • right_rot(): Rotate GoPiGo right in same position both motors moving in the opposite direction)
  • stop(): Stop the GoPiGo

Motor speed Functions:

Encoder Functions:

Ultrasonic ranger read:

  • us_dist(): Read distance from the ultrasonic sensor

LED control:

Servo control:

Status from the GoPiGo:

Have a question or a suggestion?  Go check out our support page here or post it on the forums here

 

然後請讀者或設定好 WiFi ,或者安裝成 AP ,總之使『GoPiGo』的『網路連線』開始自由起來,如是『小汽車』行動方可無礙矣。

挺進軟體應用主題也☆