Nurdspace eurorack raspberry pi hat: Difference between revisions

From NURDspace
No edit summary
mNo edit summary
 
(30 intermediate revisions by the same user not shown)
Line 10: Line 10:
|Category=Electronics,Eurorack
|Category=Electronics,Eurorack
}}
}}
The title says it all.


First version has:
=== specifications ===


* 2x analogue in (10 bit resolution)
This will be an interface between [https://en.wikipedia.org/wiki/Eurorack eurorack] signals ("control voltage" and "gates", all in the Doepfer range of -5V...+5V) and a raspberry pi (a "hat"). For that, the hat will have an ADC and a DAC (multichannel) connected via SPI (multichannel and not multiple devices as the rpi has only 2 SPI channels).
* 2x analogue out (12 bit resolution)
 
 
==== First version ====
 
* 2x analogue in (10 bit resolution, [https://cdn-shop.adafruit.com/datasheets/MCP3008.pdf MCP3008], 0.5mA max power consumption)
** using https://github.com/scottellis/mcp3008-speedtest I saw sample-speeds of 13k upto 36k samples per second (on a raspberry pi 2) by tweaking the block-size and the bus-speed (of course)
* 2x analogue out (12 bit resolution, [https://ww1.microchip.com/downloads/en/devicedoc/22250a.pdf MCP4922], 0.7mA max power consumption )
* 2x gate in
* 2x gate in
* 2x gate out
* <s>based on</s>inspired by https://micro-twin.com/hardware.php
==== Second version ====
bugfixes
* CV-out range fix (caused by parallel resistors)
==== xth version ====
* more analogue in, 12 bit resolution by using a [http://ww1.microchip.com/downloads/en/devicedoc/21298e.pdf MCP3204 or MCP3208] or so?
* more analogue out, gates in
* LEDs for gate status
* pins for neopixel connection (gnd + signal)
* I2C breakout (for e.g. small displays)
* SPI extender? (does something like that exist?)
* SMD technology maybe?
=== schematics ===
* Kicad files: see [https://github.com/folkertvanheusden/eurocrack-hat github]
* PDF of revision 001: [[File:nurd-euro-pi-001.pdf]]
=== component selection ===
* [[eurocrack opamp]]


=== to do ===


See [https://github.com/folkertvanheusden/eurocrack-hat github]
*


=== 0...3.3V to -5/+5V ===
=== 0...3.3V to -5/+5V ===


[https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEAOAnLAzKgbBsqB2AJiMgwwBYQ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ebReac8mGCA8OYqABJgkZEBA06zoMXCQEchYKL+hZSNMUjQCY4CYUgLQRHBMztk6YHDGhMzYVhKBYXhixIugPCBDafDoOgWI2tBCYgDOyphp4ECSJGnDcMicDTJxy7csOmBYtgPC6EJDSyTi4nPq+UQ5kipYTtgqBeMQMnSWJwjcXOi6UhJq7rpmW4XnuqYHkep7rrZeZcHc7jVg42ATqxrh0agbEIEgmBBci6hGYmya+lSmbZh+I7uCFXA8K2OARe6XrRZSAZBqGaTIR55GcOFDCyS0+SOFkZUOE4TCofkmQSAVjWFeVaSOnwpXkS1XXlTUPXVZVrVzM6-Q1MVrbVR1w2tMk7WiR00xrGM5U2ENdXkJgCEFokrgcD1xw1Vkh1iNIImPKJAb6MoqjqLgSjaIJ8iKHJRiOqYmAYBd+QFb1dqtvUYK-YD9hjGCoMg9crgEi49FzDMJDiFA8hzKwQA falstad circuitjs simulation]
 
The opamp needs +12 and -12 for power.
 
Schematic thanks to Kartoffel.


[[File:Circuit-20220715-2051.png|640px]]
[[File:Circuit-20220715-2051.png|640px]]
=== -5/+5V to 0...3.3V ===
[https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgpABZsKBTAWjDACgBDcFPEFFGnwwo+AkL2zR6VMPHjhoKbBgStINBCpI0MvMIuU1Sxk6T1zIbAE7c9PISLD2q2XHDYB3W96e80vSy9MR3tg0UFLG18+fCgYgOQ5NgAlOP8QJkJBMBoI8FoqJCpi6ARrbwEZe2wEERk8JIBzbxqQiTw8yIqaYr4euLd4FLT+pga+PASqfslpOJgygHsQeiy4ntJqGDkyQgRCFCK+FZW2IA falstad circuitjs simulation]
The opamp needs +3.3V and 0V for power.
[[File:Circuit-20220709-1750.png|640px]]
=== software ===
* I've chosen a DAC and ADC with SPI to easily connect them to a raspberry pi.
* gate signals can be toggled via e.g. wiringpi
=== history ===
* 28/7/2022: ordered a few test-pcbs at jlcpcb
* 5/8/2022: problem in op-amp circuit for cv-out (output range incorrect due to resistor sharing in bias input)

Latest revision as of 07:28, 6 August 2022

Eurocrack-hat
Nurd-euro-pi.jpg
Participants
Skills Electronics, Programming
Status Active
Niche Music
Purpose Fun
Tool No
Location
Cost
Tool category Electronics,Eurorack

Eurocrack-hat

Nurd-euro-pi.jpg {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::{{{Cost}}} | }}


specifications

This will be an interface between eurorack signals ("control voltage" and "gates", all in the Doepfer range of -5V...+5V) and a raspberry pi (a "hat"). For that, the hat will have an ADC and a DAC (multichannel) connected via SPI (multichannel and not multiple devices as the rpi has only 2 SPI channels).


First version

Second version

bugfixes

  • CV-out range fix (caused by parallel resistors)

xth version

  • more analogue in, 12 bit resolution by using a MCP3204 or MCP3208 or so?
  • more analogue out, gates in
  • LEDs for gate status
  • pins for neopixel connection (gnd + signal)
  • I2C breakout (for e.g. small displays)
  • SPI extender? (does something like that exist?)
  • SMD technology maybe?

schematics

component selection


to do

0...3.3V to -5/+5V

falstad circuitjs simulation

The opamp needs +12 and -12 for power.

Schematic thanks to Kartoffel.

Circuit-20220715-2051.png

-5/+5V to 0...3.3V

falstad circuitjs simulation

The opamp needs +3.3V and 0V for power.

Circuit-20220709-1750.png


software

  • I've chosen a DAC and ADC with SPI to easily connect them to a raspberry pi.
  • gate signals can be toggled via e.g. wiringpi


history

  • 28/7/2022: ordered a few test-pcbs at jlcpcb
  • 5/8/2022: problem in op-amp circuit for cv-out (output range incorrect due to resistor sharing in bias input)