Search results

  1. M

    Teensy compiler directive?

    https://forum.pjrc.com/index.php?threads/teensy-4-1-architecture-definition.76549/
  2. M

    how to connect audio shield with a teensy 4.1

    Difficile à voir de cet angle seulement, main est-ce que le Audio Board est soudé au Teensy? S'il est simplement mis entre le Teensy et le protoboard, les branchements ne suffiront pas Aussi, ça aiderait de voir le code utilisé dans le tuto Marc
  3. M

    Creating Digital Gain from I2S microphone

    This would be my recommendation: switch to the great OpenAudio library , this will allow you to capture the full 24bits signal and manipulate it with floats - the Teensy 4.x has a built-in hw fpu, which is more than capable of doing audio processing with full F32 precision instead of integers...
  4. M

    how to connect audio shield with a teensy 4.1

    Pour le branchement, il faut simplement aligner les broches - il ya une correspondance directe entre le Audio Board rev D et le Teensy 4.x Concrètement, pour générer un son, seules les broches suivantes sont requises: GND 3.3V 21 (BCLK) 23 (MCLK) 7 (DO) 20 (LRCLK) Il faut limiter au minimum la...
  5. M

    how to connect audio shield with a teensy 4.1

    Avec ceci, par exemple: https://www.sparkfun.com/teensy-header-kit.html Je te recommendrais de pratiquer ta technique de soudure sur des composantes moins onéreuses; pour un essai comme celui-ci, l'idéal aurait été d'utiliser des jumpers tels que ceux-ci...
  6. M

    Issues with DMAChannels

    Wouldn't this increase latency somehow? Some project needs minimum latency, others might need more tolerance to DMA underruns, so maybe the FIFO watermark should be somewhat configurable, preferably? Marc
  7. M

    Having problems with digitalRead()

    If you don't have physical pull-up resistors on your inputs, you might want to set your input pins to INPUT_PULLUP, eg: pinMode(2, INPUT_PULLUP); Floating input pins can pickup the state of nearby pins, which could explain the behaviour described initially Marc
  8. M

    5-DRV8825 Questions

    Apart from full stepping & the special case of half-step overdrive mode that some stepper drivers will offer, microstepping count should have a minimal impact on final torque. For a spinning stepper motor (i.e. not stalled!), the biggest factor will be supply voltage - as the motor spins faster...
  9. M

    uploading hex file via teensy loader

    C:\Users\Marc>echo portlabel=hid#vid_16c0&pid_0478 portlabel=hid#vid_16c0 'pid_0478' is not recognized as an internal or external command, operable program or batch file. You will need to escape that string before running it as a Windows command - the & symbol must be prefixed with a ^...
  10. M

    Stereo guitar/bass cabinet emulation

    I'm tempted to build one as well! Nice work!
  11. M

    Stereo guitar/bass cabinet emulation

    Insane piece of work! You have managed to squeeze so much out of the T4 with this project, I'm really impressed with the results Marc
  12. M

    Stereo guitar/bass cabinet emulation

    ...or I can contribute fixes for those minor issues? @Pio let me know if you think it would help
  13. M

    Stereo guitar/bass cabinet emulation

    I followed Steve's suggestions and I'm now getting better results out of my TGA mkII board. Doing the offset calibration after a few minutes did the trick. I'm running into a few compile issues with the Arduino versions; I might give up on it and switch to PlatformIO, at least for this project Marc
  14. M

    Stereo guitar/bass cabinet emulation

    Here's what I get with both #define MEASURE_CODEC_PERFORMANCE commented & uncommented (I let it run for +5min each): ... Accumulator: 0 RAW RMS: 4.11 AudioEffectRmsMeasure: the RMS figure is -78.03 dBFS over 345 audio blocks ... Is this representative of what you get with your boards in...
  15. M

    Stereo guitar/bass cabinet emulation

    Yes, I'm using your library While doing the calibration eliminates the DC offset from the I2S input, however if you feed it with a full scale signal, you'll see that it begins to clip much sooner than it should on one side. I'll try the test program & report results shortly Marc
  16. M

    Stereo guitar/bass cabinet emulation

    One major problem I see with the WM8731 is high DC offset that seems to originate from the internal gain stage. This directly impacts the ADC dynamic range to an unusable level, as the signal will clip on the affected side no matter how the HPF is configured. I have 3 of these chips, and the...
  17. M

    Disabling program mode when using more than one Teensy?

    I remember accidentally causing the reverse of this - I could only program the lone Teensy by pushing the program button, even though USB was working fine I did this by changing the PRODUCT_ID value in usb_desc.h to a low value like 0x0001 Marc
  18. M

    Guitar Distortion Effect using waveshape and Teensy 4.0 with Audio Shield

    This would be a good start: https://github.com/MarkzP/NonLinear_F32 Marc
  19. M

    Teensy 4.1 ADC Issue

    this sound like an input impedence issue; do you have any kind of buffer in front of the analog pins?
  20. M

    Joystick not recognised until Arduino IDE launched the Teensy port is selected

    I would start by commenting out lines 18&19 in file teensy_hotas.ino Marc
  21. M

    Choose pullup resistor ohms

    As mentioned previously, the DSE registers are used to control GPIO drive strength; this is typically used to curb EMI issues associated with fast signal transitions. Lowering the drive strength is roughly equivalent to having a series resistor between the GPIO pin & connected load. Pull-up/pull...
  22. M

    Understanding I2S for simultaneous read/write in AudioControlSGTL5000

    Also, the SGTL5000 is only one of many codecs with an I2S interface - there are many out there, ranging from inexpensive to co$tly. Thanks to a wide array of sound-enabled consumer products, most are either directly compatible, or require very little to be compatible with the Teensy audio...
  23. M

    USB isolator solution for Teensy 4.0 (vs T3.6)

    I ran into a similar issue with USB to RJ45 extenders, here's what I found: T3.x are USB Full Speed devices (12Mbps), whereas T4.x are High Speed by default (480Mbps) - those rates are bitstream rates, i.e. even if the usage data rate is low, the line encoding will always result in the specified...
  24. M

    T3 MIDI Out resistor calculations

    Is the upper resistor (pin 4) tied to 3.3v? It seems connected to ground in your schematic
  25. M

    HX711 and Teensy 4.1

    I've used this library successfully with many Teensies, including LCs, T3.2, T4.0 & T4.1 Is this the same library you are using with the Arduino? Marc
  26. M

    Help understanding mixer gain()

    That's the beauty of using the floating point (OpenAudio) library: you carry around ~24bits at each step; also, you can amplify & sum in mixers without worrying about clipping Marc
  27. M

    Trouble with SCL2 and SDA2 IC2 with 4.1

    According to the header file: bool begin_I2C(uint8_t addr = BMP3XX_DEFAULT_ADDRESS, TwoWire *theWire = &Wire); I would try this: bmp.begin_I2C(BMP3XX_DEFAULT_ADDRESS, &Wire2);
  28. M

    X100 inspired Guitar Processor

    Thanks Holger, I did not realize there was a separate repo for the delay - I will update the reference when came time to implement the chorus effect, I remebered playing with it on Microdexed. As I was doing it, I was thinking that it couldn’t be that simple; it actually was - great work you...
  29. M

    X100 inspired Guitar Processor

    Here's the signal flow from the Audio Design tool:
  30. M

    X100 inspired Guitar Processor

    Here's a project I finally managed to get working: https://github.com/MarkzP/X100 It's a Rockman X100 emulator - 4 presets (Dist, Edge, Cln1, Cln2), Chorus & "Echo" (I used Freeverb - I tried emulating the original BBD echo, but it sounded like crap) The EQs are not 100% 1:1 with the original -...
  31. M

    need advises for designing low noise circuits

    I was just about to suggest ESP as well - lots of examples with good explanations, which helps in determining what are the critical design considerations (power supply, type of capacitors to use, etc.) Sadly this kind of knowledge seems to be going away with most of the audio processing now done...
  32. M

    Can Teensy work as USB host, connect directly to synthesizer's USB in (Type B) port?

    https://github.com/PaulStoffregen/USBHost_t36 I've been using this for quite some time with the Teesy 3.6, and more recently with the 4.0 with great success Marc
  33. M

    Read Endless Potentiometer

    a good place to start would be with something like float angle = atan2f(val5, val6);
  34. M

    [posted] TeensyLev - an acoustic levitator (adapted from Asier Marzo's Tinylev)

    Really impressive! Bonus point for using wood PLA, first time I hear about this. Très bien fait en plus! Would you mind sharing the Teensy code? Marc
  35. M

    Well duh, the Teensy 3.6 is NOT 5v tolerant

    I think it would make more sense for Paul & the PJRC staff to focus their limited development resources into the core products, the Teensies (is it ok to pluralize them?) Given the relatively open nature of their products, nothing prevents a willing 3rd party to create & sell such a protection...
  36. M

    16bit gamma correction on Teensy not working as expected

    I just had to check for myself - indeed PROGMEM doesn't do anything on the Teensy: #define PROGMEM, and pgm_read_byte() is simply doing a reference cast to make it compatible with Arduino: #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) Declaring strings & arrays with PROGMEM is...
  37. M

    16bit gamma correction on Teensy not working as expected

    In the Adafruit article, they are using a PROGMEM array (const uint8_t PROGMEM gamma8[] = {...), therefore it must be referenced as such: strip.setPixelColor(pixelNumber, pgm_read_byte(&gamma8[red]), pgm_read_byte(&gamma8[green]), pgm_read_byte(&gamma8[blue])); However, with the Teensy...
  38. M

    Help with joystick

    Alright, I understand - I'm willing to help, but I would like to understand your goal with this project. The way I see it, you could have bought a commercial Retropie bundle, ready (or almost ready) to play. Instead you got yourself a Teensy, which tells me you are curious about how this works...
  39. M

    Help with joystick

    There are a couple of issues here, but your main problem is probably caused by bad centering of the X/Y analog axis - you need to ensure that the values are as close to 512 when the joystick is centered for control assignment to work properly in Retropie Here are a few more suggestions: -You...
  40. M

    Help on connecting an I2C MPRLS pressure sensor from Adafruit

    Did you try invoking begin() with Wire2? Here's an example, taken from the Adafruit Github repo, modified to use pins 3&4 (Wire2) on a T3.6: #include <Wire.h> #include "Adafruit_MPRLS.h" // You dont *need* a reset and EOC pin for most uses, so we set to -1 and don't connect #define RESET_PIN...
  41. M

    Multiple I2c Teensy 3.5

    If I understand correctly, you want read sensors connected to pins 37 (SCL1) & 38 (SDA1)? All you need to do is replace instances of "Wire" with "Wire1": (sample code shamelessly stolen from examples) #include <Wire.h> void setup() { Wire1.begin(); } byte val = 0; void loop() {...
  42. M

    Good way to make a teensy based electric piano

    Thanks Holger! Building a MicroDexed is on my project list for this year. I will definitely pull sources from the Codeberg repo from now on. The work you did on porting these projects to the Teensy is very inspiring, and a great tribute to the capabilities of the T3.6 Marc
  43. M

    Good way to make a teensy based electric piano

    https://github.com/dcoredump/MicroDexed
  44. M

    send int-var with Serial1.write()

    The correct way to do this is: int i = 2; Serial1.print("myVar:"); Serial1.print(i); Serial1.print(";"); Marc
  45. M

    LM4040 external reference with Teensy 3.2

    I dug this out of a project that uses a single pot for menu navigation. Since this is on a Teensy LC there's no separate AGND, and the hot side of the 20k pot is connected to 3v3. It's pretty immune from supply noises, no cap needed in my use case. If I needed more that a few pots I would turn...
  46. M

    Phase shift measurement with Tennsy 3.6

    Since this looks like a typical signed/unsigned overflow issue, I would recommend these two changes: -Make Desphasage an unsigned int like the other variables: static uint32_t Dephasage; -Reverse the substraction: Dephasage = captureMes - captureRef; Marc
  47. M

    Headphone Jack Question for Audio Build.

    According to the SGTL5000 datasheet, output impedance is ~320ohm, therefore I don't think the chip would be damaged. You could always add a resistor between the line outs & the jack, but if I were you I would add a dedicated headphone jack (line out is really not that loud with headphones) Make...
  48. M

    LM4040 external reference with Teensy 3.2

    I would recommend you stick to 3v3 instead of using an external reference; normally, the ripple should affect both the ADC inputs and VREF at the same time, cancelling each other nicely (in theory!) With a few tricks you can pull this off almost entirely in software: -The ADC library allows you...
  49. M

    noob question about analog input with high resistance

    Another way to mitigate issues with large input impedance is to read the same pin multiple times to a dummy variable, while keeping only the last value. This allows the s&h cap to charge up properly. How many times depends largely on the ratio between the actual and optimal input impedance; for...
  50. M

    Anti Alias filters on SGTL5000

    If you have access to a suitable signal generator, you can test the performance (or presence) of the aa filter by injecting a signal above the nyquist freq. The signal will appear as a folded image reflected at the nyqyist point, i.e. 32khz signal should show up as a 10khz spike, along with some...
Back
Top