Looking at the color lines of the circuit with fresh eyes, I think it could be simplified to get rid of four resistors?
/*
* INTENSITY (13) <-- 536R --\
* |
* GROUND <------ 536R...
Thanks and no it was not.
I bread boarded the R2R ladder and VGA connector. I don't think I know about FrankB's board. The schematic is shown above and in the VGA_4bit_T4.ccp file at the beginning of the file. Most of...
I programmed AudioSynthWaveformModulated with two additional modulation inputs..
The modulation inputs can be connected to any modulation source (envelope, LFO and more..) in the AudioPatch.h
waveformMod into...
Hi guys, im in a bit off a struggle with the project. The code seems to be correct, I followed al the steps and I dont get any errors. The Teensy 4.0 is solderd to the Teensy Audio-board and I know my hook switch is...
You have chosen a challenging problem, one that may not have a workable solution by direct manipulation of digital I/O. If you want to learn more about C++, perhaps work through examples in various libraries and online...
@jmarsh - I have been playing with FlexIO2VGA off and on for the last few months now. It has been a lot of fun:)
I thought you might be interested in what I have come up with so far. I created a library called...
Yes, I had seen this post before. But unfortunately I am quite a beginner when it comes to C++ and Teensy. For this reason I don't understand the program described there at all.
I could possibly copy it, but I would...
Did you perhaps see this thread? Especially message #21 where forum member ntyrell seems to have it working on a Teensy 4.0: "i have precise timing control over everything".
Paul
Thanks @PaulS.
I just hooked my analog oscilloscope to the signal and I don't see any interruptions in the voltage.
I actually hadn't thought of the effect you mentioned here.
My digital Osci should have ...
Usually best to use RX1 and TX1 (pins 0 and 1). Any of the others can also work, just make sure you use the connect name rather than Serial1.
Don't forget to also connect GND between the boards.
Heyya! I'm trying to connect a Teensy 4.1 to an ESP32 -- mainly to send data from Teensy to ESP32, and then over to my computer. There are multiple RX and TX pins on both boards -- I was wondering which to use, if there...
Yes, your scope is playing tricks on you. Your scope's sample frequency (2MSa/s) is very close to exact 2x your 1MHz signal (something to do with Nyquist...).
Using your code, this is how my scope's picture looks when...
Hi Sandwich - I'm also trying to change the value of the AUDIO_GUITARTUNER_BLOCKS and running into a similar issue where Teensyduino will compile with the application / install directory version of analyze_notefreq.h -...
Your program seems okay, so my first guess would be that you have a measurement issue. Can you take a step back and tell us what you are trying to do, and why you are producing this 1 MHz square wave with a digital...
IntervalTimer.h now has just one version of begin() that uses "template <typename period_t" and handles both integer and float period arguments, but there are still two versions of update(). One takes unsigned int and...
Paul,
It looks like your suggestions now allow the firmware to compile and upload, but the sketch fails/freezes on Wire3.begin(). If I remove this, I can call some other things like Wire.BeignTransmission(), and...
On page 3 the datasheet says it outputs 0 to Vref.
The built in VREF is 2.5V.
The first page of the datasheet says the power supply range is 2.7 to 5.5 volts.
Only updating to 1.58 isn't enough. You need to actually edit WireIMXRT.h and WireIMXRT.cpp.
ARDUINO_TEENSY_MICROMOD is defined when you select Teensy MicroMod in the Tools > Board menu. It supports MicroMod Teensy...
I wasn't able to find those lines of code in the WireIMXRT.h/.cpp files so I updated to a newer version of Teensyduino (Old version 1.55, New version 1.58), and now I see these lines of code. They are just how you...
Look at WireIMXRT.h/.cpp
You will find an area in it like:
#if defined(ARDUINO_TEENSY_MICROMOD)
PROGMEM
constexpr TwoWire::I2C_Hardware_t TwoWire::i2c2_hardware = {
CCM_CCGR2, CCM_CCGR2_LPI2C2(CCM_CCGR_ON),...
We have developed a custom pcb, based on the Teensy 4.0 schematic, but we brought out 2 additional lines (I2C) from the processor that we intended to use with "Wire3", but the Wire library does not seem to support...
What is wrong with my code.
I noticed strange effects on the oscilloscope. With a period of several seconds my clock signal breaks down.
I noticed this only by chance, normally I didn't pay attention to such late...
You would use a 5V supply (like V USB) to power the DAC and a level translator like 74AHCT125 to convert the 3V3 Teensy logic to 5V0. You would also need something like 4.7μF + 100nF supply bypass caps on AVdd.
...
Thanks for the reply, that sounds great!
Just a shame that the LC is out of stock in Germany right now... I guess I should to try the 3.2 or 4.0...
Or do you have another idea about a low-cost version?
Thx for the quick response. For me it's working fine with 3 or 4 sample players. Haven't tested some features like crossfade, but pitch, forward loop are ok in my initial tests
As mentioned in the Code Security page:
https://www.pjrc.com/teensy/td_code_security.html
If you start up Arduino on your Ubuntu machine, and then use the file->preferences command,
the resulting dialog will...
It depends on contents of the preferences.txt file.
Simplest way is to run Arduino 1.8.19 with Teensyduino 1.58 installed. Then click Tools > Teensy 4 Security. It will show the full pathname where key.pem is...
Every Teensy can meet your need for at least 16 digital plus 4 analog inputs.
The answer your question about the maximum, if you connect the buttons in the simplest way, 1 button per pin, then you just need to look...
Hello everyone!
One of my longterm projects is building a DIY Retro-Handheld - similar to the Powkiddy X55.
I have started wondering if a Teensy (LC or other?) can provide the number of buttons that I require.
What...
The original code did a lot of buffer allocation and deletion. For my branch I removed most of that, so buffers are only created when play() is called, and deleted when playback stops - in between, they're re-used for...
That's awesome.
So in this version the buffer is created (and deleted) dynamically, compared to your buffered sample player which uses fixed size ones, am I correct?
Would it be possible to have fixed sized ones and...
I am trying to set up Teensyduino on Ubuntu Linux 22.04 to program Teensy 4.1 lockable. I have previously generated the PEM key on a windows system and have gone through the steps to lock the Teensy device. I would...
I don't see anything about a unique ID in the datasheet for PSRAM (link below). The chip has an ID, but it's not a unique ID for each individual chip. There is a function named flexspi2_psram_id() in...
Hi All,
I'm keen to see if any library calls exist to extract the unique IDs from the PSRAM chips. This would be in a low level lib function I am not aware of and frankly do not know where to look....
This would...
Chances are that the T3.2's RX pin is fairly deaf to what the XBee XSC S3B emits. The T4.x is faster everywhere so I bet it aint so deaf to the XBee XSC S3B.
With a baudrate of 57600 I think there's scope to kludge...
static const SPISettings wifi_SPISettings(12000000L, MSBFIRST, SPI_MODE0);
Well the Uno cannot run SPI even that fast, so perhaps try something slower.
First post - so I hope I'm asking my question in the right place. I've been reading many of the threads for the Note Frequency detect algorithm and have it up and working on my breadboard (teensy 4.1, audio shield with...
Clocking the chip slower won't reduce the bandwidth of the RFI, just the amount of it. Fast chips have fast edges and fast edges spray harmonics all up through the microwave spectrum. You need to screen/shield really...
In your first post, the PulseView screendump shows the CS going low every now and then. But with 4MHz SPI clock rate, the CS signal is always high? Weird...
Just to make sure that the CS pin is not broken, you could...
Hi, i built another board and now the voltage is stable but not quite at 5V. Its a little lower like 4.9V. Is it a problem for teensy, servoes and other boards(the say that the VIN should be 5V but pls tell me that 4.9...
If you're using Rev D2 audio shields from PJRC, simplest solution would be to just get a Rev D audio shield for channels 3 & 4. All audio shields shipping today are Rev D with the larger chip.
One possibility is to use <this> 1-to-8 I2C Multiplexer from Adafruit (NOTE: I have not used this product personally, but I have seen mention of it in several other projects).
Mark J Culross
KD5RXT
@Sandro - Sorry, looks like that example fell through the cracks. I never used it. And there were several other examples for logging, such as SD_MTP-logger which do compile.
I will try to push up a version that...
@KurtE made some changes to MTP_teensy to simplify how MTP has to be configured. It looks like we never updated that example for the changes to MTP. Basically in looking at the current sketch:
MTPStorage storage;...
Hello,
Would like to know if there is a way to change i2c port used for SGTL500 : wire1, wire2 as only 20 pin package is available now.
If "yes" , can we use 2 SGTL5000 on the same Teensy?
Thank you, both Paul and Kurt!
I tested my connections (which seem fine) and lowered the clock rate to 4mhz but the CS signal line doesn't change and always stays high. Next steps would be to check the Analyser and...
@Sandro
the mtp_logger was designed as example for the original MTP port to Teensy https://github.com/WMXZ-EU/MTP_t4. Meanwhile @KurtE developed it to MTP_Teensy (adapting MTP_t4 also to his own programming style). So...
Not having built and followed the MTP recently - it was dynamic in dev ... maybe the best ships in TD 1.59 beta 3? forum.pjrc.com/threads/73342-Teensyduino-1-59-Beta-3
Hi all. I built a light weight powered PA speaker for my mom a few years back, she signs and plays guitar. It uses a Dayton Audio KABD amp with built in DSP to take care of crossover, time alignment, and EQ. I would...
I see a mistake already: DAC8565 outputs up to 5V, so it needs at least 5V (6?) as AVdd, right? On the other hand DAC8568 outputs up to 2.5V, so could I power it from the 3v3 from teensy?
Maybe post photos of your setup. It might help to see potential wiring issues and the like.
Things like bad solder joints, pins off by one. Pins not soldered to the Teensy. Maybe too long of wires, etc.
Also I...
Thanks for your tips and patience! I'm doing little steps, but one after the other, I'll hopefully get somewhere!
My current understanding of this "mapping" problem is:
- VCA has a -33 mV/dB gain constant, and gains...
if I select MTP Disk I get this error:
C:\Users\dell\Desktop\mtp-logger\mtp-logger.ino:57:1: error: 'MTPD' does not name a type
57 | MTPD mtpd(&storage);
| ^~~~...
The error message hopefully points you in the right direction:
32 | #error "You need to select USB Type: 'MTP Disk (Experimental)' or 'Serial + MTP Disk (Experimental)'"
You need to choose one of those two USB...
I would follow what @MarkT was implying.
If it were me, I would try something like:
void setup() {
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native...
I've massaged your code so that it can read a PGM header file. I could only test with an example PGM that was way too big to fit in a teensy, so I can't guarantee that it'll read the image itself correctly.
// Read a...
Hi, just wondering if there's any plans to include Frank B's T4_Button library in the Teensy core library?
I've spent time on the threads and find it extremely difficult to understand how to use it, as it goes into...
Hi all,
I would try to make the SD card on T4.1 accessible as a mass storage from my Windows PC via USB connection; I manually installed MTP_Teensy. I use Arduino IDE 2.2.1 with Teensy tools...
So I tried clock speeds all the way down to 24Mhz - same issue. It's happening on multiple setups so likely not a soldering issue.
Sounds like you guys are suspecting the Teensy itself is producing RF noise that's...
You can generate the signals in the callback, but you can't call analogRead() from the callback. I'm not sure what you're trying to do, so I can only make general suggestions. In your callback function, instead of...
First check the GND pin. Maybe cold solder?
If you suspect RF interference, the first very easy thing to try is setting Tools > CPU Speed differently, and of course upload again.
Just having a ground plane in-between isn't a Faraday cage, the plane is acting as a coupler I suspect.
The 4.x teensy puts out way more EMI than your previous setup (its 600MHz clocked and drawing ~100mA), both...
You haven't set the SPI frequency - the default is much higher on some Teensys - perhaps your interconnect can't handle fast logic signals?
Also you aren't connecting CS to pin 10 - could that be the issue?
Have...