Keyestudio 4WD Manual page 265

Mecanum robot car
Hide thumbs Also See for 4WD:
Table of Contents

Advertisement

www.keyestudio.com
Click"JavaScript" to view the corresponding JavaScript code: :
Open CoolTerm, click Options to select SerialPort. Set COM port and
115200 baud rate. Click"OK"and"Connect".
The CoolTerm serial monitor displays the digital signals read by right line
tracking sensors.
① The "on start" command block runs only once to start
program.
②Serial redirection USB.
③In the "forever" instruction block, the program runs cyclically.
④Write string "left:" serially
⑤Serially write the output value of the tracking sensor on the le
⑥Serial write string "right:"
⑦Serially write the output value of the tracking sensor on the ri
⑧Writing in line break
⑨ Delay time 200 milliseconds
265

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents