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 MBLOCK5El pin A0 nos proporcionará valores de 0 a 1023. Repartimos estas opciones en tres grupos demodo que:• Si el potenciómetro nos ofrece valores entre 0 y 340 se iluminará la patilla roja del LEDRGB.• Si el potenciómetro nos ofrece valores entre 341 y 681 se iluminará la patilla verde delLED RGB.• Y, si el potenciómetro nos ofrece valores mayores que 682 se iluminará la patilla azuldel LED RGB.Los componentes que utilizo son los siguientes:Potenciómetro de 10KLED RGB Cátodo Común de 10mmUn posible programa de control en mBlock5 podría ser el siguiente:SUSANA OUBIÑA FALCÓN PÁGINA 93 DE 207
UN UNIVERSO DE EXTENSIONES EN MBLOCK5Tras cargarlo en la placa Arduino Uno, desconectamos la misma de mBlock5:SUSANA OUBIÑA FALCÓN PÁGINA 94 DE 207
- 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 and 50: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 51 and 52: 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: 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
- Page 101 and 102: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 103 and 104: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 105 and 106: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 107 and 108: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 109 and 110: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 111 and 112: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 113 and 114: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 115 and 116: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 117 and 118: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 119 and 120: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 121 and 122: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 123 and 124: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 125 and 126: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 127 and 128: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 129 and 130: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 131 and 132: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 133 and 134: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 135 and 136: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 137 and 138: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 139 and 140: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 141 and 142: UN UNIVERSO DE EXTENSIONES EN MBLOC
- Page 143 and 144: UN UNIVERSO DE EXTENSIONES EN MBLOC
UN UNIVERSO DE EXTENSIONES EN MBLOCK5
El pin A0 nos proporcionará valores de 0 a 1023. Repartimos estas opciones en tres grupos de
modo que:
• Si el potenciómetro nos ofrece valores entre 0 y 340 se iluminará la patilla roja del LED
RGB.
• Si el potenciómetro nos ofrece valores entre 341 y 681 se iluminará la patilla verde del
LED RGB.
• Y, si el potenciómetro nos ofrece valores mayores que 682 se iluminará la patilla azul
del LED RGB.
Los componentes que utilizo son los siguientes:
Potenciómetro de 10K
LED RGB Cátodo Común de 10mm
Un posible programa de control en mBlock5 podría ser el siguiente:
SUSANA OUBIÑA FALCÓN PÁGINA 93 DE 207