License

Public Domain

Tags
Recommend Projects

Rpi 40 pins hat

4 months ago 132
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Prototype of raspi hat 40pins.

Programmed in python, exactly python+QT5:

Digital outputs working fine

 

Digital inputs (buttons) are working fine

 

Added a 4pins header to connect the  i2c Raspberry LCD touchscreen 7"

 

As I had some issue to drive the ADC ads1115 4 channels 16bits through i2c and I couldn't find the solution on internet, my software skills are my weakpoint , I have moved to the ADC MCP3208 8Channels 12bits.

 

The hardware (hat for raspberry pi) seems working fine.(see picture in attachement.

Where the program written in python + using GUI Qt is reading the channel AI0 set at around 4V, using a setpdown DC-DC converter.

 

In attachement the 3 py files (main+timer+gui) need to be together to run the program. (open main using Thonny python for example)

 

The board is touching a little bit the ethernet connector on the right side, but it is ok, it can be plugged on the 40pins connector, no problem.

(see picture in attachements)

 

I have written a pyqt5 program where you can display the analog inputs every 500ms.

 

If you press the button record, by default it will display and record every second or you can adjust the sample time up to 1 record every 3600s.

 

The data is recorded into the file datalogger.csv file in the rasperry pi into home/pi

 

If you press the button "stop record" then it will display the value of analog input every 500ms.

 

If you press the button exit, you will exit the program.

 

To do next: to improve the program to get a better csv file with all the channels recorded and the title of the columns.

Documents

Sheet_1

PCB_Rpi 40 pins hat

BOM

ID Name Designator Footprint Quantity
1 HEADER 2P 2.54MM H1,H2,H3,H4,H5,H6,H7,H8,H9 HEADER 2P 2.54MM 9
2 Header-Male-2.54_1x4_C59481 H10 HDR-TH_4P-P2.54-V 1
3 PHOENIX J1 PHOENIX PKG 1
4 282836-8 J5,J6 282836-8 2
5 Tactile button 6*6*5 KEY1,KEY2,KEY3 KEY-6.0*6.0-3 3
6 HSMG-C150 LED1,LED2,LED3 LED1206-R-RD 3
7 200Ω R1,R2,R3 1206 3
8 10K R4,R5,R6 R1206 3
9 RESISTOR THROUGH HOLE 0.25W R7,R8,R9,R10,R11,R12,R13,R14 RESAD1630W60L710D230 8
10 10k R15 RESISTOR 1206 1
11 LM35 S1 LM35 1
12 MCP3208-CIP U1 DIP16 1
13 2x20Raspberry Pi connector U2 RASBERRYPI-3-HAT 1

Attachments

Filename Download
Screenshot (1).png
20210416_194822.jpg
20210416_194832.jpg
gui.py
main.py
timer.py

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow