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...
Two questions for everyone using Windows
1: Is Teensy Loader chewing up CPU while idle, like it was on Linux?
2: How difficult is the download & install (before Microsoft's servers re-learn PJRC is safe)?
I2S slave mode causes the entire audio library to run at the sample rate dictated by the incoming LRCLK signal. Hopefully the fundamental reason why 2 ports running in slave mode can't work is apparent.
Someday...
Maybe I should package up 1.54-beta7 today, or soon-ish?
Might also be a good time to test Windows installs signed with the new cert (PJRC was forced to renew a couple weeks ago).
I'll admit, I've sometimes wondered if the 512 tap FIR filter was really a good idea. I wrote the code more as a challenge to see if Teensy could implement such an extreme filter rather than a careful plan. The...
Arduino Uno is woefully underpowered, only 8 bits and only 16 MHz. Uno also lacks DMA to efficiently move data between memory and audio hardware. It has no hope of running the audio library code.
Your best path is...
Did you run 32 bits or 64 bits on your Raspberry Pi? So far, I've only tested 32 bits.
Yup, added the hidraw rule. The usb subsystem rule also applies. But it looks like the more complex wildcard syntax is buggy...
Today I went down the deep rabbit hole of Linux udev rules.
To make serial raw mode configure work well on Raspberry Pi, I had to rename the file from 49-teensy.rules to 00-teensy.rules.
...
Well, after much removing and restoring files, I finally tracked it down to this line (meant for some Arduino.org boards):
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05e3", ATTRS{idProduct}=="*", MODE:="0666"
I have...
Arduino kinda does support UTF8. If you type or copy non-latin characters into strings, the Arduino IDE does end up putting UTF8 encoded strings into memory. And if you transmit UTF8 encoded data to the serial...
This new size program parses the binary .elf file directly, so we're not depending on the specifics of a human readable text format. ELF 32 bit is a very stable binary format.
I tried to keep the main program part...
Yes, a check for not enough RAM1 left for a reasonable size stack is a good idea. If you feel like doing this, please add it and send a pull request.
To show an error in red text, just print to stderr without the...
I changed teensy_size to print to stderr and prefix each line with "teensy_size:". This causes the size report to be visible in both verbose and non-verbose mode. But Arduino shows it in alarming red color.
I'm...
I'm going to edit the linker scripts. Now that we can print more detailed info, having too much stuff lumped together in the .text.progmem segment means we get inaccurate info.
If you grab newer versions of...
Plan is not using builder's regex stuff.
So add this to platform.txt
recipe.hooks.postbuild.4.pattern="{compiler.path}teensy_size" "{build.path}/{build.project_name}.elf"
and delete the...