You can access the I2S registers directly. Search for the OpenGalvo project for a recent example.
OR you might just use the audio library with I2S input and 1 queue to get access to the raw data. Then you would dive into the audio I2S code to...
Oh how that brings back old memories! It's a product PJRC made custom many years ago, before Teensy was as successful as it is today. I don't recall exactly when. The first batch may have been even before Teensy 1.0, though I'm pretty sure...
Each byte of raw data becomes several characters of text in the source code. When you simply view the source, you can read the text and see it's multiple chars per actual raw byte.
When compiled, the .o files have considerable metadata about...
Quick behind-the-screens update... the plugin generated its first automatic report. Indeed it's spammers (probably from Bangladesh) blatantly creating many accounts. The plugin seems to really improve the forum's logging and display of the IP...
First, make sure you're running the latest Teensyduino version. For the old IDE on MacOS, click Teensyduino > About to check the version. (on Windows and Linux the same thing is done by clicking Help > About)
One of the recent MacOS versions...
Might be a better use of your time to instead create a small but complete program which demonstrates the problem.
Many times on this forum we've found problems which often turn out to be subtle programming issues. A diagram or description, or...
Ok, it's installed and running with default settings. And wow, it has a lot of settings!
Looks like it's going to use free tier IP geolocation services. If we get good results but hit limits, will look into paid tiers.
Without seeing the code, best anyone can do is blind guess. So here's some guesswork...
Maybe you need larger receive buffer in Serial1 because your program is spending more CPU time on SPI, so it takes longer before it checks for recently...
It really depends, as not all 1/4 inch audio inputs are created equal.
Some are balanced audio, others are ordinary single ended. Some expect a pretty high level signal, others like inputs meant for guitar pickups or expect a small signal with...
Do these actuators transmit a response after receiving a message with their ID number? I don't know anything about the specific products you're using, but with RS485 devices a response is pretty common.
If they are sending response, of course...
If you do use the TXS part, keep the wires short and route the GND return wires close or use a 4 layer board with GND plane.
We've previously heard people report problems with those TXS level shifters when using longer wires.
Difficult to read this code. Things like "m_asyncDataBuff" and "m_bufferMutex" are a mystery. Most of your local variables are "auto" so we can't even tell what type things are without knowing the definition of all this mystery stuff.
But...
I looked briefly at the datasheet and found this diagram on page 29 (30th page of the PDF). Looks like all the signals are unidirectional. I'd recommend looking for unidirectional buffers from 1.8V to 3.3V, and from 3.3V to 1.8V.
Sounds like you need several buffer chips.
This description is more complex than I can envision from only the words. Maybe someone else knows. But if you really want a better answer, might be worthwhile to draw a diagram so everyone can...
74HCT14 has 6 inverters, so you can easily get 5 separately driven outputs. Just connect Teensy's pin to 1 of the inverter inputs. Then connect that 1 output to the other 5 inputs.
I would also recommend placing a resistor in series with each...
Maybe just use Serial3.transmitterEnable(18).
Detailed documentation is here:
https://www.pjrc.com/teensy/td_uart.html
Edit: LOL, @Angelo answered faster...
If you're stuck, maybe put some of them time into turning the code samples from msg #1 into self-contained programs anyone can copy into Arduino IDE and upload to a Teensy to reproduce the problem. Perhaps for the transmit side, just write a...
You have 2 options.
#1: Use the queue objects to gain access to the mixer output data. This way to can put the analysis code into your program. But you do have to manage the buffers in your program, which certainly is do-able but requires...
Please do report the spammer profiles when you see them. I do use the IP numbers from those reports, so the reports really do have value beyond just cleaning up junk.
I don't see a way to turn off the profile About page. I came across a plugin that can do it, but it seems to be for an older version of XenForo and isn't updated anymore. If anyone can find info for how to disable the About page (in a way...
Build it like this:
Because this is a N-channel mosfet, you must connect the source pin to GND. The load must connect between drain and the +12V power.
The 47 ohm resistor and 0.1 uF capacitor are optional, but they will help against radio...
Can you reproduce this problem with the same (or similar) code in Arduino IDE?
If so, can you give us a complete program anyone can copy into Arduino IDE and upload to Teensy to reproduce the problem? We're much better at solving problems when...
In raw bandwidth, 480 Mbit/sec USB is definitely the fastest way. It should also be quite CPU efficient.
USB doesn't always give the lowest latency, so it may or may not be "absolute fastest way" depending on the meaning of "fastest".
I see a LCD on your schematic which has pin names similar to traditional small character displays, and the part number has "16x2".
The RW pin is a concern. Normally this would connected to GND for write-only (Teensy to LCD). If this pin is...
Download the latest reference manual with annotations and turn to page 2915.
The download link is on the Teensy 4.1 page. Scroll down to Technical Information.
EDIT: or just scroll up and read msg #9... ;)
Agreed, the meaning of the question could be read a few different ways.
Maybe not really relevant to the original question (or maybe it is?) but I got curious why writing 4 bytes measure so much longer than 1, 2, or 3. So I took a quick dive...
Maybe Serial (real hardware serial on TX1) can work if you just write directly to the data transmit register. Just use Serial1.begin(baud) to get the hardware configured, and then rather then Serial1.write() which does complicated buffering...
Shawn's QNEthernet library is probably the best today. Here's a direct link to the driver code:
https://github.com/ssilverman/QNEthernet/blob/master/src/drivers/driver_teensy41.c
This example I wrote when developing the Teensy 4.1 hardware...
In the Tools > Port menu, does it appear twice? It should be "Serial Port" and also "Teensy Port". Do you get the same behavior with both?
You might also check your USB cable. When people have reported flaky USB, usually it's due to a long...
The hex file lacks any sort of useful info about how the code was built.
But you can turn on verbose output during compile in Arduino IDE's File > Preferences. Then you can compare the compiler commands to those used by another tool.
Another small detail not really mentioned in most of the documentation is the minimum block size for BEE encryption. It's 1024 bytes. Before Lockable Teensy, we would start the code immediate after IVT and bootdata. But when encryption support...
The startup process is even more complicated. The boot ROM looks for a table of flash memory config at 0x60000000, and another IVT table at 0x60001000. The IVT has the address of a bootdata structure. That bootdata info gives it the address of...
For your 3V3 question, I'd recommend reading the Power Up Sequence on the T4 bootloader page, and maybe also NXP's hardware design guide which you can find on their website.
Specifically about "i can just feed 3v3 into VDD_SNVS_IN right?", the...
Ferrite bead inductors are almost always rated as ohms at 100 MHz. They rarely have an actual inductance spec. So 120 means 120 ohms at 100 MHz. They also usually have a max current spec, so you'll want to choose one with high enough current...
I added the missing receive code for SoftwareSerial on Teensy 3.x and 4.x.
Also updated the SoftwareSerial documentation, which was horribly out of date (from the days of Teensy 1.0 and before Arduino IDE 1.0).
Still need to add docs for...
I fixed the SoftwareSerial transmit code.
https://github.com/PaulStoffregen/SoftwareSerial/commit/e3a95a0a5ab9c8383e6b4f7a38b71d2f236f85fa
Looks like we tried to port the Teensy 3.x bitbang transmit years ago by changing the register pointer...
Your best option is FlexIO_t4. But by default it can't do slow baud rates, so you need to set it to use a slower clock before calling begin(9600).
Give this a try.
#include <FlexIO_t4.h>
#include <FlexSerial.h>
FlexSerial mySerial(-1, 3)...
A few people reported being unable to also use a flash chip when the clock speed is higher. That's the main reason I've been reluctant to increase the default.
On Teensy using Arduino IDE, you can just use ARM_DWT_CYCCNT.
For example:
static uint32_t previous = 0;
void setup() {
}
void loop() {
uint32_t n = ARM_DWT_CYCCNT;
Serial.println(n - previous);
previous = n;
delayMicroseconds(15);
}
That is indeed the direct link to the ref manual.
If you didn't have that direct link, you could find it on the Teensy 4.1 page. Just scroll down to "Technical Information" and it's the first link. You'll also see links to the other datasheets...