Looks like this should work. Adafruit's library is designed to work with any I2C port, so you shouldn't need to use "#define Wire Wire2" or edit the library to change "Wire" to "Wire2", as is needed with older...
I hope you can understand nobody can say specifically what the problem is with an unseen PCB. The best we can do to help you is offer some suggestions of tests to perform and explain what the technical meaning of those...
Are these the sensor libraries you're really using?
https://github.com/pololu/lsm6-arduino
https://github.com/pololu/lis3mdl-arduino
If anyone is going to go to the trouble of editing these to properly allow...
Unfortunately, no. The addresses I have are (probably) meant to be private.
I sent an email around the time I wrote msg #4. So far, no reply. But it's only been 2 full business days. Remind me later this week and...
Maybe the Linux version of teensy_post_compile should check if the udev rules are installed?
Until recently, this program was only delivered by the Teensyduino installer which checks if the udev file is present and...
This is indeed the default (no threads) behavior for Teensy 2 and 3.
On Teensy 4, the default has the stack start at the top of ITCM (RAM1) memory, and the heap is located in RAM2 memory.
First, install Teensyduino 1.57. Version 1.56 and earlier had MSQ output, which is basically PWM but with extra noise shaping stuff. Versions 1.57 adds PWM output for Teensy 4. But you still might prefer to use MSQ. ...
Maybe run commands to uninstall and reinstall the teensy board package? Maybe if run with the verbose flag, info about *why* arduino_cli didn't install teensy-discovery might be shown?
This is expected behavior. The 15 sec button press only wipes the flash memory on Teensy 3.5 & 3.6.
Teensy 4.0 & 4.1 added the "restore program" which is written into the flash after fully erase. But the older...
I'm not aware of any production flaws or problems. I can tell you every board was tested with a sine wave diving a 10 ohm resistor in the test fixture, though the test lasts only about 1 second.
If you believe it's...
I sent you an email. We have several with cosmetic flaws, mostly just stray solder paste on the through-hole pads. Will be happy to sell you these at the normal price. PJRC doesn't price gouge!
The USB controller operates with DMA accessing linked lists of structs in memory to define the properties of all the USB endpoints and manage all the pending data transfers. If you really want to dive into the details,...
Maybe look for signs of damage to the wires between the 2 chips. Since pressing the button is at least causing the bootloader chip to reboot the main processor, there's some chance the parts might still be good but...
I don't know what's causing the problem, but I can answer this:
An ISR, or just ordinary code which calls noInterrupts() and never turns interrupts back on, can interfere with automatic programming by clicking...
The teensy_secure utility looks for your key.pem file in 1 specific place. The full path it will search is shown in the Tools > Teensy 4 Security window.
On Windows, that location comes from reading...
2 blinks means it can't communicate with the IMXRT chip, the JTAG port isn't responding.
Documentation on the blink code is on the page for that chip. Scroll down to "Troubleshooting & Diagnostic Blink Codes" at the...
However, as a blind guess, this might be your problem:
Using pinMode() puts the pin into GPIO mode. If done before analogWrite(), as your message seems to say, it has no effect because analogWrite() will...
Pins 0 and 1 are not used by USB serial. That's info which applies to boards like Arduino Uno, but not relevant to any Teensy.
Please show a complete program which can be copied into Arduino and run on a Teensy,...
Yes, a buffer overflow definitely could "crash" that way. But better to think "get stuck" rather than "crash".
For example, you could overwrite variables in RAM used by USB Serial, or hardware Serial5, which cause...
Haha, that's pretty much the exact opposite of how I've used the 2 that live on my workbench. I almost never bother to screw them down tight (or at all) and I move them between various carrier boards for testing...
Ok, ran the test again on both boards, this time using the screw to hold them done.
Exactly the same result, 1s on pin 22 & 28 and 0s on all other pins.
I wired all the ATP pins to GND and ran it here on both MicroMod boards on my workbench.
Pins set to input
Pin 0 state: 0
Pin 1 state: 0
Pin 2 state: 0
Pin 3 state: 0
Does the problem change if you remove the diode and connect the power with just a wire? Or maybe use a DC voltmeter to check the actual power supply voltage arriving at the VIN pin?
An issue was recently discovered...
I keep a couple MicroMod boards on my workbench for software testing. I'm not seen any pins failing. But most of the tests I usually run are meant to test the more complex libraries like Audio, USBHost_t36,...
I can't speak for Sparkfun. I can only comment on PJRC's role. And I suppose I could dabble in some guesswork...
I can tell you every MicroMod Teensy is tested on a test fixture PJRC made for Sparkfun, which is...
The raw speed of internal RAM, either tightly coupled RAM1 or normal RAM2, isn't going to be the limiting factor for this sort of application. Plenty of other aspects of how your code is written will be far more...
I've been considering bringing recent Arduino CLI into the Teensyduino installer for Arduino 1.8.19, so we can make use of the improved caching features.
Looks like they carry Teensy 4.1, getting it from Sparkfun.
https://electronics.semaf.at/navi.php?a=2488&lang=eng
Sparkfun should soon have them back in stock. Maybe in a week or two, ask Semaf to restock Teensy...
I'm catching up to messages I've missed over the last few days. Looks like msg #23 to #30 on this thread about about different case than the msg #1 - #22. Is everything after msg #23 specifically about the hardware...
Thanks. Made some edits, updating the page now.
Yeah, it's meant to be a quick overview, even though it turned out over 1800 words long! I had meant to write quite a bit more about the 3 audio library features and...
Nobody really knows. So far, at least as far as I know, nobody has built such a board and confirmed whether it works.
NXP documents only a single JTAG ID on page 188 of the reference manual. So odds seem likely the...
Here is a blog article which tries to explain the major changes in 1.57.
https://www.pjrc.com/teensyduino-1-57-released/
Hopefully I got everything important mentioned? And everyone? Did I miss crediting anyone...
Can confirm, F1 is a PTC "self resetting fuse", which is really only a resistor that increases resistance with high temperature when large current flows.
Arduino's forum would be a better place to ask for help specific to Arduino Portenta H7.
https://forum.arduino.cc/
This forum is about Teensy, not Arduino Portenta.
SoftwareSerial won't work. FlexSerial from Kurt's FlexIO_t4 library is probably your best chance.
I really don't know if FlexSerial supports 6 ports operating full duplex simultaneously, but this examples has 7...
If you read EEPROM.h, you'll see it just calls core library functions like eeprom_read_byte(), eeprom_write_block(), etc. These functions are the eeprom API defined by AVR libc, since Teensy supports compatibility with...
FWIW, a similar problem sometimes happens on Linux, but it's pretty easy to diagnose by the kernel syslog messages. It's almost always a scenario where someone uses an unusual Linux distro designed for small single...
Ah, I missed the screenshot earlier. Pretty clear Windows isn't loading its driver. Why is a mystery.
Typically Windows drivers have 3 parts, the actual device driver code which often has .SYS extension, a text file...
Oh how I wish I knew why Windows sometimes does this, and of course how to fix it. But I don't. Well, other than "fix" by simply using another computer which isn't messed up.
Questions of "what" are a lot easier to...
It certainly should work. Schematic looks ok.
Same basic advise as msg #19 on that old thread, start by measuring the 3 clocks at the CS4344 chip. If you only have a multimeter, just measure DC voltage. A clock...
I'm having trouble parsing this. There's a problem with uploading to lockable boards associated with something connected to Serial6 pins? Sounds like another Teensy is connected, but I'm just not getting a clear...
You're asking us to help you troubleshoot the SD card with a board that doesn't have a built in SD socket, but regarding the way you've connected a SD card, you didn't show photos or a diagram or even give a link to...
Must admit, I also know almost nothing about Linux USB Gadget, other than it exists and probably only works on certain hardware. I tried a couple quick searches and didn't find any conclusive info about using Gadget...
How many W25Q16JVUXIM do you need? We have a large batch of Teensy 4.0 in production now. In a few weeks they should be complete and we'll probably have a partial reel left over.
Difficult to offer suggestions without seeing exactly how you tested, ideally with enough detail to be able to run the test and reproduce the same result. Often small details matter greatly.
Now that I've said (hopefully clearly) which software does not exist, here are a few ideas for use of software which does exist...
1: Teensy absolutely does work as a USB device on its main USB port. You can plug...
Just in case this hasn't been explained clearly, no software is published to use the USB host port on Teensy 4.1 in any other mode, like device or OTG. The software only supports host mode.
Only the main USB device...
The code you showed is missing the serial event function. Looks like you didn't copy the whole program before pasting it here into the forum.
I see the JY901 library has this in its example
void serialEvent()...
To make this work, you'll probably need to completely turn off the USB port, at leave it off long enough for your PC to recognize as a USB disconnect. Maybe like this?
USB1_USBCMD = 0; // turn off USB...
Yes, works exactly the same as normal Teensy 4.1, except for ethernet.
Of course you can still connect a Wiznet-based ethernet add-on to the SPI port, if you really want ethernet.
2 quick questions...
Does the Amazon product info say it is the version without ethernet?
Does your Amazon purchase history say which Amazon seller shipped this?
As a sanity check, do you see the millions digit steadily incrementing every 2 seconds?
Yes, I've seen this too. It's a IDE 2.0 bug, where they're (probably) only stopping the GUI but not watching for when...
I've rebuilt the Windows installer. The new build should be identical, except teensy_secure.exe is now signed (sha256 only). The installer from Wednesday was 91871992 bytes. Today's copy is 91873016 bytes.
I...
Can you check if it has a valid digital signature (as far as your version of Windows believes)?
I don't have a Windows machine set up right now, but as I recall the process goes something like right click on the EXE...
Resistance measurements on chips can be tricky to interpret. Almost everything interesting inside a chip is junctions of N & P type semiconductor, not really resistors. Your multimeter forces a test current through...
I can't say what went so wrong, but I can answer this...
Shorting the 3.3V pin to GND does not break the regulator or cause permanent damage to Teensy 4.1.
I've tested this many times. I tried again just now...
Please keep in mind you're asking us for opinions about what might have gone wrong, but we can't see details. I don't even know what a HX711 is. Tried Google just now and landed on this Sparkfun page. I don't see any...
Shorting 5V to GND, or shorting 3.3V to GND, certainly isn't good, but odds are slim those will destroy Teensy 4.1.
However, shorting 5V to 3.3V, even for milliseconds while a connector partially mates, will...
You need a non-blocking driver. The default WS2811 driver doesn't play nice with other libraries, especially as you use more LEDs.
The simplest way is WS2812Serial. To see how, open File > Examples > WS2812Serial >...
Short term, I want to wrap up 1.57 next week, maybe even by this weekend. So right now is not the time to extend APIs.
After 1.57 release, I believe file preallocation belongs in a FS create() function. I believe...
Normally this isn't an issue, because the OctoWS2811 library is used which drives all 8 74HCT245 input pins, and because the OE pin is wired so the outputs don't tri-state.
If for some reason you didn't use certain...
Somewhat offtopic, but... I would have imagined a ramdisk on a modern PC would be a lot faster for random reads than only 222 MB/sec. That's a 4K read latency of approx 18 microseconds. 18 us is a low lower than NAND...
I've spent some more time investigating this problem. It all comes down to resistor R4.
If you just remove R4, your Teensy 4.0 will be able to start up with approx 3.2 volts (and the 3.3V power will be around...