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

Profilephotos wmlklvch7p
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

Raspberry Pi Motion Tracking Gun Turret
Intermediate
  • 828
  • 13

Full instructions

A motion tracking airsoft or Nerf gun turret with autonomous and manual operation modes, controlled by a Raspberry Pi.

Particle Photon Based Security System with Alerting
Intermediate
  • 1,345
  • 20

Full instructions

Be alerted to any door or window opening and closing in your house on your smart phone.

Audio DAC HAT for Pi with Headphone Jack and 3W Speaker Out
Intermediate
  • 627
  • 3

Full instructions

Make your own DAC HAT for Raspberry Pi 3, Raspberry Pi Zero, Raspberry Pi Zero W that has a headphone jack and 3W stereo speaker out.

LoRaWAN for Raspberry Pi with Worldwide Frequency Support
Intermediate
  • 4,139
  • 18

Full instructions

LoRaWAN LMIC 1.6 for Raspberry Pi with Dragino LoRA/GPS HAT or standalone RFM95W LoRa Module.

Human-Following Robot with Kinect
Intermediate
  • 2,762
  • 25

Full instructions

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

Automated Indoor Gardener
Intermediate
  • 4,184
  • 42

Full instructions

Never worry about dead plants again. This automated gardener never forgets to water your plants and provide artificial sunlight.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog