First Step
Open TinkerCode app in your browser
Click here to go to TinkerCode app!
Second Step
Go to Base Controller and choose Setup/Arduino loop
Third Step
Click on variable and create variable name
Fourth Step
Drag the range and characters variable block to the base block
Fifth Step
Go to Robot Kit and choose Maker Kit Nano
Sixth Step
Drag ultrasonic sensor to the coding space
Seventh Step
Choose Base Controller and select “Print new line data on serial port:”
Eight Step
Delete ” ” column in the block line
Ninth Step
Replace with range block from variable
Tenth Step
Select loops and drag delay to the block
Eleventh Step
Set both of pin number for ultrasonic
Twelfth Step
Set output as number
Thirteenth Step
Plug in the USB cable
Fourteenth Step
Update board type and port by clicking on configuration button
Fifteenth Step
Upload the code and wait until finish uploading
Final Step
To monitor the result, select “serial dashboard”
The Result
Showing is the range object from the ultrasonic sensor