The demo device does decoding. Here is a screen shot of DSview in action. I set it to decode I2S on the top 3 signals.
The demo data is bogus ofcourse so the I2S decode shows garbage.
I've been using the...
For what it's worth: I have been using the little brother DSLogic Plus now for over a year and it served me well. I especially liked the protocol-decoder built into the DSview program. The cables a.k.a. "fly wires" are...
When measuring the voltage on pin 13 with a DVM, the LED very dimly lit... pin is floating I guess.
This code definitely does not turn on the LED during boot:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
...
With this (empty) code, the orange LED is not lit during boot:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
So I assume your...
In case anyone is interested, here is a readable paper on the difference between PSD (power spectral density) and FFT, and why FFT is not suitable for noise floor measurements.
Paul
Opened up the PeakMeterMono sketch and uploaded it to a Teensy 4.0 and got the same "adc2_cfg = 00000637" message in the serial monitor.
Mind you, I don't have a MAX9814 electret microphone so pin A2(16) is open.
I...
This logic analyzer may (just) work for you.
You need 14 channels for this flash chip: IO0-IO7, CLE, ALE, CE, WE, RE, WP.
The U3Pro16 can sample 16 channels @ 500 MHz in Buffer mode or @ 125 MHz in Stream mode. Buffer...
Yes, using a Scarlett 2i2 USB audio interface, sampling at 24 bit/96 kHz and the data fed into TrueRTA, shows more realistic values than the scope:
Sure, not calibrated though...
Paul
Finally, 5 months(?) after ordering on Ebay, 2pcs Philips TDA1543 in DIP8 package showed up in the mailbox today. TDA1543, not the TDA1543A.
The TDA1543 accepts regular I2S format, the TDA1543A accepts left-justified ...
Yes, my Siglent 1202X-E has issues in that area. That's what I emailed them about.
I'm expecting that when I keep the signal within screen limits, I'm not overdriving it. But the pictures below tell a different...
Hi Deane, just thinking out loud here. How does the analog signal that you want to sample, look like? I assume it's pulse-like because that is what the laser sends out. In that case, could you use a high-speed...
Attachment is fixed. I can see your scope screen.
Here is what I see with the code of msg #8 and measured on pin 15 :
The long pulse measures 97.2 ns.
Paul
For simplicity, I wouldn't mind standardizing on LRCK = 44.1 kHz, BCK = 1.4117 MHz and MCLK = 11.29 MHz for all I2S DAC's .
I checked on the scope what the output spectra are for the different LRCK's/BCK's for the...
Are you sure you need to feed 3V3 to the breakout board?
From what I can tell from the photo is that you connect Teensy's 3V3 output to a V+ pin on the breakout board. Is the V+ on the breakout board also an output?...
Took your exact code, ran it on a Teensy LC and checked with the logic analyzer.
Here is the setup:
And here is the logic analyzer output:
I watched the output for a few minutes but never saw any...
@PaulStoffregen: not a boring video at all, very clear and informative!
My guess is that the other mentioned terminal programs indeed talk to the FTDI driver instead of the WIN32 API.
I recall that long ago I wrote...
Gave it a quick try, modified usb_serial.h on my PC, compiled and uploaded it.
Even tried the || (double pipe) operator USB_SERIAL_DTR || USB_SERIAL_RTS .
Unfortunately no change...Termite can not toggle the RTS line....
After the perils with Powershell and rebooting my PC, back to the original issue this thread started with: I verified my initial tests again and the messages #4 and #5 are still valid.
I'm not sure where the...
After rebooting my PC, no strange behaviour anymore with Powershell and/or Arduino and/or Teensy Loader...
Powershell can't open COM1 when the Arduino Terminal is open and is able to open COM1 again when I close the...
Correction/addition: it seems that the Teensy Loader is 'screwing' up the Powershell serial port behaviour, not the Arduino IDE.
When Teensy Loader is open but idling, it allows Powershell to open and close the serial...
Yes, Arduino terminal is closed.
The PS shell must have remembered that I assigned COM1 to 'port'.
Here is a new screenshot:
Yes, Windows allows you to reassign the COMport number in the Device Manager ....
Yes, it is on COM1. FTDI dongle also.
Oh, I was not clear. First I plugged in the FTDI dongle, ran the PS commands, then removed the FTDI dongle and inserted the Teensy, then ran the PS commands again.
Further searching on this forum on DTR & RTS, I found this thread, so I tried with PowerShell.
Here is the screendump:
The first 7 lines shown are with the FTDI dongle plugged in. Then I plugged in the Teensy...
Did a quick test with a genuine FTDI US232R-10 USB serial converter.
This time, both CoolTerm and Thermite were able to correctly set the DTR and RTS lines when clicking on the DTR and RTS indicators.
So...
Interesting. I modified your sketch a bit to show the status of DTR and RTS in the serial monitor screen.
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
}
...
You're welcome.
No need to update Teensyduino 1.53, that is the latest.
Yes, please delete any FlexCAN_T4 libraries under Documents\Arduino\Libraries\ to make sure you're using the one that came with Teensyduino....
Hi Rafal,
Saw from the photo's that you copied my setup, good, than we have the same setup hardware-wise. Your wiring seems to be OK.
Ran your code from message #7 and everything seems to be working well!?
Here is...
Yes, that worked fine when I modified your output_pt8211.cpp to support the PCM5102. The DAC will do 8x interpolation anyway, so the analog signal is looking OK.
Danke,
Paul
edit: I will be out for a few hours...
Hi Frank, just tested this a few minutes ago. Copied both output_is2.cpp & output_is2.h from PR #377 to C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio\.
Using this sketch...
// PCM5102 bd Teensy...
If you want to connect a PCM5102 DAC board to a Teensy LC, you have to change output_pt8211.cpp, line 606, from:
I2S0_TCR4 = I2S_TCR4_FRSZ(1) | I2S_TCR4_SYWD(15) | I2S_TCR4_MF /*| I2S_TCR4_FSE*/ | I2S_TCR4_FSP |...
You may want to have a look at this library: TeensyStep.
Forum member Luni will definitely step in if you have further questions.
Paul
sorry for missuggesting: TeensyStep is not yet implemented for Teensy 4.x
If your *only* goal is to create an inverted audio signal , then I would go for opamps.
See here for basic circuits. One inverting opamp and one non-inverting opamp and feed them both with the same input signal.
With...
Yeah, it's the DAC that causes the 1 BLCK period shift of the left channel.
Here is what the logic analyzer shows:
Identical data for right & left 16 bit sample, 0x00008540.
Timing of the I2S frame is according...
While checking the output signals on the oscilloscope I noticed that the left channel is trailing behind by 1 BCLK period when sending out a mono 10kHz sine on both channels:
By the way, on a Teensy 3.2. , the...
That solved it!
And still some memory left:
Sketch uses 18284 bytes (28%) of program storage space. Maximum is 63488 bytes.
Global variables use 5296 bytes (64%) of dynamic memory, leaving 2896 bytes for local...
Thanks Frank.
When I copy the new files and compile the sketch on top of this thread, I see this on the scope :
Left channel
Right channel
I will have a look at your files now.
If soldering headers on a Teensy is an issue, why don't you buy them with headers already soldered on? Ready to plug into a breadboard.
I wouldn't call a Teensy that is twice the size 'teensy' anymore...the size is the...
Depends on what you need them for but since you mentioned synthesizer and guitar, those speakers do not necessarily need to be high-end loudspeakers. In your case I would look for high-sensitivity loudspeakers in the...
Made a quick setup using a Teensy 4.0 and 2 of those cheap TI SN65HVD230 CAN-bus transceiver modules.
This is the setup:
I connected the CANL & CANH signals from both transceivers to a CANbus analyzer .
This is...
I'm afraid the only way to improve the lower frequency sounds, is to use a bigger speaker. You are talking about a bluetooth speaker so I'm guessing the speaker itsself is probably 2"-3" in diameter? Such a small...
When it comes to manufacturing of small qty PCB's, I have good experiences with PCBway.com.
For designing the PCB and doing the schematics and layout, I used Autodesk's EAGLE. It's free for small PCB's <80cm2. The...
Hi Paul, thanks for your extensive answer!
I'm afraid the DMA stuff is a bit beyond my league.
To be honest, I don't need this to work - I was just curious whether I could built a simple sinegenerator with a Teensy LC...
Would it be possible to talk to the PT8211 DAC over I2S with a Teensy LC?
This small program compiles without error for Teensy LC but no sine output out of the PT8211 kit. This code does work on a Teensy 3.2.
//...
Looking into the MKL26Z64 datasheet, the I2S pins are available on the 48pin package:
From the Teensy LC schematic:
pin 33 connects to Teensy pin 15/A1
pin 34 connects to Teensy pin 22/A8
pin 35 connects to...
Would it be possible to talk to the PT8211 DAC over I2S with a Teensy LC?
This small program compiles without error for Teensy LC but no sine output out of the PT8211 kit. This code does work on a Teensy 3.2.
//...
I noticed that you define this:
AudioOutputAnalogStereo dacs1;
However, a stereo DAC is not supported on Teensy 3.2:
Not sure what you see on pins 9 & 11 though...
Regards,
Paul
Just wondering, should you use the digital GND connection for DAC output instead of the analog GND pin?
I believe (but I could be wrong) the AGND pin is to be used for ADC input only.
Is this easy for you to try...
The issue is this line:
pinMode(dacpin, OUTPUT); // DAC
Just delete that line and the DAC outputs the full voltage range. See this post for details.
Regards,
Paul
For what it is worth: I checked also on my rather old desktop PC running Windows 7 Pro X64. When I plugged the Teensy LC in one of the front USB3 ports, it did not show up in the device manager? .
However, when I...
Out of curiousity, I installed the ArduinoXInput library and related ArduinoXInput_Teensy stuff.
Running Windows 10 Home version 20H2, Arduino 1.8.13, Teensyduino 1.53.
Took a Teensy LC, the code from your post and...
You may want to check these threads for more info on actual powerconsumptions:
https://forum.pjrc.com/threads/64460-LC-draws-more-current-than-3-1-in-Snooze-modes-does-not-work-on-digital...
Running into the same problem and searching for a solution, I found this rather old post.
The solution can be found in this post by Paul Stoffregen: set myTimer.priority(xxx) to a value above 128 and below 255. This...
Although I've never used the WIZ ethernet modules, what about regularly checking the status of the link by Ethernet.linkStatus()?
And if it fails, drive the reset pin of the Wiz850io module?
Regards,
Paul