Télécharger Imprimer la page

Velleman VMM006 Mode D'emploi page 7

Publicité

Les langues disponibles

Les langues disponibles

Drag and drop the [digital write pin P0 to 0] to the editor window in the blue [on start] block. When valid, it will
snap together. Set P0 to P8, and value 0 to 1.
Drag and drop the [analogue write pin P0 to 1023] under the digital write block. It snaps together. Set P0 to
P1.
9.1
Positive Rotation of the Motor (Right)
P8 in high-voltage level (1), means the positive rotation (turn right) of a motor.
Adjust the logic value of P1 to control the motor speed (value between 0-1023, 0 = no rotation, 1023 = full
speed).
When complete, we compile the programme to generate a .hex file. Click the [download] button and save the
.hex file to the downloads folder  C:\downloads. This .hex file is ready to upload to the micro:bit.
Plug the micro:bit into a USB port. Now, drag and drop the .hex file onto the micro:bit [removable device] to
upload the programme.
9.2
Negative Rotation of the Motor (Left)
P8 in low-voltage level (0) means the negative rotation (turn left) of a motor.
Adjust the logic value of P1 to control the motor speed (value between 0-1023, 0 = no rotation, 1023 = full
speed).
V. 01 – 10/12/2018
VMM006
7
©Velleman nv

Publicité

loading