Un universo de extensiones con mBlock5
Se describe cómo utilizar las diferentes extensiones para objetos y como crear extensiones para módulos en placas arduino Se describe cómo utilizar las diferentes extensiones para objetos y como crear extensiones para módulos en placas arduino
UN UNIVERSO DE EXTENSIONES EN MBLOCK5En el siguiente ejemplo, si nos fijamos en el escenario, allí se observa que estoy moviendo lamano. Como he fijado la detección a un valor bajo (el 10 de defecto), se ejecutará la acción de“saltar”.En la imagen siguiente la transparencia del vídeo está a 50 (que es su valor por defecto).Si no quisiéramos que en el escenario se viera la imagen que detecta la webcam sólo deberíamosponer la transparencia a 100. Obviamente, la webcam seguiría detectando el movimiento.2.4.2. Mensaje en la nube de usuarioCon esta extensión podemos intercambiar datos entre dispositivos usando la nube de mBlock5.En la versión de mBlock5 online podemos guardar nuestros programas en su nube. Para ellodebemos registrarnos y se nos pedirá un email y que formalicemos una contraseña.Podemos generar datos y enviarlos a la nube de mBlock y, cuando los solicitemos mBlock nosdevuelve esos datos.Al probar esta extensión veo que solamente funciona con el dispositivo Halocode (que es la placaIoT de Makeblock ) y por ese motivo no se explica en este tutorial.SUSANA OUBIÑA FALCÓN PÁGINA 49 DE 207
UN UNIVERSO DE EXTENSIONES EN MBLOCK52.4.3. Cargar en modo difusiónEsta extensión se creó para que un sprite interactúe con un dispositivo en modo carga. EnmBlock5 los comandos de los sprites son independientes de los comandos de los dispositivos.Esta extensión es muy importante ya que tras cargar el programa en el dispositivo (placaArduino, mBot, Ranger, etc) éste se comunicará con nuestro PC enviándole mensajes que, porsupuesto, pueden incluir información de sensores. Veremos que la extensión “cargar en mododifusión” necesita de otra destinada a dispositivos llamada “Mensajes entre dispositivos” y queambas se complementan:Extensión de Sprites u objetosExtensión de dispositivosSUSANA OUBIÑA FALCÓN PÁGINA 50 DE 207
- Page 1 and 2: Julio de 2021Un universo deextensio
- Page 3 and 4: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 5 and 6: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 7 and 8: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 9 and 10: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 11 and 12: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 13 and 14: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 15 and 16: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 17 and 18: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 19 and 20: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 21 and 22: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 23 and 24: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 25 and 26: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 27 and 28: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 29 and 30: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 31 and 32: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 33 and 34: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 35 and 36: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 37 and 38: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 39 and 40: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 41 and 42: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 43 and 44: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 45 and 46: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 47 and 48: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 49: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 53 and 54: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 55 and 56: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 57 and 58: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 59 and 60: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 61 and 62: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 63 and 64: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 65 and 66: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 67 and 68: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 69 and 70: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 71 and 72: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 73 and 74: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 75 and 76: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 77 and 78: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 79 and 80: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 81 and 82: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 83 and 84: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 85 and 86: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 87 and 88: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 89 and 90: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 91 and 92: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 93 and 94: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 95 and 96: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 97 and 98: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 99 and 100: UN UNIVERSO DE EXTENSIONES EN MBLOC
UN UNIVERSO DE EXTENSIONES EN MBLOCK5
En el siguiente ejemplo, si nos fijamos en el escenario, allí se observa que estoy moviendo la
mano. Como he fijado la detección a un valor bajo (el 10 de defecto), se ejecutará la acción de
“saltar”.
En la imagen siguiente la transparencia del vídeo está a 50 (que es su valor por defecto).
Si no quisiéramos que en el escenario se viera la imagen que detecta la webcam sólo deberíamos
poner la transparencia a 100. Obviamente, la webcam seguiría detectando el movimiento.
2.4.2. Mensaje en la nube de usuario
Con esta extensión podemos intercambiar datos entre dispositivos usando la nube de mBlock5.
En la versión de mBlock5 online podemos guardar nuestros programas en su nube. Para ello
debemos registrarnos y se nos pedirá un email y que formalicemos una contraseña.
Podemos generar datos y enviarlos a la nube de mBlock y, cuando los solicitemos mBlock nos
devuelve esos datos.
Al probar esta extensión veo que solamente funciona con el dispositivo Halocode (que es la placa
IoT de Makeblock ) y por ese motivo no se explica en este tutorial.
SUSANA OUBIÑA FALCÓN PÁGINA 49 DE 207