Latest activity

  • J
    jvphotog reacted to Pio's post in the thread Stereo guitar/bass cabinet emulation with Like Like.
    https://github.com/hexeguitar/TGX4 I have added one more HW configuration: for the Blackaddr TGA Pro board. I don't have one to test, but would be great if anyone could try the included in the bin folder precompiled hex file. There is also one...
  • PaulStoffregen
    At 230400 baud, each bit takes 4.34us. Each byte in 8N1 format requires 43.4us. I don't have a clear idea of your code, but you did say "I'm sampling a port every 1 µs using IntervalTimer" and "I'm trying to write one character between...
  • P
    Pio replied to the thread Stereo guitar/bass cabinet emulation.
    https://github.com/hexeguitar/TGX4 I have added one more HW configuration: for the Blackaddr TGA Pro board. I don't have one to test, but would be great if anyone could try the included in the bin folder precompiled hex file. There is also one...
  • M
    You can increase like this: sample timer.priority(64); // increase priority of sample timer interval timer Lower priority numbers actually mean higher priority. Think of it this way: higher numbers have to wait longer than lower numbers...
  • J
    There are some places in the hardware serial code, including write, where interrupts are disabled briefly. If your timer interrupt is your highest priority, I suggest raising its priority to 0 (highest) as shown below rather than changing the...
  • PaulStoffregen
    Posted on the website today https://www.pjrc.com/nuclear-pioneer-gamma-ray-spectrometer/
  • F
    Well done mr. dangelo! You are wonderful and your scrubber object beautiful. I will definitely use this at some point, excited to scrub!
  • h4yn0nnym0u5e
    Well ... 517 lines to do a file copy did seem a tad extreme ... compared to my 34 :giggle: but not relevant to the discussion at hand ... and mine's only for a quick demo. Yes, it's maybe not worth pursuing my library for your use, there's only...
  • I
    I'm sampling a port every 1 µs using IntervalTimer. In my main loop I'm processing the samples and for the most part each sample is processed right after the ISR collected it. It's acceptable if the processor falls behind as it can quickly catch...
  • sbfreddie
    I have made changes to the copy files from SD to Flash code to close any open files for all the error return points as you have suggested, (I think this could have been written a little more elegantly as you so apply have described it), however...
  • h4yn0nnym0u5e
    I'll have to check that out! Thanks, Ed
  • sbfreddie
    I'll have to check that out! Thanks, Ed
  • h4yn0nnym0u5e
    I've just spotted a nasty in both of your main.cpp files, may or may not be relevant. At the end of the copy to Flash you flush the files, and then close the RAM data file. Yup, the RAM file, not the Flash one... That's actually in two places...
  • R
    Midbar (Teensy 4.1 Version) V3.1 is released. This version of Midbar can encrypt data that can be decrypted in the desktop app and vice versa. The new feature is available in the "Other Options" -> "Custom Key Encryption" -> "AES-256 CBC" tab...
  • sbfreddie
    H4yn: I have attached to this post similar code that uses FrankB's Wave Player code which is kind-of old but it does work just fine using QSPI_Flash. If you have a moment check it out, as it is not very complicated. Regards, Ed
  • V
    visionnocturne reacted to BriComp's post in the thread Teensy 4.1 + OctoWS2811 adapter with Like Like.
    Please post any code between code tags using the </> button. It makes your code much easier to read and understand. I have posted your code below so that you can see the difference. /* OctoWS2811 VideoDisplay.ino - Video on LEDs, from a PC, Mac...
  • h4yn0nnym0u5e
    Thanks for those. I've plugged them into the above sketch, using file paths like yours, and they play without issue from SD or LittleFS_RAM. I also tried heap instead of PSRAM, which worked as expected. So that's good, one possibility knocked...
  • BriComp
    BriComp replied to the thread Teensy 4.1 + OctoWS2811 adapter.
    Please post any code between code tags using the </> button. It makes your code much easier to read and understand. I have posted your code below so that you can see the difference. /* OctoWS2811 VideoDisplay.ino - Video on LEDs, from a PC, Mac...
  • V
    ok sorry, Here is the sketch of teensy (software: arduinoIDE 2.3.2) /* OctoWS2811 VideoDisplay.ino - Video on LEDs, from a PC, Mac, Raspberry Pi http://www.pjrc.com/teensy/td_libs_OctoWS2811.html Copyright (c) 2020 Paul Stoffregen...
  • K
    @visionnocturne: In order to do any kind of troubleshooting and/or make any reasonable recommendations, we really need to see your entire sketch. Please post a complete sketch that exhibits the problem that you are attempting to solve & we can...
  • G
    PaulStoffregen, I really didn't understand all the minutiae of what installs, uninstalls, etc. But, I assume none of it is a work around for this problem with Teensy 3.x, Correct?
  • V
    I'm trying to use LED strips with the OctoWS2811 adapter, a Teensy 4.1, and 16 LED strips (each with 30 LEDs) to display a video file streamed from a PC. I've connected the Ethernet cable to the LED strip. To prepare the data cables, I cut an...
  • T
    I would like to share how my backlight is hooked up. I use a PC817 optocoupler to control the backlight. I was just using digitalWrite pin HIGH LOW to turn the backlight on and off via a 390R resistor to the optocoupler. But then I discovered by...
  • T
    Here's the latest code, not yet supporting SPI transactions (which will add some overhead). It's renamed, so development can be done without conflicting with an install of Adafruit's version. https://github.com/PaulStoffregen/Optimized_ILI9341...
  • T
    In Teensyduino 1.20-rc2, I reverted Adafruit_ILI9341 back to Adafruit's version, with SPI transactions added. 1.20-rc1 had a highly optimized ILI9341 library, from KurtE, based on earlier work I'd done on optimizing ST7735, which was based on...
  • I
    No idea what JUCE is, or what you want to communicate, but I googled "juce teensy" and found a couple of links https://forum.pjrc.com/index.php?threads/juce-teensy-communication.55617/ https://github.com/cutlasses/TeensyJuce
  • J
    No idea what JUCE is, or what you want to communicate, but I googled "juce teensy" and found a couple of links https://forum.pjrc.com/index.php?threads/juce-teensy-communication.55617/ https://github.com/cutlasses/TeensyJuce
  • M
    mborgerson replied to the thread Teensy 4.1 serial USB crash.
    You may think your PC program is only sending one frame every 50mSec, but are they actually arriving at the Teensy 50mSec apart? A 42-KB frame can be sent to the T4.1 in about 3milliSeconds if the PC really wants to pack the bytes into...
  • I
    Hi there, I am working on a project where I need to communicate between JUCE and Teensy 4.0, what library can we use? And any sample code to get this up and running? I have tried using the juce_serialport Library and it was not supported by the...
  • N
    Hi, super new here. I'm making a recording device for a school project with a Teensy 4.1 + Audio Module Rev D and I have a few questions: First, do I need to use the Line In pins on the Audio Module and use an additional jack like a 3.5mm trrs...
  • S
    shawn replied to the thread Teensy 4.1 serial USB crash.
    To be clear: show() doesn’t wait for the whole frame to finish. It simply ensures the DMA stuff has what it needs. It will pause, however, until the previous frame has finished, if it’s called before the frame is done. You can check this with a...
  • P
    paniclemur replied to the thread Teensy 4.1 serial USB crash.
    At the moment, I'm only transmitting data at around 20fps, meaning each frame has 50ms, so should be well within the display time if the update is 9ms for show(), however it still crashes every 20 mins or so. In terms of the 9msec limit - I've...
  • sbfreddie
    I am using the Teensy4.1. The version of Teensyduino that is currently be used by PlatformIO is 1.59. Here are the two files Tick and Tock
  • h4yn0nnym0u5e
    I've had a look, and can't immediately see what the problem is. I'm always a bit nervous when there's lots of duplicate code and strings, and more so when the duplicates aren't quite so - like your SD directory being CLKSNDS but LittleFS uses...
  • E
    I would like to share how my backlight is hooked up. I use a PC817 optocoupler to control the backlight. I was just using digitalWrite pin HIGH LOW to turn the backlight on and off via a 390R resistor to the optocoupler. But then I discovered by...
  • sbfreddie
    h4yn0nnym0u5e: Actually this is remarkably similar to mine in the way it works, first initialize the SD card, then initialize the LittleFS Ram (in my case LittleFSFlash), then copy the file from the SD to the LittleFS file. In my case there are...
  • h4yn0nnym0u5e
    I'll take a look. In the mean time, here's a sketch I adapted to use SD+LittleFS rather than two SD cards. I haven't got a QSPI flash so it uses a LittleFS RAM disc and copies an audio file to it from the SD card during setup(). Assuming the...
  • wwatson
    In my case, I use IDE 1.8.19 because it is the version that does not give me errors with sketches that have many tabs. The IDE 2.x has given me a lot of headaches. In case of tracking down an error in the code it is easier, the excesses of help...
  • T
    In my case, I use IDE 1.8.19 because it is the version that does not give me errors with sketches that have many tabs. The IDE 2.x has given me a lot of headaches. In case of tracking down an error in the code it is easier, the excesses of help...
  • sbfreddie
    Just for example on my Mac: Xcode.app uses: 23.41GB Wireshark uses: 232.1 MB WhatsApp uses: 328 MB VMware Fusion uses: 1.26GB Visual Studio Code.app uses: 567.5MB Visual Studio.app: uses: 1.63GB No Platform IO is not very big compared to a...
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    That's interesting, you are writing value 1000 to AOx but you are reading back value 2000 from AOx. You may want to try the other use of the modbusTCPClient.holdingRegisterWrite() command. Instead of boolean writeSuccess =...
  • sbfreddie
    How about this compressed file of just the Main.cpp, I am sure you can figure out the rest. About the IDE, I also have used many different IDE systems over the past 5 decades, and you are correct many of them had steep learning curves. I have...
  • h4yn0nnym0u5e
    I can understand and sympathise with your opinion, but it remains the fact that a lot of users use nothing but the Arduino IDE, and on this forum it is the canonical way of supplying a concise example of code that reproduces an issue. Often the...
  • M
    mborgerson replied to the thread Teensy 4.1 serial USB crash.
    OK,, since the OP specified 300 LEDs, it seems that each update is going to take about 9 milliseconds. Since the show() function starts with while (update_in_progress) ; If you have multiple frames of data, after the first call, each...
  • M
    MarkT replied to the thread Designing an Inverse Notch Filter?.
    A biquad with setBandPass is clearly the way to go... Very high Q may cause stability issues though, but you should be able to get higher than 5...
  • M
    Start with one. The DRV8833 datasheets how to use it in fast-decay and slow-decay modes. There are encoder libraries for standard quadrature AB and ABZ encoders.
  • A
    The gumstick-sized Teensy 4.0 made this project possible! Fender's iconic Stratocaster's control cavity was routed to accommodate a few analog pots and a dual-pole 5-position blade switch but I've crammed the Teensy, a stereo codec, two RGB LED...
  • S
    shawn replied to the thread Teensy 4.1 serial USB crash.
    In WS2811-and-Octo-land, the strip is likely to operate at 800kHz, 1.25us per bit. There are 24 bits per pixel and maybe 300us between frames. This means that for N pixels in the longest strip, each frame is about N*24*1.25 + 300 microseconds...
  • S
    shawn replied to the thread EtherCat on Teensy 4.1?.
    According to this Wikipedia page, EtherCAT has an EtherType of 0x88A4. You could at least monitor the traffic if you wanted some visibility.
  • sbfreddie
    @h4yn0nnym0u5e: I created a bare bones project to try using your Audio system to play from QSPI Flash Memory using LittleFS, and it does not work. My code tells me that it is playing, but nothing is coming out of the audio system which is...
Back
Top