franekz
Junior Member level 2
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.
or maybe better coloured ones:
here is a demo python program video. Ports are connected as shown here:
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);
here is a demo python program video. Ports are connected as shown here: