Sounds potentially like one of the standard things:
Look in your code, typically in setup that looks like:
while (!Serial) {}
or
while (!Serial) ;
That says wait forever until USB Serial is ready...
If I want...
I have a teensy 4.1 connected to 4 gas sensors (with their own 12V power supply, a prht sensor (pressure, relative humidity and temp) and it sends serial data via ethernet connection. The teensy is powered through 5V...
A couple of additional points, that might help.
As mentioned, there are 8 hardware UARTS (LPUART) objects, but the number of the hardware UART does not necessarily correspond to the Serial object number.
That is...
I've added a link to this thread on the T4 bootloader page, in the footnotes under the BGA pinout diagram.
Doesn't help you now, but hopefully will help others avoid this SD_B1_05 issue on their future PCBs.
Perhaps somebody else has come up with other eyes. I didn't see any other things referring to Uncanny Eyes over at the Adafruit Learning pages, but maybe do a query over at the Adafurit forum. There are 4 main strains...
Thanks!
Yup, the DX7 is fine being controlled by other gear, a KX88, the reface, a Clavinova, my computer running MidiOX or a DAW etc. I mean i say "fine" with the usual caveats around this board! :)
I also tried...
Does the DX7 respond to MIDI from another piece of equipment? Can you control it using the Reface CP? I'm wondering if your MIDI out circuit needs a buffer, usually two hex inverters in series. Your MIDI Thru box...
You could look at HardwareSerial.cpp.
https://github.com/PaulStoffregen/cores/blob/master/teensy4/HardwareSerial.cpp
Normally you wouldn't use these interrupt directly. You just use the Serial1 to Serial8...
I appear to have narrowed it down to nothing whatsoever to do with the MIDI library!
Even with the simple "blink" example running on the Teensy, the DX7 barfs as soon as power is provided to the Teensy
If i...
Oh thanks for letting me know! So what should I use for a USART receive interrupt? I'm a little confused on the documentation of the interrupts. Is there some place I can see an example code for the teensy? Especially...
Those are the only patterns I have. They came with the original Uncanny Eyes source at Adafruit.
The Uncanny Eyes page at the Adafruit Learning guides has a page about doing custom eyes:
...
So that idea (trimming the circuit) does not completely work... there's a little bit of bleed between the channels and the intensity alone isn't as bright as it should be. But it also made me double-check the resistance...
Hi,fellows
i had the same issue,so i took my ohm-meter to find the pinout of the sd card of the audio board for my teeny3.2 and these are the winning numbers:
NC / NC
DAT3 / CS-> 10
CMD / MOSI->11
GND /...
Hi in the picture below, it says there's in USART Receive interrupt. But it looks like it is only for Serial1. Is this only for Serial1 or are there ones for Serial2-8?
Its just a linearly interpolated lookup table. -1 to +1 is the full range of the audio signal. Every sample in therefore mapped to the output via the mapping.
Bourns MF-FSMF050X-2
https://www.digikey.com/en/products/detail/bourns-inc/MF-FSMF050X-2/2039256
Of course it's actually a PTC resistor, not a real fuse which permanently blows to stop all current flow. During an...
@MichaelMeissner do you have any links to Uncanny Eyes 128x128 data files by any chance?
I have the following already but guess there are many more somewhere:
catEye.h
defaultEye.h
doeEye.h
dragonEye.h...
If you look at file in FreqMeasureMultiIMXRT.cpp in the src folder of the library, you will see a table that defines all of the pins available for use by the library. Here's a quick summary:
For both T4.0 and T4.x,...
I once had to cut large 4-layer boards down in size and found that a bandsaw with a fine tooth blade did a good job. Main issue that came up was that the internal power/gnd planes would occasionally short due to...
It's the same as usual (DMA memory access is basically the same as the CPU since there's no MMU) except with those memory regions you'd need cache management - flush any source memory from the CPU's cache before the...
Thanks very much to all for the input. I will probably go with chopping off the T4.1's bottom.
The problem with external storage is access time (rather than max transfer speed). I am sure one could do some clever...
I honestly know almost nothing about DMA channels, but I'm curious about moving some data from a buffer in DMAMEM to another one in EXTMEM (PSRAM). Is that something I can do? Is the method basically the same as...
I am transferring my project from T3.6 to T4.1 / Micromod (not decided yet).
I want to measure frequency and/or duty cycle of 8 independent signals and I am a little confused about Paul's notice in the description of...
The T_4.0 also has USB_HOST pins/ability. If storage space is needed and speed provided can be acceptable, and a SMALL enough USB Flash drive could be connected that would give much larger storage space.
There is a...
Hello everyone,
I need an assessment of the capabilities of the Teensy4.1. I plan to build a real-time voice connection via a Raspberry PI and a Teensy4.1 with Audio-shield. I've been checking for a long time now...
In terms of the FETs, yes, both of those should be good. In fact both should be OK for either use, the second one is a little better but either would do.
If your LEDs are 3.3V and 20mA and your power supply is 5V then...
If the array maps to -1.0 and 1.0, it only contains half of the wave pattern. What happens to the other half? Does it just mirror the array? If so, is it impossible to asymmetrically shape a sound input?
Also, are...
That doesn't seem like the logical way to do what is desired; rather it sounds like you should be transmitting the mouse data in a separate timed loop if that's what the FPGA requires.
I think you can add quite a large buffer, assuming you have RAM space available.
I think this is a good improvement and you will see some benefit. How did you choose 12 minutes per file, which is 120 per day? It...
a short update, I got rid of the more 'elaborate' routines and loaded up this simple test Note On, Note Off program instead, with the exact same results:
works fine on Reface CP - playing the notes
works fine via a...
Hi There!
I have a very simple prototype board made up of a MIDI Output circuit (https://www.pjrc.com/teensy/td_libs_MIDI.html) and one Momentary Switch and one Pot. Both these controls are configured to send a...
Thank you so much for testing this. I increased the serial buffer to 16 * 1024 and tested for about an hour. Just like you had mentioned, I haven't noticed any issues so far. I will also be looking to add more sensors...
The PCB and components are unchanged.
The LOCKED Teensy will ship with the white image of a 'LOCK' stamped on the MCU:
image from pjrc.com/store/teensy40.html#codesecurity
Unless it's declared static, variables within functions get allocated in the top of RAM1. You can see on the chart "Local Variables" with an arrow pointing downward. As each function runs, more of that memory is...
Based on the link the allocation is always dynamic as p#1 shows.
The link shows making an explicit memory allocation and passing the pointer to the library.
Otherwise it seems the reserved space is just a pair of...
I see your point. We define that variable in the main() function, does it count as dynamic allocation?
What will happen if we define them in the global scope?
guessing the Matrix is dynamically allocated?
Quick search suggests that is the case and you can make and provide 'local' memory as indicated in the reply a couple down from the top here:...
The polling that causes the host to transmit IN tokens happens entirely in the EHCI hardware, so there is no "easy" way.
The hardware does have an option to interrupt on NAK, but I've never tried it. If you want to...
If you can go slightly wider, you might look at the Teensy micromod, which is a Teensy 4.1 with M.2 hookup instead of using through hole pins that Sparcfun sells. Now, at first glance, the carrier boards that they have...
I can confirm all the stuff beyond the 5 through-hole pin is non-essential for Teensy 4.1 to run. You'll just lose 18 I/O pins, SD socket, and PSRAM pads.
How to "safely" cut the PCB is a good question. It is a 6...
Hi everyone,
I am seeking for a little advice here...
I have an already finished project of a gaming handheld driven by a RP2040. Unfortunately, the RP2040 struggles to deliver the necessary performance.
Now, I...
Hi everyone,
I am doing my project with Teensy 4.1 and I need to report the memory usage with respect the size of the matrix variable. I am using Eigen right now.
The simple script is like this (there are more...
Hi all,
There are a lot of RS485 modbus programs but the code below works out of the box and is fully tested on a T4.0, T4.1 and ESP32C3 for the ESP32C3 you need only change the Serial5 to Serial0.
Look at the...
Hi,
I've got a teensy 4.1 connected to an FPGA to handle all of the usb host protocol stuff. Right now, the system is working with a 4khz mouse and it is great. One minor source of annoyance is that the data...
Just looking for a quick gut-check on choosing an appropriate MOSFET and calculating the resistors properly. I'm a software guy and never really "got it" with electronics.
I have done this same setup with an older...
We are trying to use the Teensy in one of our product and the question has come up as to what is the exact part number of the fuse used in the:
* Teensy 3.2
* Teensy 4.0
They seem particularly concerned on...
Twos complement is just the typical number format used by machines.
From the MPU6050 register map and descriptions datasheet:
-2857 / 340 + 36.53 = 28.127 degrees celsius = 82.63 degrees F.
My reply was...
That actually looks correct to me. Look at the register map and the formula is:
Temperature in degrees C = (TEMP_OUT Register Value as a signed quantity)/340 + 36.53
For your example, I get 28 C, about 83 F....
All,
I'm using an MPU605 with Teensy 3.2 and I'm trying to get the temp, which is returned in 16-bit 2's compliment. I've found some explanations on converting but my conversions are way off.
int16_t...
1mV has got to be lower than whatever the threshold is on the reset pin. Additionally, the issue also happens somewhat intermittently with the battery removed; in this case, however, pressing the button to resume the...
Thanks @KurtE and @PaulStoffregen, this compiles and runs and an initial test looks like comms are performing as expected. I will do a little deeper testing in the next day or two, but so far all looks good.
I am using Teensy 4.0 and Audio Shield. I am trying to create overdrive and distortion effects and I'm guessing I could use the waveshaper and envelope, but I just don't know how. I would also like to be able to...
I have attached the WireIMXRT.h and WireIMXRT.cpp files. The suggested edited portions are listed below...
From WireIMXRT.h
//#if defined(ARDUINO_TEENSY_MICROMOD)
extern TwoWire Wire3;
//#endif
From...
Not sure of the answer to the question - cool that it works except the feedback part.
Edited p#1 to include the ... tags using the # on toolbar.
That retains code formatting/indentation for readability.
If...
Hello,
My first time posting so apologies in advance for any stupid questions, my lack of knowledge and potential lack of clarify in my question.
Background:
I'm creating a custom midi controller with 18 buttons...
I did some testing.
Turns out that the DQS is daisy chained through that pin.
If I change the registry of AD_B1_09 instead, I can use the pin normally.
IOMUXC_FLEXSPIA_DQS_SELECT_INPUT = 0b1;...
Sounds like you're really close.
At this point, probably best to share your modified WireIMXRT.h and WireIMXRT.cpp so I can others like Kurt can take a look.
If using forum's Quick Reply, click Go Advanced to get...
Has worked when tried here since Beta 4.0 and 4.1.
The button to GND must not be going low enough? 1 mV doesn't seem like much - but something is keeping it from seeing the needed 'drop' to GND it seems.
In that...
Hi all,
I built a custom board based on the Teensy 4.1
I needed more I/O than the OG teensy board could offer and I had to fit the full board in a tight space, so having a teensy mounted to a shield was not an...
I've got a Teensy 4.1 on a custom board that's having issues with the VBAT / 3.3V regulator suspend. There's a feature where, when VBAT is connected, the Teensy will "remember" its power state when 5V is removed;...
F
This must be added in WireIMXRT.cpp to get the I2C clock on 2 MHz
} else if (frequency < 1000000) {
// 400 kHz
port->MCCR0 = LPI2C_MCCR0_CLKHI(26) | LPI2C_MCCR0_CLKLO(28) |
LPI2C_MCCR0_DATAVD(12)...
Hi -
Sorry it's been a few years since I've played with my Teensy 4.0 stuff.
I have a new project that uses an AD7991 4-channel ADC for analog input. Is there some example code for this, including which libraries...
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...