Things used in this project

Hardware components:
Texas Instruments SN74HC244N buffer ICs
×1
ULN2803A
×1
ProtoPal
×1
20-pin DIP socket - Through Hole - 3 pcs
×1
[10x] 3-Pin 2.54mm Pitch PCB Mount Screw Terminal Block Connector - Fits PCBs!
×1
A  overhead
Raspberry Pi 1 Model A+
×1
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Schematics

schematic.JPG
Schematic

Code

Test CodePython
Code to test board
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)

myInputs = [17,22,23,24,5,6,12,13]
myOutputs = [25,8,7,16,20,19,26,21]

for pin in myInputs:
    GPIO.setup(pin,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

for pin in myOutputs:
    GPIO.setup(pin,GPIO.OUT)

while True:
    for pin in myOutputs:
        GPIO.output(pin,True)
        sleep(.25)
        GPIO.output(pin,False)
GPIO Buffer initializationPython
I've placed my script in /usr/share and a script in /etc/init.d to initialize this code on startup
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)

myInputs = [17,22,23,24,5,6,12,13]
myOutputs = [25,8,7,16,20,19,26,21]

for pin in myInputs:
    GPIO.setup(pin,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

for pin in myOutputs:
    GPIO.setup(pin,GPIO.OUT)

for pin in myOutputs:
    GPIO.output(pin,False)
Init.d script to initialize the bufferSH
With this script in the /etc/init.d folder and named gpio_init and the python script gpiobuffer_init.py in the /usr/share folder, run the command sudo update-rc.d gpio_init defaults
Now the script will run at startup and initialize the buffers
#! /bin/sh
### BEGIN INIT INFO
# Provides:          gpio_init
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file initializes the GPIO Buffer
### END INIT INFO

# Author: Doug
#


python /usr/share/gpiobuffer_init.py

Credits

Df9795cc7f4836a099ad423362f42aa3
Doug Wyman

Been playing with computers since 1962. Still learning.

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Face Detection Using OpenCV With Raspberry Pi
Intermediate
  • 3,034
  • 30

Protip

In this project, we are going to detect faces using OpenCV with Raspberry Pi.

Creating an IoT Server with Home Assistant and MQTT
Intermediate
  • 3,258
  • 19

Protip

This guide will help you set up Home Assistant. Access it from any web browser and automations.

Automated GPS Controlled Photo Taker
Intermediate
  • 1,700
  • 20

For this build, I put together a backpack to take pictures when I am close to places that I like; especially in London.

Home Automation Using Wiscore and OpenHab
Intermediate
  • 232
  • 2

Protip

This project will help you setup your very own Alexa controlled Home Appliances using the wonderful Wiscore Module from RAK Wireless.

DIY Smart Assistant Speaker/Lamp (Google Home or Alexa)
Intermediate
  • 1,865
  • 5

Full instructions

DIY build using 3D printed enclosure and parts, a recycled Bluetooth speaker, a Raspberry Pi, and a Philips Hue light bulb.

Adding RC Transmitter/Receiver to Control Mecanum Bot
Intermediate
  • 505
  • 6

Full instructions

We previously showed our Mecanum Bot being controlled by a wireless Xbox controller, now we added RC transmitter/receiver.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login