EasyManua.ls Logo

Keyestudio 4WD - Page 265

Keyestudio 4WD
369 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
265
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 the
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 left
⑥Serial write string "right:"
⑦Serially write the output value of the tracking sensor on the right
⑧Writing in line break
Delay time 200 milliseconds

Related product manuals