Hello,
From what I understood from the code (AudioStream.* etc), the Paul's audio library reads from the ADC which is built-in.
How feasible is to for example create a subclass for AudioStream which reads sample-for-sample (non-DMA) from an...
Just a suggestion, but it's easy to find working libraries for common ADCs and DACs. For example, if you google "github Arduino MCP3202", you'll find the one below, which looks very simple and probably works...
Oh indeed, unfortunately that makes no difference. Also: I'm toggling the CS pin by hand using digitalWrite.
I'm in putting a 1 Hz sine wave, but am constantly getting the same value.
Just to be sure I removed the 0_RX1_CRX2_CS1 pin and soldered CS from the MCP3202 to pin 37 of the T4.1 - no success.
So:
* MISO: 1
* MOSI: 26
* SCK: 27
* CS: 37
900 kHz clock, MSB first, spi_mode0
#include <SPI.h>
const int CS_PIN = 37...
Hi,
Question: am I right that I can't use 0_RX1_CRX2_CS1 for chipselect for the 2nd SPI bus? (SPI1 in Arduino)
If that is true, can I just connect solder a wire from pin 2 to pin 29? (= 37_CS) or do I really need to disconnect the CS from...
Ha, one other bug: the dac produces 2.048 V, not 3.3 V as I expected. It can do 4.048 but only if given 5 V VCC - that is easy to fix with some resistor changes.
Oh one bug a friend found: I did not connect the !LDAC pin on the MCP4822. If I understand https://docs.rs-online.com/20ed/0900766b81422d08.pdf correctly: in the current schematic, it will be always disabled, let's see if I can patch that.
@Paul will do! still waiting for a batch to arrive from $somecountry :-) I pulled the ones I used from an other device, maybe that damaged them.
@Mcu32 the whole setup is meant to be used for "eurorack modulair synthesizers", so output does not...
Well, soldered the pcb, plugged in the teensy 4.1 etc. Smoke test: some ics (opamp at least) became very hot very quickly so I think I made a mistake somewhere :-/ If someone is willing to take a look at the schematics, please let me know. I'm a...
It definitely makes sense to protect the Teensy pins, and an opamp gives you the opportunity to shift the levels if needed. I’m not familiar with Eurorack stuff so not sure what might be needed…
A resistor between the external signal and Teensy (or whatever other circuitry) is the main thing you need. Diodes to clamp the voltage also help, but they're far more effective if a resistor limits the amount of current. The input pins have...
In cases where a user might do something stupid, I’d tend to go for an opto isolator. You should be able to find a fast enough one with several channels in surface mount, I’d’ve thought.
Hi,
Couldn't find a kit or ready made eurorack-to-teensy thing, so I'm now developing one myself.
The first attempt only has a DAC and an ADC that accept -5...+5 Volt - the pcb arrived today! I'm writing my efforts down on...
Hi,
I created a piece of plastic with a potentiometer and a Teensy 4.0 in it.
The idea was that with the knob I could adjust the soundvolume of my Linux-system.
I thought I could do so with keyboard-events. Had I researched better (but yeah) I...
It is from a really cheap gps (a few euro, not more) so 0,5 us might not bad.
I also have an ublox timing gps, as soon as I dare it (the ublox was really expensive and I'm afraid I destroy it), I'll connect it instead and retest.
For that I...
The trouble with either of these methods is that many Teensy libraries disable interrupts completely for an unknown length of time. Usually pretty short, but it wrecks all attempts to measure a signal’s period by hooking it to a GPIO interrupt...
Hello,
I've connected a PPS (pulse per second, by using a GPS) source to a Teensy 4.1.
Then I measure the number of cycles (via ARM_DWT_CYCCNT) between each interrupt. I do that both in the interrupt handler and in "loop()".
The one in the...