Programar Con el Teclado cada Led de 1 a 9
Create a program so that when you press a number on the keyboard, the corresponding LED light lights up.
1 key: the first LED light lights up.
2 key: the second LED light lights up.
3 key: the third LED light lights up.
4 key: the fourth LED light lights up.
5 key: the fifth LED light lights up.
6 key: the sixth LED light lights up.
7 key: the seventh LED light lights up.
8 key: the eighth LED light lights up.
9 key: the ninth LED light lights up.
Is the capacity of a material to transport electricity. For example, a soda can is a good conductor of electricity, whereas a ceramic mug is a poor conductor. It is the capacity of materials to transmit electricity. There are good conductors such as water, metal, and the human body. There are also poor conductors such as wood and plastic.
•We will load the program Conductivity_Test.mBlock in HaloCode 3 and install an "alligator" wire in touch input 0 of each of them, with the other end making contact with one of the elements mentioned: plastic, metal and a glass of water. •The program uploaded to the HaloCode card will work as follows. When the touch input is not active (that the element that is touched by the hand is not conductive) the RGB led lights will emit the red color; when the touch input is active (that the element that is touched by the hand is conductive) the RGB led lights will emit the green color. Finally, students will be able to do the test with each element; In the case of the glass of water, they must dip a finger in the water to activate the input. •This activity will allow us to recognize the concept of conductivity and conductive circuit, which are needed for the development of interactive video game controls.
Challenge #
instalaremos un cable “caimán” en la entrada táctil 0 de cada una de ellas, y el otro extremo haciendo contacto con uno de los elementos que se mencionan a continuación. Luego los estudiantes utilizarán los siguientes elementos de diferente material: plástico, metal y un vaso con agua.
Cuando la entrada táctil no esté activa (que el elemento que se toca con la mano no sea conductor) las luces led RGB emitirán el color rojo; cuando la entrada táctil esté activa (que el elemento que se toca con la mano sea conductor) las luces led RGB emitirán el color verde. Finalmente, los estudiantes podrán hacer la prueba con cada elemento; para el caso del vaso con agua, deben sumergir un dedo en el agua para accionar la entrada.
Esta actividad les permitirá reconoce el concepto de conductividad y de circuito conductivo, los cuales se necesitan para el desarrollo de los controles de videojuegos interactivos.
No hay comentarios:
Publicar un comentario