Universal 8 port ADC/DAC/GPIO hat for 40 pin Raspberry Pi. Fully software configurabl

Status
Not open for further replies.

franekz

Junior Member level 2
Joined
Dec 10, 2015
Messages
20
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Activity points
155
Hi Guys,

One day I needed to have 4 ADC & 3 DAC channels for my Raspberry Pi project. I have found nothing on the market so I have decided to build my own one (and even have kickstarted it https://kck.st/2kCToFY).
It is fully software configurable and every port can be used as ADC, DAC or GPIO pin.
Idea testing:


Then I have assembled it on the prototype hat:


And eventually designed the PCB layout.


then I wrote Python & C libraries.
Code:
import ad559
ad559.GPIO_OutputCFG([0,2])
ad559.GPIO_InputCFG([1])
ad559.ADC_PinCFG([7,6,3])
ad559.DAC_PinCFG([5,4])
ad559.DAC_Write(5, Voltage=2.75)
ad559.DAC_Write(5, Raw=2045)
result = ad559.ADC_Seq_Cfg([7,6,3], False, True)
ad559.GPIO_Write([[2,1],[0,0]])
ad559.GPIO_Read([1],True)

Code:
AD5592_ADC_Cfg(&ADCpins);
AD5592_DAC_Cfg(&DACpins);
AD5592_DAC_Write(5, Voltage);
AD5592_ADC_Read_Start(&ADCpins, &ADCResults, 0, 1);
or maybe better coloured ones:

here is a demo python program video. Ports are connected as shown here:

 

Attachments

  • universal-zero.jpg
    240.7 KB · Views: 58

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…