PaulStoffregen

Latest activity Postings About

    • PaulStoffregen
      PaulStoffregen replied to the thread Serial2 not printing.
      Try making a copy of your main project and delete portions until Serial2 starts working. Or if you don't find the problem, delete as much of your main project so you can show us a complete non-working code. If anyone can copy it into Arduino...
    • PaulStoffregen
      As explained earlier, simply delete the installed copy of PulsePosition which is overriding the known-good copy. This is the most important info: Multiple libraries were found for "PulsePosition.h" Used...
    • PaulStoffregen
      Did you monitor the voltages and USB current while working with those dead boards? If you don't have a voltmeter and you're not looking to spend a lot of money for a top-tier model, this pretty cheap one works quite well.
    • PaulStoffregen
      Just to repeat once more, while trying the 15 sec restore or anything else, please get into a practice of continuously monitoring the 3.3V voltage, VUSB voltage, and USB current. Also remember this restore process only works on not-yet-locked...
    • PaulStoffregen
      Probably not, but maybe... The bootloader chip is not involved in the software startup process. It does not function the same way as a traditional software-only bootloader, which runs first and then jumps to your program. When Teensy starts...
    • PaulStoffregen
      I'm just re-read this entire thread, looking for anything I missed and just generally trying to get a clear picture of this difficult situation. I still don't have a clear picture, so I'm hoping you might compose 1 good message to summarize all...
    • PaulStoffregen
      Maybe this is stating the overly obvious, but until this problem is fully resolved, please put sockets on any more PCBs you build so you can easily remove the Teensy.
    • PaulStoffregen
      Could you explain how the power supply works? Is all the board's power coming from the USB cable connected to Teensy? Or is external power connected (maybe not shown on this schematic)?
    • PaulStoffregen
      PaulStoffregen replied to the thread CAN SOMEONE EXPLAIN.
      I don't know why that error is appearing. More info is needed to even begin to diagnose the issue. Before you go to the effort of collecting more info, please do the easiest thing first. Download and use a fresh copy of the 1.59 installer...
    • PaulStoffregen
      Which USB hub should I use when I try again?
    • PaulStoffregen
      Article posted on the website today https://www.pjrc.com/jawsfx-guitar-pedal-with-shark-proximity-looping/
    • PaulStoffregen
      SD card corruption is really unfortunate. Wish I had a better answer, but can't know why this happened. The only known issue (known to me... on my list of issues to fix) that seems close would be incompatibility with buffers in cached memory...
    • PaulStoffregen
      Your program configured pin 36 as INPUT. With nothing connected, the pin can randomly pick up all sorts of noise. Use INPUT_PULLUP. Or connect a real resistor to the pin. Do not leave high impedance input pins floating.
    • PaulStoffregen
      Please shot a screenshot or photo of the screen.
    • PaulStoffregen
      On 2nd though, perhaps my bandwidth estimation is off by a factor of 2. The narrow pulse would be half of a cycle of a square wave. Maybe. When you use only 8 bit PWM, the 255 / 256 = 99.6% duty cycle, which is a pulse 16X wider. So it needs...
    • PaulStoffregen
      I ran your program (the first on msg #11) on a Teensy 4.1. This is the waveform my scope sees on pin 29. Looks like a very stable 25 kHz waveform. My scope says the duty cycle is 99.97%. That's very close to 4095 / 4096 = 0.999756. I...
      • file.png
      • file2.png
    • PaulStoffregen
      Please write more specific instructions to reproduce the problem. Which items are plugged at what time after upload? Or even better, give photos or short video with serial monitor visible.
    • PaulStoffregen
      I ran your program from msg #1. I made only 1 small modification to print "loop <number>" slowly because the note on/off messages scroll off screen too quickly (full code below). static elapsedMillis msec; // print at a reasonable pace if...
      • test.jpg
      • screen.png
    • PaulStoffregen
      This is a really strange case. Normally when a board goes badly and consumes too much current for things to get really hot, either the 5V power or the 3.3V power measures low. But you said you measured 4.7V and 3.3V. Normally when a large...
    • PaulStoffregen
      Maybe this can help? https://forum.pjrc.com/index.php?threads/queued-triantaduows2811-a-32-channel-ws-library-for-teensy-4-0-using-flexio-dma.59023/
    • PaulStoffregen
      Try setting Tools > CPU Speed for slower, like 150 MHz or even 24 MHz. Quick and easy way to test if running too quickly for signals to stabilize.
    • PaulStoffregen
      Yes, you're right, something in these libraries is causing unused code to be compiled into the final binary. I've added this to my low priority bug list. Just to set expectations, this is a low priority if everything works properly and the only...
    • PaulStoffregen
      Sure. Teensy 4.0 has 7 serial ports. 5 of those are one the easy-to-access pins. Just connect the other modules to any of the other serial ports and then replicate your code for the other 2. Ok, maybe it won't be quite the simple. You'll...
    • PaulStoffregen
      I am not aware of any way, at least from code running on Teensy. I did try this by editing descriptors. For Serial it is possible to affect the name shown on MacOS and Linux, but not Windows (because it ignores the descriptor name and gets the...
    • PaulStoffregen
      PaulStoffregen replied to the thread digital input.
      You should probably run some tests with that Kingbright LED. The specs say brightness is 10 to 25 mcd with 10 mA current. Maybe a lower current will meet your needs, or maybe not. Only you can make that judgement call. If you need a...
    • PaulStoffregen
      Try the 15 sec restore. Hold the pushbutton for 13 to 17 seconds. At 13 sec, you'll see the red LED blink briefly to indicate you're at the beginning of the 4 sec window where releasing the button causes full memory wipe and restore of a...
    • PaulStoffregen
      On Teensy or pretty much any circuit board, if you have a large current flowing an unknown path, one thing you can do is measure voltage drop along the power and ground. You'll need a multimeter with sensitive mV scale. Then just touch any 2...
    • PaulStoffregen
      This is quite weird indeed. Is this Teensy actually working, like you can load new programs and they run correctly?
    • PaulStoffregen
      Try measuring the 3.3V voltage while the power is on the input parts are hot. Do not rely on ohms measurement. If the voltage is very low, only several mV, that's a sure sign the short is metal. Usually these problems can be fixed if you find...
    • PaulStoffregen
      I tried to look up the minimum pulse width needed for the GPIO interrupt hardware, but couldn't find it in NXP's documentation. But as a general rule of thumb, usually 2 clock cycles are needed because they almost always use a circuit that...
    • PaulStoffregen
      The ADC inside Teensy is far too slow for this type of narrow pulse. You will need to handle this as a 3V a digital signal. A voltage comparator is probably the best way, but TL714 is probably too slow. I'd recommend trying a faster chip, like...
    • PaulStoffregen
      I also have no understanding of the context here which makes answering difficult. (the reason I haven't replied to the latest questions) @rootwyrm - Have you actually connected the signals to your Teensy 4.0 or 4.1 and experimented yet? Maybe...
    • PaulStoffregen
      Try replacing all the wires carrying the USB signals with short lengths of real USB cable. Don't use ordinary hookup wire for D+ or D- anywhere, not even for short lengths. Even if all the wires are real USB cable, the use of non-USB connectors...
    • PaulStoffregen
      Well, this was just a guess. But it fits the facts you mentioned, that the code had worked on a previously used Teensy 4.1 but failed when you tried on a new Teensy 4.1. The uninitialized contents of emulated EEPROM would be a likely...
    • PaulStoffregen
      When you edit usb.c, first try adding any simple syntax error. Then click Verify. Arduino IDE should notice the file changed and recompile. Seeing the syntax error quickly confirms Arduino really is recompiling the code and you really are...
    • PaulStoffregen
      Earlier I believed you had cut a USB cable and soldered its wires directly to the pads on the bottom side of Teensy 4.1. I assumed that from words "not from a USB cable connected to the D+ / D- and GND pins". But in this photo, it is not a USB...
    • PaulStoffregen
      Just a guess, maybe one of those other functions does not like the scenario where INDEX_ADDRESS or DEVICE_ID_ADDRESS is a number like 255 (the uninitialized EEPROM value)?
    • PaulStoffregen
      PaulStoffregen replied to the thread digital input.
      The website for that sensor says the minimum power is 10 volts.
      • 1714468550477.png
    • PaulStoffregen
      PaulStoffregen replied to the thread digital input.
      Now I see how it should work. :) The LED and 300 ohm resistor should connect between the collector and 3.3V. When the optocoupler turns on the collector is pulled to GND by the NPN phototransistor. So for the LED to show on condition, connect...
      • 1714464303959.png
    • PaulStoffregen
      Posted on the website https://www.pjrc.com/rv-leveling-helper/
    • PaulStoffregen
      Posted on the website https://www.pjrc.com/ws2812b-led-controller/
    • PaulStoffregen
      I tried setting the edit time limit to 5 hours. Hopefully that gives enough time to fix typos or technical errors, but stops spammers from turning their odd but acceptable AI generated messages into obnoxious spam.
    • PaulStoffregen
      I'm not very familiar with Windows. I mostly use Linux. On Linux, certain characters are special and need quotes so the command line doesn't parse them and instead passes the info directly to the program. Maybe Windows command line is similar...
    • PaulStoffregen
      Maybe Arduino IDE is printing that error? Teensy software has only English language.
    • PaulStoffregen
      Maybe you could show us the exact error, as either copy & paste of the text, or a screenshot if the text can not be easily copied?
    • PaulStoffregen
      Spam is rising again. Reporting spam quickly really does help! If you see spam, please report it. Speed matters. Just writing "spam" in the report is fine, no need for more. Reports affect more than just 1 message. If the spammer has...
    • PaulStoffregen
      PaulStoffregen replied to the thread digital input.
      I don't understand your schematic. You said you are using "a Capacitive Proximity sensor". But on the schematic, I see only resistors, capacitors, diodes, a quad optocoupler, a connector, and net names that imply connection to other stuff we...
    • PaulStoffregen
      First check if your program has something like "while (!Serial)" in setup. This is common in most example programs, to wait for the Arduino Serial Monitor so you don't miss any Serial.print() info. But if left in your final code, it will just...
    • PaulStoffregen
      PaulStoffregen replied to the thread About expansion to RAM1.
      The solution is to add FLASHMEM to some of your code, so it doesn't use RAM1, and/or to add DMAMEM to some of your arrays so they are allocated in RAM2 rather than RAM1. RAM1 is faster than RAM2, and *much* faster than flash. But both RAM2 and...
    • PaulStoffregen
      4 blinks usually means an issue with the crystal. Might be a good idea to inspect that area for debris or leftover flux from soldering nearby pins.
  • Loading…
  • Loading…
Back
Top