Addtional Pins for your Arduino Board

 Video Tutorial:


Tutorial Description:
Hi guys!, int his tutorial, ididiscuss natin ang isa sa mga methods kung paano tayo makakapag add ng atleast 5 addtional pins sa ating Arduino UNO for only Php 20.00!!!

This is important especially for those na gumagawa ng complex projects using arduino boards and eventually nakakaexperience na kulang na pala ang pins ng kanilang board. So rather magpalit ng board which is mas magastos, you can try considering muna na iupgrade ang pins ng existing board mo for atleast additional new 5 pins.



Materials used for this tutorial including the sample mini project "Dancing Lights":

1x Arduino UNO Board
2x Breadboard (optional)
1x 74HC595 8-bit Shift Register IC
8x LED Lights
8x 220 ohms Resistor
1x Capacitor 1uf
Jumper wires
 

Schematic / Layout:


Source Code: Click here to Download File


int ic_latchPin = 5;
int ic_clockPin = 6;
int ic_dataPin = 4;
byte leds = 0;

#include "IC74HC595.h"

void setup() {
  pinMode(ic_latchPin, OUTPUT);
  pinMode (ic_dataPin, OUTPUT);
  pinMode (ic_clockPin, OUTPUT);
  updateShiftRegister();
  delay(500);
  Serial.begin(9600);
}

void loop() {
  if (Serial.available())
  {
    char ch = Serial.read();
    if (ch >= '0' && ch <= '7')
    {
      int led = ch - '0';
      bitSet (leds, led);
      updateShiftRegister();
    }
    if (ch == 'x')
    {
      leds = 0;
      updateShiftRegister();
    }
  }
}

Comments

Popular Posts