Close
0%
0%

Pi Purza - an IO board for Pi

got tired of connecting sensors, LCD, RTC, LEDs and buttons to a Pi, so here is a small PCB for it.

Similar projects worth following
Whenever I worked on Pi, I usually ended up needing either an RTC, or a Sensor (IR or Temperature or Humidity) or a few Buttons or some LEDs - every time adding these meant time sent making circuits, putting things on breadboard, wiring things up.

I always wanted to turn this into a small PCB, so here it is, PI PURZA

Purza is Urdu for Thing / Piece of a Machine. Pi Purza is a PCB which brings out Connectors and Footprints for many common Pi related components I needed.

Since this project has been made, I have had beena sked several times to sell the PCBs online or offline, I have been thinking to try Tindie finally - now that I have 10 of these almost ready and to be tested before I start selling these. I also dont want to sell before I have written code for all portions of the PCB, so that anyone who gets it gets sample code as well for all parts.

The Pi Purza has also been used as part of my course of Raspberry Pi which I teach locally at our makerspace, Tajurbagah.

Pi Purza

Made according to Official Pi Hat Dimensions

Python Sample Codes available

OUTPUTS

  • 2x OnBoard LEDs
  • 4x LED Output Pins
  • 1x RGB LED - WS2812b
  • 1x Buzzer (Active)
  • 1x LCD - Nokia GLCD MonoChrome

INPUTS

  • 4x OnBoard Buttons
  • 4x Button Input Connectors
  • 1x Reset Button / Connector
  • 1x DHT11 Connector
  • 1x DS18b20 Connector
  • 1x IR Sensor - TSOP17xx Connector

OTHER FEATURES

  • RTC IC and Coin Cell
  • EEPROM Chip footprint - not used
  • UART Connector
  • SPI Connector
  • I2C Connector
  • RGB Out Connector

  • 1 × Pi Purza PCB
  • 1 × Nokia GLCD As needed
  • 1 × DHT11
  • 1 × Buzzer
  • 1 × TSOP17 Opto and Fiber Optic Semiconductors and ICs / Other Optoelectronic ICs

View all 13 components

  • Pi based SNMP Monitor

    ZaidPirwani06/11/2017 at 09:12 0 comments

    So, I was called in at a local university for a discussion regarding an SNMP based environmental monitor - which would use a Raspberry Pi and have some temperature and humidity and other sensors attached to it and at the back of my head, I was screaming PI PURZA.

    Anyways, they also need some relay connections and also possibly water spill detection, door open/close detection and such - I think all this can be still doen with the Pi Purza - I did start with a basic Sketchup drawing and a positioning check on a vero board.

  • Populating the Pi Purza Boards

    ZaidPirwani06/11/2017 at 08:50 0 comments

    Well, this project was mostly done some months back, but the final task was to get all the Pi Purza PCBs populated, assembled, tested and ready for use in classes and to sell.

    I asked [Noor Ahmed] to get started with the soldering of the PCBs, most difficult was the RGB LED and the RTC Crystal as I had forgotten to increase pad sizes for these and as we are not very with soldering of SMD parts, this was a big headache, in the end almost all boards work and just a few issues to resolve, before the final soldering of the 40 pin Pi header.

  • Software Work

    ZaidPirwani06/11/2017 at 08:35 0 comments

    This is the part, where I end up writing, copying, hacking code to get things to work.

    My usual route in a project like this with many different components is to first try each and every thing separately with separate code, libraries and such - as usually there are examples available online for almost everything these days - especially many many THANKS to Adafruit.

    So, I made a GitHub repo to record my work for the code part - this was being done on the VeroBoard prototype while the PCBs were on their way - these LOGS are not in order - https://github.com/zaidpirwani/PiMon

    The prototype setup is shown

    In the end, I had it in such a way that one of the Push Buttons would make the Pi Shutdown in a clean manner, the LCD would show current date and time and the IP of the network. The LCD also showed Temperature and Humidity values coming in from the DHT11 Sensor and the DS18b20 Sensor.

    I also had the LED blink once every second to show that the system was indeed working.

    Still to do is the IR Sensor.

  • The PCBs are Here

    ZaidPirwani06/11/2017 at 08:27 1 comment

    With all the components and circuit schematic finalized, I gave [MaazMobin] a crudely drawn schematic with components and my preferred pin numbers and asked him to design a PCB in EagleCAD.

    He did so, then we sat together to finalize the component positions and then routing was done and finally SEEED Studio Fusion PCB Service was used to get the PCBs fabricated.

    Maaz was good enough to put it on Github - https://github.com/maazmobin/pi_hat_eagle - this was his and mine first experience trying to make a PiHat with official dimensions and sizing.

    I forked the repo and did some final modifications, mainly cosmetic wise, silk screen and other things.

    https://github.com/zaidpirwani/pi_hat_eagle

  • Finalizing Circuit

    ZaidPirwani06/11/2017 at 08:12 0 comments

    As I started listing things down to connect with my Pi, I also realized I sometimes needed IR Sensor, sometimes a Buzzer and sometimes even a simple USART or SPI header was needed.

    So, ended up with this list in the end:

    Hardware (mentioned pins are BCM Pins)


    OUTPUTS

    • Nokia 5110/3310 LCD (RST,CE,D/C,DIN,CLK==24,8,23,10,11)
    • LED (21)
    • Buzzer (16 - with 2N2222)
    • USB Powered Speaker

    INPUTS

    • TSOP17xx IR Receiver (20)
    • 5x Push-to-Make Buttons (26,19,13,6,5)
    • DHT11 Temperature and Humidity Sensor (17)
    • DS18B20 Temperature Sensor (4)
    • DS1307 RTC (SDA,SCL==2,3)
    • USB WebCam

    Libraries/Software Tools (used/planned to be used)

    • Adafruit Nokia LCD Library
    • Adafruit Python DHT Library
    • Python RPI GPIO
    • Wiring Pi
    • LIRC

    Device Tree (/boot/config.txt)

    • IR Input (gpio-ir)
    • DHT11
    • DS1307 RTC

  • The Old Times

    ZaidPirwani06/11/2017 at 08:03 0 comments

    In the olden times, I used to make circuits around Raspberry Pi for everything, Sensors, LCD, Buttons and such.

    This ended up with me doing much work which was repeated every time there was a Pi related project, so I started to list down the most common things I used with a Pi.

    • Buttons
    • LEDs
    • LCD
    • Temperature Senor
    • RTC

View all 6 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates