Only had time to look for a couple min, but saw this:
if(queue1.available() ==1) {// if availabe copy 128 block to array and get out of while loop
You probably should check for >= instead of ==. If the...
Honestly, no, not really. Indeed the ESD protection diodes do tend to divert ESD charge to the power supplies, but those supplies have a lot of very low impedance (at high frequency) capacitance.
But these...
PJRC recently received 5 of the new "B" version and they were soldered to PCBs just last week.
I have a few other urgent matters to wrap up before I can work with these boards. But I hope to have a definitive...
Sadly, PJRC can no longer ship small orders to the UK. Well, not unless you have a VAT ID number.
The UK recently added a new requirement for VAT collection before shipping. Large companies like Amazon are doing...
I'm running it here on a Teensy 4.1 with a wire approx 11 cm long on pin 34.
It's not printing anything other than the initial 2 lines, even if I touch the wire, move my hand nearby, etc.
It shouldn't. Sounds like a pretty lame anti-virus program. Care to name & shame which vendor this is?
Occasionally various anti-virus programs have erroneously flagged the Teensyduino installer or other software...
Yes. Look on the product page.
https://www.pjrc.com/store/teensy41.html
Scroll down to "Software" and look for "Command Line with Makefile".
Similar info is also on the Teensyduino download page.
...
I can't see your screen and I know know precisely what you're clicking and typing, but my best guess is you may have installed Teensyduino into a copy of Arduino you downloaded from Arduino.cc (the only thing...
While far from elegant, you could just change the delay to be the length of your WAV file.
void loop() {
playSdWav1.play("SDTEST2.WAV");
delay(93200); // wait for SDTEST2.WAV to completely play, approx...
AGND on Teensy 3.2, 3.5, 3.6 is meant to help with the analog input pins. It's unrelated to the audio shield (which is all digital audio signals as far as Teensy is concerned), except for the specific case if you add a...
I would not recommend connecting the two 3.3V outputs together. Especially if the DC-DC converter is a modern design with a synchronous rectifier, that would end up with a pretty unsafe situation.
Probably the...
The other thing you can do is drive the coil with much higher voltage while it's changing current, so the relay switch much faster. There are at least 3 established way to do this.
1: The simple & safe but...
I can't say whether it will solve all the problems you're seeing. But generally speaking, yes, if you want the relay coil to switch off at approximately the same speed as it turns on, you do need to add a zener diode. ...
Arduino is using a non-Teensy copy of the SD library.
First, check that Teensy is selected in Tools > Boards.
Next, scroll up from the error message and look for info about duplicate libraries. If you've got a...
Teensy Loader 1.54-beta7 was also updated to use GTK3. Previously we linked to GTK2.
Ubuntu 20.04.2 has a broken GTK2 system (but oddly, 20.04.1 and original 20.04 work fine) which cause a 25-30 delay in startup of...
Might be worth mentioning the udev rules were updated (for upcoming 1.54) to address multiple issues seen on newer Linux distros.
This is the latest. The number in the filename also changed from "49" to "00", which...
In the 10 months since Teensy 4.1 was released, we've printed 3 different versions of its pinout documentation card. The first 2 had basically a blank back side. While less than ideal, leaving the back side blank was...
The prescaler already is at 1 (fastest possible) with the settings mentioned.
FlexPWM and QTimer run from the peripheral clock (called "IPG" clock in the manual), not from the CPU clock. The division by 4 happens in...
Maybe give Arduino 1.8.13 with Teensyduino 1.54-beta7 a try. Even though the Arduino IDE's editor is pretty painful, at least having it set up can give you a way to compare results to your PlatformIO install.
Yes, this should be possible. You'll need another Teensy with USB host. Teensy 3.6 and 4.1 have USB host on an easy-to-use 5 pins where you can solder pins which mate with this cable.
...
Yes, but not by a whole bit. The software will linearly map your desired 4096 steps onto the 3750 steps the hardware can provide. So if we think of stepping up in PWM duty cycle 1 number at a time, most of your...
Is there any chance these chips might have been pre-programmed with someone else's firmware?
Even if they're not blank, even if security is locked, the bootloader should still manage to erase and use the chip. The...
That's even more mysterious! A virgin MK20 chip is supposed to be pulsing its reset line low, as it will be repeatedly watchdog rebooting. Normally a DC voltmeter will read about 0.2 to 0.3 volts, because it goes high...
Well, that's quite a mystery. Every Teensy 3.2 is built with a virgin MK20 chip and works fine.
Is there any chance this might have been just a soldering issue with 1 chip? Do you have more than 1 board doing this...
That file exists because I've been planning to add this to Teensy's core library for a very long time. But the FS.h in 1.53's teensy3 folder isn't functional. It's more of a placeholder or experiment than actual...
The good news is chips like PCM1502A are really simple. To interface with Teensy, you just connect the I2S data and 3 clock signals. Some chips use different names so you need to figure out which is which. But on...
You need AudioMemory() in setup(). See any of the examples in File > Examples > Audio.
To get a ADSR or AD style control signal, you would feed the DC output through an envelope effect. For only attack-decay...
Just to confirm, which version of Teensyduino do you have installed? In Arduino, click Help > About to check.
Serial1.addMemoryForRead() is relatively new for Teensy 3.x.
About your 2 questions...
To answer directly, yes, you probably would see some improvement, but it's unlikely to be enough. This approach is simply not a good way to read a switch.
I've updated the Teensy 3.2 page, under Power > VIN Pin, with a link to this thread. Hopefully if anyone else cuts the trace and needs to repair, it will help them find this info.
It found a chip with address 0x1F. From within the library:
#define FXOS8700_I2C_ADDR0 0x1E // SA1 = Gnd, SA0 = Gnd
#define FXOS8700_I2C_ADDR1 0x1D // SA1 = Gnd, SA0 = Vcc
#define...
After downloading, you do need to actually run the installer. Quit Arduino before you run it.
If using Windows with Arduino installed the default way (the EXE installer, not the Windows store app) just click Next in...
First, upgrade to 1.54-beta7, if you haven't already. The old slow SD lib is gone, now just a wrapper for fast SdFat.
You may need to use IntervalTimer to run your code that collects incoming data, so it can...
It depends.
A typical modern PC might have 14 USB ports (including internal ones on motherboard headers), but only 3 USB controllers. Generally speaking, all the physical ports from the same controller share USB...
I don't know. I haven't tested these ancient LCDs in quite some time.
I wrote LiquidCrystalFast over 10 years ago, when we only had slow 8 bit boards. It was designed to get the best performance on that hardware. ...
Kurt is right. The Teensy 4.x hardware simply does not support enough endpoints to add a 4th CDC serial.
But it could be done on Teensy 3.x. Each CDC serial needs 2 endpoints (1 bidirectional data, 1 unidirectional...
First a word of caution. These displays usually run with 5V power. Of the 32 bit Teensy models, only 3.2 and 3.5 are 5V tolerant.
The 6 signal mode is safe, because all 6 signals are always in the Teensy-to-LCD...
Not all of the chip's pins can come to the outside pins on Teensy. Some are connected to the ethernet and flash chips on the PCB. Some aren't connected to anything at all, only because it's not physically feasible to...
This probably won't help much, but here's a page written 10 years ago when I tested Oleg's original hardware (long before any Chinese clones existed) with Teensy 2.0 and Teensy++ 2.0, which were the only 2 Teensy models...
Please show complete programs. Even if the rest of the code is trivial, it is much easier to answer if we can copy the code into Arduino and run on a Teensy without the work of adding (guessing) the missing lines.
The connector is a "magjack", which means is more than just a plain RJ45. It has the ethernet magnetic coupling parts built in.
The kit does more or less just break out the pins, but to a magjack. It also has 1...
USB can do 2 meters. It's the way needing the least amount of extra hardware, just a good quality 2 meter cable. USB provides power, but for 2 meters make sure the cable has #24 or larger wires for the power. Cheap...
Good point. The documentation on the USB serial page says: "Initialize the Serial object. The baud rate is ignored and communication always occurs at full USB speed."
I've updated that page with better info.
You can generally expect Teensy 4.0 & 4.1 to give about 25% better DSP performance than STM32H7.
They have exactly the same Cortex-M7 processor, but Teensy's runs at 600 MHz compared to only 480 MHz on the STM32...
Like most details of the audio library, it's documented in the design tool.
If you click any of these 3 outputs in the left column, their documentation appears in the right side column. Scroll down to "Hardware"...
I've updated the Serial.rts() documentation on the website to mention this Windows bug, with a link to this thread.
https://www.pjrc.com/teensy/td_serial.html
Quick followup to this old thread, 1.47-beta7 adds more detailed printing of memory usage. It does most but not all of the things discussed here.
This is the source code:...
I've updated the 6 main product pages to have the word "analogWriteFrequency" (in the Digital Pins > PWM section) link directly to the part of the PWM page about controlling the frequency and which pins are associated...
The purpose here is to improve compatibility with code designed using Arduino Uno & Mega, even if we can't get to the bottom of what really went wrong with JaredReabow's system.
I do not believe adding a...
This is how I2S works.
Teensy sends BCLK and LRCLK to the SGTL5000 chip. Then it transmits data bits on each BCLK. In the mode we use, the SGTL5000 has no control over the clocks. It has to use whatever clock it...
On the Teensy 4.1 page:
https://www.pjrc.com/store/teensy41.html
Scroll down to "Software" and look for "Command Line with Makefile".
We use an older version of gcc. Sometimes newer versions print warnings or...
I've merged the latest code, moved the constants into the class private members, and taken a few small liberties with the public API to make it similar to the rest of the audio library.
Documentation still needs...
Hypothetically... if I were to add this for Teensy LC - 4.1, which PC-side software should I use for testing?
A big question I have, which can probably only be answered by experimenting, is whether the PC software...
Yes. SD was changed to a thin wrapper around SdFat (so all SD card access is SdFat) back at 1.54-beta3.
https://forum.pjrc.com/threads/64235-Teensyduino-1-54-Beta-3
Even though the while (!Serial) doesn't explain the lockup where pressing the pushbutton was needed, I do believe it's time to reconsider the previously failed attempt to have Serial.begin() wait.
I'm going to put...
Two things...
1: The same PCB is used for both Teensy 3.5 and 3.6.
2: This was my first BGA and first 6 layer PCB design, which was done under time pressure for a Kickstarter campaign launch. A *lot* of work when...
Before merging this to the audio library, I want to see these new constants moved either inside the class definition (eg, at static const types) or to the cpp file. I can do it, if you would like to go with whatever...
Lower source impedance allows for the voltage sampling capacitor inside the chip to charge (or discharge) to the right voltage during the limited time for sampling, and it also helps overcome small errors due to "charge...
Hopefully this can help?
https://forum.pjrc.com/threads/60599?p=238070&viewfull=1#post238070
There's a photo of the wiring and a video demo!
This particular microphone has a DC offset. You probably want to...
First, a quick disclaimer, this message isn’t a contractual promise or guarantee or legal advice.
PJRC currently has no plans to discontinue Teensy LC or any of the 32 bit products. While I can’t predict the distant...
Just to repeat, I did indeed run the code you shared on a Teensy 4.1 here. I was able to upload several times without pressing the pushbutton. I can’t explain the behavior you have described. But I did test with a...
This is a really intriguing idea, to just use ethernet as a raw serial-like byte stream at 100 Mbit speed. Or maybe as a raw packet delivery?
If the ethernet mac is configured in promiscuous mode and automatic...
Maybe Teensy is transmitting "*** ONLINE ***" before your PC is able to complete USB detection, and then you interpret the lack of that message as the USB device not working? But that doesn't explain needing the press...
Nope. The cards are always included for distributors. The distributors get the cards bulk packaged, usually in sets of 100.
But mistakes and misunderstandings can happen. Sometimes a person will misplace the bulk...
I'm really sorry this happened. Every Teensy is always supposed to come with the documentation card.
Robin & I will contact TinyTronics....
If you want the original printed card (which is much nicer & more...
I might be reading too much into your question, but it sure sounds like you have a misunderstanding how of how programming Teensy really works.
The "Arduino language" really is just C++ which very minor...
I believe you should test without the Moxa products. If the same error happens with both plugged into the same LAN, that is much easier to reproduce and investigate.
If the error only happens with Moxa, perhaps it...
The answer depends on so many unknowns. Nobody could possibly give you a definitive answer. The best anyone can do is help you figure out which things you need to know, or just make up some numbers by sheer guesswork....
Yup, PCM1808 is really simple. You can use either I2S or I2S2 on Teensy 4.x. Just connect the 4 signals. MCLK is named SCKI on that chip. The other 3 have names the same as Teensy uses.
PCM1808 has 3 config pins....
That's not how unwanted ground loop currents work. They change the observed signal by altering the ground reference. The signal could be absolutely perfect, but if you alter the ground voltage seen by the equipment...
Looks like this project isn't using USBHost at all.
But yeah, improved USB host MIDI transmit was recently put into USBHost_t36 and it's in 1.54-beta7 (published yesterday).
Part of that improvement is a change to...
Pretty sure that's on me. I've never bothered to put metadata beyond the bare minimum into the resource file. It only has the program's icon and an XML file that prevents the "This program might not have installed...
Yeah, this beta was prompted by changes to the builds on all 3 operating systems.
On Windows, we were forced to get a new code signing cert. They rubber stamp reissue the old one if you renew within 39 months. The...