Latest activity

  • BriComp
    What I do: Unzip the library folder. Place the unzipped folder (which should contain the library code) into the LIBRARIES directory.
  • BriComp
    BriComp replied to the thread Teensy 4.1 Serial8.
    We really need to see your code to determine what is going on. Post it using the </> button on the form. I usually use ADUM1201 for serial level shifters. They were designed for just that use. They are available here.
  • BriComp
    You need to show ALL your code so someone on the Forum can compile and attempt to debug your code.
  • BriComp
    I would suggest using these (the Color: 6Pin black CC1 2 variety) and taking a bog standard USB mini cable and cutting off the end with the USB mini plug on it, expose the cables inside and solder to the above USB C breakout board. That way you...
  • luni
    Hi @luni I switched to newlib-nano and enabled _printf_float and _scanf_float. The difference is enormous Before: teensy_size: Memory Usage on Teensy 4.1: teensy_size: FLASH: code:419516, data:281120, headers:8992 free for files:7416836...
  • BriComp
    Sounds eminently achievable.
  • J
    Hi ! Any solution ? Regards, Jérémie
  • P
    I'm using Teensy 4.1 without problems, but recently I used Serial8 for the first time and I'm having some issues. The port is connected to a level translator (Texas Instruments TXB0102DCUR) that usually works fine. The level translator is...
  • K
    Thanks for that! It gives me hope :) I'm pretty sure my dear T4.1 is fast enough to handle 16 independent voices via mux/demux?
  • K
    KarenColumbo reacted to jmarsh's post in the thread Teensy 4.1 equivalent of RPi "PIO"? with Like Like.
    FlexIO is the closest thing on the Teensy to PIO, but it's not quite as "hands-off". Although if you just want to output PWM signals, there's other dedicated modules for that.
  • K
    Sounds like analogWriteFrequency(pin, freq) and analogWrite(pin, duty) is enough. This will allow you to create (almost) any frequency. The PWM hardware does all the work, so the waveform doesn't depend on software interrupts. Details here...
  • K
    Also be aware analogWriteFrequency() can accept a floating point number for the frequency, so you're not limited to integer precision. It will automatically make the closest frequency the hardware can create. All the timers have 16 bit...
  • PaulStoffregen
    Also be aware analogWriteFrequency() can accept a floating point number for the frequency, so you're not limited to integer precision. It will automatically make the closest frequency the hardware can create. All the timers have 16 bit...
  • PaulStoffregen
    Sounds like analogWriteFrequency(pin, freq) and analogWrite(pin, duty) is enough. This will allow you to create (almost) any frequency. The PWM hardware does all the work, so the waveform doesn't depend on software interrupts. Details here...
  • K
    Thanks! If guess what I really need is a very stable PWM wave that doesn't react to anything that's going on, except the frequency gets updated. It's just a synth, after all, there's not much going on in relation to MHzs of clock, even if I...
  • J
    FlexIO is the closest thing on the Teensy to PIO, but it's not quite as "hands-off". Although if you just want to output PWM signals, there's other dedicated modules for that.
  • K
    Dear PJRC people, there's this great Juno DCO project by Jan Knippers, https://github.com/polykit/pico-dco. It relies on PIO (which seems to be a Raspberry-exclusive thing) to deliver a stable "reset" frequency via PWM to a Juno 106 like sawtooth...
  • V
    The code I developed is quite long so I will post a few important passages. This is how I declare Ethernet: This is how I read the ethernet (I read the data sent from the Client): This is how I send the data: It will be sent randomly as if I...
    • begin ethernet.PNG
    • read ethernet.PNG
    • timer begin.PNG
    • pin.PNG
    • Capture.PNG
  • T
    Hi @luni I switched to newlib-nano and enabled _printf_float and _scanf_float. The difference is enormous Before: teensy_size: Memory Usage on Teensy 4.1: teensy_size: FLASH: code:419516, data:281120, headers:8992 free for files:7416836...
  • B
    bdoan replied to the thread Teensy4.1 USB Audio.
    Ok. Got it working. Thanks. Now how do I speed up the Arduino 2 compiler?
  • T
    There probably are good reasons to use newlib instead of newlib-nano by default. I'm just wondering because ARM developped it for use in embedded processors as opposed to newlib which is meant for linux. The missing float printf / scanf can be...
  • defragster
    defragster replied to the thread Arduino IDE 2.3.2?.
    Generally no problem as IDE 2.x likes to notify of updates and as they roll out it seems usually for the better.
  • B
    Hi everyone, does anyone have any issues running an IDE newer than IDE 2.0.x? I see the teensyduino page lists 2.0.x: https://www.pjrc.com/teensy/td_download.html Thanks!
  • C
    Actually I've not connected Pin 22 to the shield, so it's not that, but it must be something similar. I think the ball is in my court again. Thanks.
  • C
    Ok thanks. I therefore tried it on a standalone T4.1 without shield or other hardware, and yes it works as expected. Must be a hardware thing which I'll look into.
  • J
    If these cables were custom made, guaranteed to have the resistors, and they don't work - I'd be taking it up with the manufacturer. It's really not complicated - if there's a USB-C socket on a device meant to consume power (as opposed to supply...
  • B
    I would like to use the Teensy 4.1 as a programming tool to move an Intel Hex file into a W25X40 flash memory device. The hex file is small enough to be hard coded into the Teensy application or it could be transmitted, line by line over a USB...
  • J
    Have you checked for solder bridges on the audio shield between pin 22 and pins 21/23?
  • h4yn0nnym0u5e
    h4yn0nnym0u5e replied to the thread Teensy4.1 USB Audio.
    It's really helpful to use the Code tag when posting your code, as it preserves the formatting - click the </> button on the toolbar... A fair few things not been mentioned as yet: You've put all the Design Tool output inside the setup()...
  • J
    Hell ya!
  • J
    jvphotog reacted to Pio's post in the thread Stereo guitar/bass cabinet emulation with Like Like.
    Working on the enclosure now. Everything fits as planned. For the light pipes i'm going to use a 3mm round acrylic rods mounted into a LED bezels.
  • P
    Pio replied to the thread Stereo guitar/bass cabinet emulation.
    Working on the enclosure now. Everything fits as planned. For the light pipes i'm going to use a 3mm round acrylic rods mounted into a LED bezels.
    • TGX4_box6.jpg
    • TGX4_box10.jpg
    • TGX4_box8.jpg
    • TGX4_box7.jpg
  • B
    bdoan replied to the thread Teensy4.1 USB Audio.
    I am still getting a compilation error, apparently from one of the include libraries. :\users\user\appdata\local\arduino15\packages\teensy\hardware\avr\1.59.0\libraries\sdfat\src\common\fsstructs.h:47:49: error: a function-definition is not...
  • B
    bdoan replied to the thread Teensy4.1 USB Audio.
    Initially, I just want to bridge the Analog audio (in and out) from the SGTL5000 to USB audio. At some later date, I will add GPIO, ADC measurements and user interface (non-blocking) to complete the application.
  • K
    kd5rxt-mark replied to the thread Teensy4.1 USB Audio.
    Specifically with regard to the compilation error: did you select "Audio" or "Serial + MIDI + Audio" or "Serial + MIDIx16 + Audio" for the "USB Type" in the Ardiuno IDE "Tools" pulldown menu ?? As for what to put in the main loop, the answer to...
  • K
    I got chatgpt to give me some basic code to verify communication with my chip. Currently the registers I read give me this output when I run the code: Device ID: 0x0 Status Register: 0x0 I assume this means the chip and the Teensy are not...
  • T
    yes - clients have clamored for USB-C connectors. So I used to do what you are showing above, but then people feel it is not "future proof" etc for a product, and they are turned off... So while the above connector is great for prototyping and...
  • B
    bdoan posted the thread Teensy4.1 USB Audio in Audio Projects.
    I am trying to create a USB audio application for the 4.1 using the Audio Shield (Rev D) I used the Audio System Design Tool and created this code for Arduino IDE 2.3.2 What code needs to go in the main loop? void setup() { #include...
  • K
    Your sketch will only print if the DATA_RDY is set, and that will only happen if Teensy gets a falling edge on the ADC_DRDY_PIN. So I think there are two possibilities. One is that the ADC is generating DATA_RDY signals and your Teensy is not...
  • J
    Your sketch will only print if the DATA_RDY is set, and that will only happen if Teensy gets a falling edge on the ADC_DRDY_PIN. So I think there are two possibilities. One is that the ADC is generating DATA_RDY signals and your Teensy is not...
  • BriComp
    Can we re-cap what you are trying to do. Are you trying to have a panel mount USB socket which connects to the Micro USB on the Teensy? If so the panel mount does NOT need to be USB C, just more robust than the Teensy micro connector. Here is a...
    • z.png
  • A
    Try just soldering a wire in place of L2. It's purpose is to prevent high frequency noise just possibly escaping up the USB cable or out the VIN pin. Not really essential for the board to just work. Ideally you should solder a capacitor at...
  • T
    I really appreciate that BriComp, thank you. Would I have issues of the Teensy not being the main USB host? I would need to solder to the underside of the Teensy, right? I’d reaaally like not to have to solder onto the bottom of the Teensys if...
  • R
    Rezo reacted to Dogbone06's post in the thread Call to arms | Teensy + SDRAM = true with Angry Angry.
    Updated Todo: * Add the missing AD_B1_XX pins * Top left of the board in the spreadsheet image in this thread, there are many GND pins. I will replace a few of them with 5V pins. * 4.5 already has USB Host and USB-PD (Power Delivery) on that...
  • defragster
    Updated Todo: * Add the missing AD_B1_XX pins * Top left of the board in the spreadsheet image in this thread, there are many GND pins. I will replace a few of them with 5V pins. * 4.5 already has USB Host and USB-PD (Power Delivery) on that...
  • defragster
    Perhaps write a simple sketch to control some digitalOutput pins in loop to trigger ISR()'s on the desired pins and see if the ISR() code gets called when done manually by pin #? In same interrupt.c file is this code that gets the common...
  • T
    These (the Color: 6Pin black CC1 2 variety) have the resistors already mounted, you would just have to wire/solder leads to D-. D+, Vusb and GND on the Teensy 4.0.
  • K
    I updated the code with the added pinMode call. I also added code to interface the adafruit clock generator board with it. I verified the clock generator board produces the 8.192MHz signal I need with an oscilloscope and connected that output to...
  • BriComp
    These (the Color: 6Pin black CC1 2 variety) have the resistors already mounted, you would just have to wire/solder leads to D-. D+, Vusb and GND on the Teensy 4.0.
  • wwatson
    wwatson reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
    I thought of responding with :eek:but it was not in the list :LOL: 2 2x20 connectors or the like, might be challenging to you both routing and also if you do shields being able to uplug them... But there are some boards like the Mega family...
Back
Top