Autonomous Robot Racer: Scratch Mode


Connect under the COM. The number after COM may di er on your device and can be ignored. 6. Navigate back to the Devices



Yüklə 3,38 Mb.
Pdf görüntüsü
səhifə9/11
tarix26.09.2023
ölçüsü3,38 Mb.
#148986
1   2   3   4   5   6   7   8   9   10   11
Autonomous-Robot-Racer-Scratch-Mode

Connect under the COM. The number after COM may di er on your device and can be ignored.
6. Navigate back to the Devices
Devices menu on the bottom left of the screen and select the larger Upload
Upload button
to begin writing the script to the robot.
Note: 
Note: If the code fails to upload you will need to navigate to the Devices
Devices menu select the bottom option, Arduino Nano
(old), and repeat steps 5 and 6 above.
Once you have the code uploaded make sure the motor wires are placed into the motor driver ports, see Step 6
Step 6
Connecting Motor Driver To Arduino
Connecting Motor Driver To Arduino. Turn on the robot making sure there is nothing in front of the sensors. If both
wheels are driving forward you can tighten the screws above each port. If any of the motors are driving in the wrong
direction swap the wires to opposite ports. If the motor continues to drive in the wrong direction make sure both sensors
are not detecting any object. You may need to turn the sensitivity of the sensor(s) down if there is nothing in front of it
and both indicator lights are on, see the 8th picture for an example. Take a screwdriver and gently rotate the
potentiometer clockwise until only one light is on, see the 9th picture. By turning the potentiometer clockwise the
sensors's sensitivity is being reduced; turning the other way increases it. Turning the dial too far in any direction will make
it so the sensor either turns o or makes it always detect. If the solutions above do not work you will need to go back to
Step 6 Connecting Motor Driver To Arduino 
Step 6 Connecting Motor Driver To Arduino and double-check that everything is connected properly.
Editing the code:
Editing the code:
1. Navigate to the Blocks 
Blocks area in mBlock and nd the stack of Scratch code where the topmost block reads,
"

Yüklə 3,38 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   10   11




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin