Descargar Imprimir esta página

Velleman VMM501 Manual Del Usuario página 10

Ocultar thumbs Ver también para VMM501:

Publicidad

Idiomas disponibles
  • MX

Idiomas disponibles

  • MEXICANO, página 79
Have a look at the code below.
1.
Drag and drop the code blocks to form the code as shown.
You can find the
Drawer.
2.
Set
Drawer. Set the value up to 1023.
3.
When complete, we compile the programme and generate a hex. file. Click
on 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. The, drag and drop the hex. file onto the
micro:bit removable device to upload the programme.
Rotate the trimmer. The voltage will be displayed on the micro:bit screen through a bar graph. When the
voltage is 0, the LED screen displays a pixel spot only. When it is 3.3 V, the whole screen will be illuminated.
Now, how would you use the trimmer to adjust the LED's brightness?
5.4
Photocell
1x micro:bit board
1x micro:bit breadboard adapter
1x breadboard
1x photocell
1x 10 kΩ resistor
(brown/black/black/red/bruin)
Short leg = collector
Positive anode
Long leg = emitter
Negative cathode
We are going to use a photocell to control the brightness of the
micro:bit screen.
Place the necessary components on the breadboard as shown.
V. 01 – 17/01/2019
plot bar graph of
analog read pin
to P0. You can find this block in
VMM501
0
up to
0 block in
10
LED
in the Code
Pins
in the Code
©Velleman nv

Publicidad

loading