40+ Projects using Multifunctinal Shield

Forum where you can read and publish your Codebricks proyects. Tou will be ableto upload both images and codebrick source files.

Moderador: colegionet

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

40+ Projects using Multifunctinal Shield

Mensaje: #93 colegionet
Sab, 14 May 2016, 01:01

40+ Projects using Multifunctinal Shield

MultifunctionShield_bb.jpg
The Multifunctional Shiel is an ideal accesory for those who prefer focusing on coding, leaving appart the electrinics issues and skills for circuitry. This shield provides 4Leds (2 of the PWM), 4-Digit 7-Segment display via 74HC945 serial, 3 keys, a buzzer, and a potenciometer. What's more, it provides a socket for temp sensor, 3 free unconectes digital pins and 1 analog pin available. Al this working with inverted polarity, that is ACTIVE implies LOW signal and INACTIVE means HIGH signal. The pins are connected as folows:
    A0: potenciometer
    Multifunction_bb.jpg

    A1, A2, A3: Keys 1, 2 y 3
    A4: Socket Temperatura sensor
    A5: Free pin for extra sensor
    D0, D1: Tx y Rx Bluetooth
    D2: Socket para IR Receiver
    D3: Buzzer
    D4, D7, D8: Data, Clock y Latch for 74HC945controlling the display
    D5, D6, D9: Free pins for other sensors and actuators.
    D10, D11, D12, D13: Built-in LED's
An equivalent Fritzing scheme is attached
Adjuntos
Multifunction.fzz
(43.99 KiB) Descargado 23 veces
Multifunction.fzz
(43.99 KiB) Descargado 23 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Blinking LED

Mensaje: #94 colegionet
Vie, 20 May 2016, 15:06

Screenshot.png
Adjuntos
P001ParpadeoLed.c4a
(3.9 KiB) Descargado 23 veces
P001ParpadeoLed.c4a
(3.9 KiB) Descargado 23 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Alternative Blinking of 2 LED's

Mensaje: #95 colegionet
Vie, 20 May 2016, 15:07

Screenshot.png
Adjuntos
P002ParpadeoAlternativo2Leds.c4a
(5.87 KiB) Descargado 21 veces
P002ParpadeoAlternativo2Leds.c4a
(5.87 KiB) Descargado 21 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Speed-controlled 2 LED's Blinking

Mensaje: #96 colegionet
Vie, 20 May 2016, 15:08

Screenshot.png
Adjuntos
P003ParpadeoAlternativo2LedsTemporizado.c4a
(9.34 KiB) Descargado 20 veces
P003ParpadeoAlternativo2LedsTemporizado.c4a
(9.34 KiB) Descargado 20 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Keypress LED On

Mensaje: #97 colegionet
Vie, 20 May 2016, 15:09

Screenshot.png
Adjuntos
P004PulsadorLed.c4a
(5.41 KiB) Descargado 20 veces
P004PulsadorLed.c4a
(5.41 KiB) Descargado 20 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

3 LED's On/Off by Keypress

Mensaje: #98 colegionet
Vie, 20 May 2016, 15:10

Screenshot.png
Adjuntos
P005Pulsadores3Leds.c4a
(14.6 KiB) Descargado 24 veces
P005Pulsadores3Leds.c4a
(14.6 KiB) Descargado 24 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Button as a Switch for LED (w/ delay())

Mensaje: #99 colegionet
Vie, 20 May 2016, 15:13

Screenshot.png
We use delay() function whitin a while loop to debounce keypressses. That's why no other operation is executed while a key is pressed.
Adjuntos
P006InterruptorLedDelay.c4a
(12.45 KiB) Descargado 21 veces
P006InterruptorLedDelay.c4a
(12.45 KiB) Descargado 21 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Buttons as Switches for 3 LED's (w/ delay())

Mensaje: #100 colegionet
Vie, 20 May 2016, 15:14

Screenshot.png
We use delay() function whitin a while loop to debounce keypressses. That's why no other operation is executed while a key is pressed.
Adjuntos
P007Interruptoes3rLedsDelay.c4a
(33.1 KiB) Descargado 22 veces
P007Interruptoes3rLedsDelay.c4a
(33.1 KiB) Descargado 22 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Button as a Switch for LED (w/ millis())

Mensaje: #101 colegionet
Vie, 20 May 2016, 15:17

Screenshot.png
Here we use millis() instead of delay() but with a timestap variable which updates when data is read, and comparing this with current millis() value to test elapsed time and decice if debouncing is needed. Main advantages of this aproah are that execution is not paused while a key is pressed and you can use repite keypress function.
Adjuntos
P008InterruptorLednoDelay.c4a
(13.41 KiB) Descargado 22 veces
P008InterruptorLednoDelay.c4a
(13.41 KiB) Descargado 22 veces

colegionet
Administrador del Sitio
Mensajes: 121
Registrado: Mar, 29 Mar 2016, 13:05

Buttons a s Switches for 3 LED's (w/ millis())

Mensaje: #102 colegionet
Vie, 20 May 2016, 15:18

Screenshot.png
Here we use millis() instead of delay() but with a timestap variable which updates when data is read, and comparing this with current millis() value to test elapsed time and decice if debouncing is needed. Main advantages of this aproah are that execution is not paused while a key is pressed and you can use repite keypress function.
Adjuntos
P009Interruptoes3LedsnoDelay.c4a
(37.43 KiB) Descargado 21 veces
P009Interruptoes3LedsnoDelay.c4a
(37.43 KiB) Descargado 21 veces


Volver a “Codebricks Project Samples”

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados