Página 1 de 5

40+ Projects using Multifunctinal Shield

Publicado: Sab, 14 May 2016, 01:01
por colegionet
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

Blinking LED

Publicado: Vie, 20 May 2016, 15:06
por colegionet
Screenshot.png

Alternative Blinking of 2 LED's

Publicado: Vie, 20 May 2016, 15:07
por colegionet
Screenshot.png

Speed-controlled 2 LED's Blinking

Publicado: Vie, 20 May 2016, 15:08
por colegionet
Screenshot.png

Keypress LED On

Publicado: Vie, 20 May 2016, 15:09
por colegionet
Screenshot.png

3 LED's On/Off by Keypress

Publicado: Vie, 20 May 2016, 15:10
por colegionet
Screenshot.png

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

Publicado: Vie, 20 May 2016, 15:13
por colegionet
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.

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

Publicado: Vie, 20 May 2016, 15:14
por colegionet
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.

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

Publicado: Vie, 20 May 2016, 15:17
por colegionet
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.

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

Publicado: Vie, 20 May 2016, 15:18
por colegionet
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.