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.
|1||HEADER 2P 2.54MM||H1,H2,H3,H4,H5,H6,H7,H8,H9||HEADER 2P 2.54MM||9|
|5||Tactile button 6*6*5||KEY1,KEY2,KEY3||KEY-6.0*6.0-3||3|
|9||RESISTOR THROUGH HOLE 0.25W||R7,R8,R9,R10,R11,R12,R13,R14||RESAD1630W60L710D230||8|
|13||2x20Raspberry Pi connector||U2||RASBERRYPI-3-HAT||1|