Collect the signals
2023-11-01
Example Blocks
Example project file on Github
After the project file is downloaded locally, it can be imported into MakeCode for viewing and re-editing, or it can be burned directly to micro:bit via USB to run.
Design description
- The voltage analog values of the two sensors are sent to the computer through the USB serial port every 100ms.
- You can open the console in MakeCode to view the information received in real time.
The "Read (index) line tracking sensor" block in Triode-Car extensions can collect analog values from the photoresistors.
Micro: bit pins' voltage can be set from 0~3.3v, and has 1024(10bit) precision levels, therefore, the "read left/right line tracking sensor" block will input an analog value to adjust its voltage ranging from 0~1023.