PaulStoffregen's latest activity

  • PaulStoffregen
    You could also try removing all wires except 7, 8, 18, 19, 20, 21, 23, 3.3V and GND (next to pin 0). Might be easier to check if you have only the minimal wires for the tutorial beep test, or try tunning the Synth > Guitar example. Or while you...
  • PaulStoffregen
    If you show better photos, I and probably others here will at least try to visually double check. Maybe we'll see something?
  • PaulStoffregen
    Maybe 1 or more wires aren't connected properly? Unfortunately this camera angle and zoom is impossible to visually check. The wires go outside the picture frame, and even if the zoom where slightly wider, the angle relative to Teensy makes...
  • PaulStoffregen
    For only I2S audio, the minimum pins are 7, 8, 18, 19, 20, 21, 23, 3.3V and GND (next to pin 0). But much of the tutorial also uses the SD card on pins 10, 11, 12, 13. It also has pushbuttons on pins 0, 1, 2 and pots on pins A2 and A3, and a...
  • PaulStoffregen
    PaulStoffregen replied to the thread USB Descriptor help.
    This may not help much, but I'm pretty sure Windows is showing you text from an INF file it loaded to associate with the device. Hopefully this about Windows can at least answer your question. Sadly, Microsoft doesn't like showing the text from...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy Audio Crashing.
    The FastLED WS2812 driver blocks interrupts. To work well with audio, you need a non-blocking driver. WS2812_Serial is the best choice for a single output, or even 2 outputs. The main downside is it only supports certain pins, so you'll need...
  • PaulStoffregen
    Use typedef enum LEP_SYS_ENABLE_E_TAG: uint32_t { LEP_SYS_DISABLE = 0, LEP_SYS_ENABLE, } LEP_SYS_ENABLE_E, *LEP_SYS_ENABLE_E_PTR; so that the underlying type of the enum is an unsigned 32-bit integer. You can use any other integral type...
  • PaulStoffregen
    Confirm, no hard coded rates. Even for the common baud rates, it's computed.
  • PaulStoffregen
    You can pass in any baud rate. And the system will try to compute as close of a setup as it can.
  • PaulStoffregen
    Yup, this was done ages ago. Just create a LittleFS_Program instance and when you call begin(), give it a size that uses 1.5M or less if your program is bigger than 512K. The first 512K is always erased, even if your program is smaller, so keep...
  • PaulStoffregen
    Are these all Macintosh computers with USB-C ports? They might be looking for 5.1K pulldown resistors on the CC pins to know what type of power to send. If you have USB cables that only have wires and lack those resistors, most PCs will default...
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    If we're talking about on/off pulsing, like 1 to 10 Hz speeds, just know that's much too slow for the PWM hardware with analogWrite(). You'll need to write code using digitalWrite() and timing stuff like elapsedMillis for such very slow speeds.
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    Have you tested your solenoid and whatever valve and other mechanical hardware to check if actually works in a continuously variable manner? Probably the simplest way to test would be the power the solenoid from a lab bench power supply that...
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    Whatever transistor you end up using, please also be aware of the need for a "flyback" diode wired in parallel with the solenoid. Maybe you're already know this? If not, here's a quick mention which can hopefully save you from a lot of painful...
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    Yes, IRLML6244TRPbF looks like it could work. It is a tiny SOT-23 package meant to be surface mount soldered to a PCB, so you can't just solder it easily with a perf-board or wires like a large TO-220 part.
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    Agreed, IRF520 is really meant for 12 volt gate drive. Performance with 5V gate drive is marginal, but at least within specs if not conducting nearly as well is ok. This "HiLetgo 5pcs IRF520 MOSFET Driver Module MOSFET Button Drive for Arduino...
  • PaulStoffregen
    Before I look at this yet again, please give me the exact program you're running for these tests. Even if it's "trivial" to figure out from your description in msg #6, save me some time and guesswork by giving me the exact code to copy into...
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    The datasheet also has this chart on page 3. You can see it has 15V as the Top voltage and 4.5V at the "Bottom" voltage used to turn on the transistor. At 4.5V the horizontal part of the line is much lower, which means it will be capable of...
    • screenshot.png
  • PaulStoffregen
    PaulStoffregen replied to the thread PWM help.
    That IRF520 module will not be reliable and probably will not work at all with 3.3V. The description says "Voltage: 3.3V, 5V", but that is simply wrong info. Quick Google search turned up the IRF520 datasheet. On page 2, the threshold voltage...
    • screenshot.png
  • PaulStoffregen
    PaulStoffregen replied to the thread AnalogRead issues.
    I also tried touching the pin while the test was running. The noise changes pretty substantially. It also goes to zero if I plug a wire between pin 14 and GND. The hardware is working as it should. Sensitive analog inputs don't read 0 when...
  • PaulStoffregen
    PaulStoffregen replied to the thread AnalogRead issues.
    The ADC pin is sensitive and not connected to anything. It can easily "hear" any electrical noise from your environment. I ran your program on a Teensy 4.1 here, plugged into a breadboard but no wires connected. It also hears noise.
    • serialmonitor.png
  • PaulStoffregen
    PaulStoffregen replied to the thread pls help my rocketry!.
    Have you tested only the relay with a simple program, like the LED blink example (File > Examples > 01.Basics > Blink) which simply turns the pin high and low?
  • PaulStoffregen
    PPM is Pulse Position Modulation. It is not Pulse Width Modulation (PWM). Your screenshot shows 100us high pulses followed by 900us low where you configured 1000us. It is working exactly as expected. This is PPM. The position of the pulse is...
  • PaulStoffregen
    This really should work on pin 3. As a quick test, I programmed a Teensy 4.1 with this code that sets all pins to INPUT_PULLUP and then I connected a 1K resistor between pin 3 and GND. void setup() { for (int i = 0; i < 42; i++) {...
    • 1721429573456.png
  • PaulStoffregen
    It's complicated on Teensy 3.2. The data is stored in a transposed format where each byte in memory is the 8 bits which will transmit simultaneously. So to write a single 24 bit RGB pixel, you must alter 1 of the 8 bits within 24 consecutive...
  • PaulStoffregen
    Teensy 3.2 is not coming back.
  • PaulStoffregen
    Good to hear it all worked out well. :) Confirm, PJRC doesn't offer any way to customize the mac address numbers.
  • PaulStoffregen
    Delete the first 2 lines and replace with normal PulsePosition.h include. Then is compiles with Teensy LC without any error. #include <PulsePosition.h> PulsePositionOutput ppm; void setup() { // put your setup code here, to run once...
    • file.png
    • 1721385787432.png
  • PaulStoffregen
    It's been a while since I've used Teensy LC, but looking at the PulsePosition code it really should "just work". No code editing in the library is needed. Only 6 pins are supported on Teensy LC. Details here...
  • PaulStoffregen
    IMXRT is Teensy 4.0. The PulsePosition library should use it automatically when you have Teensy 4.0 or 4.1 selected.
  • PaulStoffregen
    Those wires are really long, maybe too much for 50 MHz? But I'm mostly concerned about "two outputs". Does that mean you're trying to connect 2 different SD cards to the same 8 wires? Pretty sure that wouldn't work.
  • PaulStoffregen
    PaulStoffregen replied to the thread micropython on teensy-lc?.
    If you have an old Teensy LC, yes plan on using C/C++, either Arduino IDE or other tools which use the Arduino libraries. Teensy LC is discontinued. Stock ran out long ago. Even if were possible to run Python on it (extremely unlikely) nobody...
  • PaulStoffregen
    Do you really need 10000 pieces? If only a couple hundred will do, check out this thread: https://forum.pjrc.com/index.php?threads/teensy-3-2-modules-for-sale.75140/ I also heard from someone else who might have 100 to 200 left over, but it's...
  • PaulStoffregen
    Each author may have specific reasons, but often #ifdef in Arduino libraries is used for code that is specific to certain hardware. Where the library is meant to work on more than 1 board will often have small piece of code which differ...
  • PaulStoffregen
    This code uses SdFat. It is complicated. I recommend using the simpler SD library. It is much easier to use and understand. Since Teensyduino 1.54, SD.h is merely a thin wrapper which really uses SdFat internally. So if you use the simpler...
  • PaulStoffregen
    For the Teensy 4.1 built in SD card, you need the examples from File > Examples > SD. Those examples default to the regular SPI port, which would be used with the audio shield or other hardware you'd connect to the SPI pins. To use the built in...
  • PaulStoffregen
    When I have code that gets too large, usually I look for the most mature and unlikely to change portions. That's the stuff I tend to put into another file or create a library if I'm sure it'll get reused between programs.
  • PaulStoffregen
    In Arduino IDE, first make sure Teensy is selected in Tools > Board. The menus update based on which board you're using. Then click File > Examples > USBHost_t36 > Storage to find those examples. Hopefully those can help get you to a good start.
  • PaulStoffregen
    Did you install the Teensy udev rules? On Linux, the most common problem is lack of the udev rules, so please check that first before we try to dive into technical details on this problem.
  • PaulStoffregen
    PaulStoffregen reacted to ETMoody3's post in the thread ornament & crime beta testing with Like Like.
    Having just fallen down the Eurorack rabbit hole ( acquiring parts, building related stuff ) I am waiting to pounce when it is ready to be pounced upon.
  • PaulStoffregen
    Looks like you're off to a pretty good start. :)
  • PaulStoffregen
    That looks like one of the problematic SD card adapters. Many people have experienced problems with those. Power is the first issue. Hopefully you can find good documentation about the its power requirements. But often these are made by Asian...
  • PaulStoffregen
    For anyone following this old thread, here's an update about Ornament and Crime development on Teensy 4.1. https://forum.pjrc.com/index.php?threads/ornament-crime-beta-testing.73961/#post-346256
  • PaulStoffregen
    Quick followup, O_C T4.1 is now in beta testing. Here's a photo of one of the beta test units being calibrated. Full open source release is likely soon, of course depending on feedback from beta testers in the coming days. But so far...
    • oc_beta_calibration.jpg
  • PaulStoffregen
    Pin 46 is DAT3. It is not CS. All SD cards have 2 protocols, either a higher performance native mode where 5 pins are used for data (CMD, DAT0, DAT1, DAT2, DAT3), or a lower performance SPI mode where 2 pins are used for data (MOSI, MISO)...
  • PaulStoffregen
    TPS757 is meant for power supply, not digital signals. Generally speaking, through hole and high speed don't go together. You'll end up limiting yourself to a dwindling supply of older tech and obsolete parts. But if you had to go that...
  • PaulStoffregen
    Difficult to answer without a bit more context. Is this power, or digital signal, or analog signal? For a digital signal, usually my favorite is 74LV1T125, made by both TI and Nexperia. 74LCX125 is also pretty nice. I usually reach for that...
  • PaulStoffregen
    You could place them similarly to how they're placed on Teensy. Especially important to place the DCDC decoupling capacitors (both input and output) directly underneath the BGA chip with traces as short as possible to the vias, and those vias as...
  • PaulStoffregen
    That's Arduino IDE 1.8.19 + Teensyduino on MacOS. People who use Windows and Linux haven't seen it that way, because they install Arduino IDE 1.8.19 and then run the Teensyduino installer which adds all the Teensy specific stuff. On Windows and...
  • PaulStoffregen
    Try turning on verbose output during compile in File > Preferences. Does Arduino IDE give more info about the error with this turned on?
Back
Top