Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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:
first_prototype.jpg

Then I have assembled it on the prototype hat:
second.jpg

And eventually designed the PCB layout.
universal-zero-description.jpg

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: language examples.jpg

here is a demo python program video. Ports are connected as shown here:
universal zero - test configutration-v7.jpg
 

Attachments

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

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top