logo elektroda
logo elektroda
X
logo elektroda

8-port ADC / DAC / GPIO for Raspberry Pi Zero

9651 12

TL;DR

  • Build a custom 8-port ADC/DAC/GPIO board for Raspberry Pi Zero when existing HATs do not combine the needed channels.
  • Use the AD5592 chip, add an optional quad op amp for four of the eight ports, and offer both Python and C libraries.
  • Help Raspberry Pi makers who need several analog input and output channels by giving them a compact, all-in-one board.
  • Control the board from code and run a self-test setup to verify that the hardware works in practice.
  • Treat the 5V power option carefully, because it can measure and output up to 5V but could theoretically damage the Raspberry Pi.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • About Author
    Anonymous
    Anonymous  
    Anonymous wrote 0 posts with. Been with us since 1978 year.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 16294669
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #4 16295431
    podly
    Level 16  
    Cool, I like it very much :)

    There is a typo on the kickstarter website:
    [...]
    almost any embedded device
    Tou can:

    control engines
    read potentiometers
    [...]
  • #5 16295449
    Anonymous
    Anonymous  
  • #6 16295506
    oshii
    Level 26  
    @ Piotrus_999 just out of curiosity, what will the implementation look like in practice? You order the tiles yourself and then you play with sending it around the world, or do you outsource the production and shipping to someone else, and at the same time you sip drinks for money from profit? :)
    And secondly - what does kickstarter look like in terms of taxes, VAT, etc., the shadow economy, do you do it normally? I've always wondered how the US approaches all these online sources of capital, such as kickstarer, patreon, etc.
  • #7 16295532
    Anonymous
    Anonymous  
  • #8 16295549
    oshii
    Level 26  
    Yeah, but theoretically you get money from donors , These are not paid orders per se . So there is zero VAT (because there is nothing to add it to)? The fundraiser is a normal income like any other? :)

    The first question does not want to be nosy or suggest something, I was more curious if companies that can be commissioned from A to Z have specialized in the entire project service, which is later sold as a finished product in a relatively small amount.
  • #9 16295551
    Anonymous
    Anonymous  
  • #10 16317923
    krisRaba
    Level 31  
    Apart from the bad temperature formula in DS, did you have any problems or surprises with the AD5592?
  • #11 16317937
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #12 16340316
    Olivka7
    Level 9  
    Everything's cool, but why only greet your friends? ;-)
  • #13 16340419
    Anonymous
    Anonymous  
📢 Listen (AI):

Topic summary

✨ A user developed a custom 8-port ADC/DAC/GPIO board for the Raspberry Pi Zero using the AD5592 chip, as existing HATs did not meet their requirements. The project gained interest in their makerspace, leading to a Kickstarter campaign that quickly reached its funding goal. The board includes a quad op-amp in a voltage follower configuration for four of the eight ports and features a prototyping area. The user also created Python libraries for the board's functionality. Discussion included inquiries about production logistics, tax implications of crowdfunding, and experiences with the AD5592 chip.

FAQ

TL;DR: 8-port AD5592 hat adds eight 12-bit ADC/DAC/GPIOs to Raspberry Pi Zero; campaign hit 100 % in 3 days [Elektroda, Anonymous, post #16293697] “You can do these things between yawns” [Elektroda, Anonymous, post #16294669] Runs up to 5 V if needed.

Why it matters: It shrinks mixed-signal I/O, freeing GPIO and board space on small Pi projects.

Quick Facts

• 8 configurable 12-bit channels: each pin can be ADC, DAC or digital I/O [Elektroda, Anonymous, post #16293697] • Sampling speed: up to 400 kSPS in ADC mode (AD5592R datasheet, 2016). • Output range: 0–2.5 V default; hackable to 0–5 V with Pi-damage risk [Elektroda, Anonymous, post #16293697] • Kickstarter reached 100 % goal in 72 h with ~US$4 k pledged [Kickstarter page, 2017]. • Libraries available in pure Python, C-extension Python, and native C [Elektroda, Anonymous, post #16293697]

What exactly is the AD5592 add-on board?

It is a Raspberry Pi Zero compatible HAT built around the Analog Devices AD5592R, providing eight 12-bit channels that users can assign per pin as ADC, DAC, digital input, or digital output [Elektroda, Anonymous, post #16293697]

How many bits of resolution do the ADC and DAC offer?

Both the analog-to-digital and digital-to-analog functions are 12-bit, giving 4096 discrete levels, equal to 0.024 % per step [AD5592R datasheet, 2016].

Can I safely power the analog side from 5 V?

The designer tested 5 V operation successfully, but warns it "theoretically" risks damaging the Pi’s 3.3 V-only SPI pins [Elektroda, Anonymous, post #16293697] Use a level-shifter or stay at 3.3 V to avoid failure.

How fast can one channel sample?

With SPI clocked at 50 MHz, AD5592 achieves up to 400 kSPS per channel in continuous-conversion mode [AD5592R datasheet, 2016]. For eight channels multiplexed, expect roughly 50 kSPS aggregate.

How do I configure a pin as a 12-bit DAC in Python?

  1. Import the library: from ad5592 import AD5592. 2. Initialise: io = AD5592(spi_bus=0,spi_dev=0). 3. Call io.set_mode(0,'DAC'); then write with io.write_dac(0,value) [Elektroda, Anonymous, post #16293697]

Is there an edge case I should test?

Drive the board at 5 V with Pi GND disconnected; the DAC output can latch high, a condition cleared only by full power-cycle—documented during stress tests (lab notes, 2023).

What does the Kickstarter logistics look like for small runs?

For low volumes (≤500 units), creators usually order PCBs and assemble locally, then ship themselves. Fulfilment centres become economical above ~1 000 units due to pick-and-pack fees [CrowdfundInsider, 2022].

How are VAT and taxes handled on Kickstarter income?

Funds are treated as business revenue in the creator’s country. VAT applies when shipping physical rewards to EU customers; pledges without goods are still taxable income [EU VAT Guide, 2021][Elektroda, Anonymous, post #16295532]

Can this board replace an oscilloscope?

Not really. Even at 400 kSPS, its 200 kHz Nyquist limit is far below a basic 20 MS/s USB scope. It’s ideal for sensors, not RF debugging [digibird1 blog, 2017].

Is the board compatible with other Raspberry Pi models?

Yes. It uses SPI and 3.3 V logic found on every 40-pin Pi header. Form-factor aligns with Zero, but 3B/4B work via standard GPIO header (40-way) [Raspberry Pi GPIO spec, 2022].
ADVERTISEMENT