Exactly, when I had a 75mm jumper cable between pin 8 & 9, it did not work well. So I had to bent a wire for the shortest distance possible.
Mind you, Teensy 4.x pins can only handle 3V3 maximum!
Paul
Since I'm interested in measuring MHz's as well, I tried example "Serial_Output_T4.ino".
The serial monitor shows a rock-solid "50000000".
Even when setting analogWriteFrequency(8, 75000000); // very short jumper...
Did you solder *ALL* the Teensy pins on the back of the Octoboard?
If you power the Octoboard with the red and white wire, you should see that +5V also on the Teensy pin Vin. If not check you soldering.
Paul
Gibbedy is right, when you power the Octoboard, the Teensy board should be powered over the Vin pin.
Something is definitely wrong; you should read ~3V3 on the 3V3 pin. Don't power the Teensy on pin A14/DAC please.
...
That was my first thought as well. Since I had such a $2.50 module laying around, I decided to give it a try.
The nice thing about the AD9833 is that it has 2 frequency registers that you can pre-program and than...
Hi Tim,
I followed getting_started_with_pico.pdf to the letter, so I got VSCode up & running. There was a hickup that the SDcard was full during installation - but no such message during install.
Then the hello_world...
I agree. Last weekend I tried to install the Pico C/C++ SDK on a Raspberry Pi 4 to see if the Visual Studio Code environment would work for me. Well, it didn't.
After fiddling around I got VSC to start but I could not...
Hi jblaze, I modified your sketch since it compiled with an error 'rxmsg' was not declared in this scope]
Here is the modified code:
#include <FlexCAN.h>
static CAN_message_t rxmsg;
static CAN_filter_t...
You can add custom protocol decoders to DSview. DSview is open-source and can be found here.
The protocol decoders are here.
I'm not sure there is such a thing as a "nand flash decoder", so I believe you have to go...
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...