My guess is the sin() function. Its input is in radian units, so ideally you should be giving it numbers between 0 to 6.28 (or whatever Pi * 2 is).
But after your program has run for only 4 seconds, even for the first LED (i == 0) the numbers...
The U2 chip that comes soldered to Teensy 4.0 or 4.1 is never meant to be used on a DIY circuit board. The T4 bootloader chip (IC_MKL02Z32_T4_QFN16) is meant for that DIY purpose.
If you desolder U2 from Teensy 4.1 and attempt to use it on a...
Captured the USB communication today.
It's definitely something going wrong on the Teensy side. What exactly is still a mystery. I'm going to dig deeper soon...
Just to confirm, I'm running the code from msg #9 on a Teensy 4.1 and the PC side code on Ubuntu 22.04. It runs for about 20 seconds and the orange LED blinks, then it freezes. Is that what you're seeing?
Might be good to explain about the problem you're trying to protect.
You said "external voltage regulator spikes", which seems strange as usually voltage regulators aim to give consistent voltage output, without spikes.
But in general for...
Teensy 3.2 is not coming back.
Angelo's comment about the financial risk is spot-on, exact for the "small" part. A word like "certain" or "inevitable" would be better.
Just to explain clearly, Teensy 3.2 was already a mature product when the...
I ran several tests just now. The display is not reliable without CS (shorting it to GND). I did get it to work a few times if another program has previously used the same display by driving CS. But I couldn't get the display to ever work from...
Another concern to consider with hot plugging is the inrush current during connect and high frequency effects (mainly due to self inductance of the wire) at connect and disconnect.
The USB 2.0 spec has an excellent summary of the issues in...
RS232 might mitigate most of the concerns. Look for RS232 chips which can handle accidental connection to 12V.
You might also consider a PTC fuse on the 12V supply side. They won't protect Teensy from damage, but if something goes wrong in the...
I would still worry about 12 volts on the same connector if this will ever be hot plugged. For example, imagine what might happen if the 12V pin and one or more of the data pins mate before GND.
Modern connectors meant for hot plugging usually...
Sorry if I missed this detail earlier, can you say how long the wire is and any other details about the physical construction we can't see from the diagram?
Any chance the 4 pin connector could be plugged in backwards by mistake? Or even if it has a shape that can't fully mate backwards, is it possible for the 12V to touch the other pins even briefly if someone tries to plug it in the wrong way?
If using Linux or Windows or MacOS using Arduino 2.x.x, simplest way is to find those files on your hard drive and simply replace them with copies downloaded from github. The new IDE installs stuff into hidden folder, AppData on Windows...
Source control systems like git and supporting online service like github bring a lot of valuable features. But like most tech with valuable features, if you're not feeling the need for those features it usually just becomes a burden to learn...
Please do not ask the same question on multiple threads. You may believe this increases your changes for help, but the reality is it only make a bad first impression for people who would like to help. Most of us look at the latest activity page...
This is the download page.
https://www.pjrc.com/teensy/td_download.html
Scroll down to "Arduino 1.8.x Software Development" for the links to the files that work with Arduino IDE 1.8.19.
No, there isn't any easy way to do this. There are very difficult ways, unless it's Lockable Teensy running in secure mode. But even with Lockable Teensy, you could program your key into the fuses and then desolder the flash chip and use...
0.12V is indeed unusual.
Metal shorts conduct very well, so you normally wouldn't see so much voltage unless the metal short is a really extreme situation, like one of the really cheap and extremely thin breadboard wires with longer length, or...
I see yesterday you showed a PCB that mounts Teensy 4.1 to this Aliexpress CS42448 board.
https://forum.pjrc.com/index.php?threads/cs42448-board-6-audio-inputs-8-outputs.72479/#post-341711
Is that the hardware you're using?
Do you have more...
I don't understand your schematic. It shows many connectors, but no idea of what's really connected to them.
I see 17 LEDs (D1 to F16 and also D41) and 16 more mysterious 6 pin parts (Y1 to Y16) inside a box labeled "DIODES". But as nearly as...
There is a way. Whether it's "easier", well, you can be the judge of that...
Each board (or "package" that serves all boards of the same type) has its own "libraries" folder. All you need to do is copy the library you want to that folder and...
I'm glad you're making progress.
But please consider nobody here can see what you're really doing with enough detail to retrace your steps closely to reproduce the problems you're encountering. In fact, I'm not even really sure which code...
Is this the specific display you're using? (found by a quick Google search, since you didn't give any link or part number or SKU)
https://www.waveshare.com/1.14inch-lcd-module.htm
As PaulS mentioned, your photo is not good enough for anyone to...
Yes, sounds good to me. I'm running it now and FastLED seems to be working.
Committed the fix just now!
https://github.com/PaulStoffregen/cores/commit/638a2079d290e3d6683aeceb07b6dfd8b09151a9
I added code to read the stack pointer, both in the constructor and right before the failing addLeds() call.
ClocklessController ctor, this = 1FFF8EB0, *this = 000097E4
sp = 20007FD0
addLeds, pLed = 1FFF8EB0, Led = 00000000, init = 000012E5
sp =...
Something very interesting happens. I put this constructor into clockless_arm_k20.h.
ClocklessController() {
Serial.printf("ClocklessController ctor, this = %08X, *this = %08X\n",
(uint32_t)this...
Unlikely. I personally test Ethernet.h with a W5500 on every release.
But you can easily check which library Ardiuno IDE is really using by turning on verbose output during compile in File > Preferences. Then compile and scroll up to read the...
I spent some time try to track this problem down. So far unsuccessful, but here's what I've learned so far.
Everything seems to stop at line 39 in FastLED.cpp, specifically calling pLed->init()
CLEDController &CFastLED::addLeds(CLEDController...
If "no 3.3V" means zero volts on only a few mV, usually that means a metal short has happened. Often those problems are recoverable if you can find the stray metal and remove it.
But if 3.3V measures some small voltage like 0.6V to 1.0V...
On MacOS, the new Arduino IDE 2.3.x stores stuff in ~/Library/Arduino15. From Finder, "Library" is usually a hidden folder. I usually use terminal or remote login, so I'm not familiar enough with normal MacOS GUI usage to say how to access it...
The "fuse" is a self resetting type. It doesn't "blow" like an ordinary fuse. It's really just a resistor that greatly increases resistance when it gets hot from too much current flow. It returns back to normal when it cools down.