Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: neurofun

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. I just successfully ran the SdCardTest sketch on...

    I just successfully ran the SdCardTest sketch on the sd adapter of a rev.C audioshield connected to a T4.0 with the modified spi pin definitions.

    Did you check the connections of pins 10, 11, 12,...
  2. The spi pin definitions in above code are for...

    The spi pin definitions in above code are for T3.x and audioshield revC.
    see: https://www.pjrc.com/store/teensy3_audio.html
    Try this


    #define SDCARD_CS_PIN 10
    #define SDCARD_MOSI_PIN 11...
  3. Replies
    8
    Views
    230

    Correction: Sample rate for T4.0 = 44100Hz...

    Correction:
    Sample rate for T4.0 = 44100Hz
    Sample rate for T3.x = 44117.64706Hz

    Just figured this out while having a look at AudioStream.h
  4. Replies
    15
    Views
    212

    First you have to declare a pointer to the object...

    First you have to declare a pointer to the object you want in your struct and then you need to instantiate that object.
    Members of the objects inside the struct can then be accessed with ->

    Here...
  5. Replies
    15
    Views
    212

    According to the datasheet for the Sharp sensor,...

    According to the datasheet for the Sharp sensor,
    typical supply current is 33mA
    max supply current is 50mA

    Assuming you only want to power 8 sensors and 1 T3.2 then
    total supply current = 8 x...
  6. Replies
    15
    Views
    212

    And in this case it is easy to extend the...

    And in this case it is easy to extend the structure to contain velocity, midi channel and even different threshold values for every sensor.

    struct Sensor{
    const uint8_t pin; //analog sensor...
  7. Replies
    15
    Views
    212

    Here is a way to loop the code, it compiles but...

    Here is a way to loop the code, it compiles but did not test.

    int thresh;

    struct Sensor{
    const uint8_t pin; //analog sensor pin nr
    uint8_t note; //sensor midi note
    bool noteIsOn;...
  8. Replies
    8
    Views
    230

    At the bottom of this page,...

    At the bottom of this page,
    https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html
  9. Have a look at the IntervalTimer lib....

    Have a look at the IntervalTimer lib.
    https://www.pjrc.com/teensy/td_timing_IntervalTimer.html

    If I'm not mistaken, TimerOne and TimerThree are for avr microcontrollers.
  10. Replies
    8
    Views
    230

    Just a wild guess since I never used the...

    Just a wild guess since I never used the AudioPlayQueue object.

    Sample rate mismatch between input(50000Hz) and output(44117.64706Hz)?

    The outputQueue is filled faster than it is played. When...
  11. Replies
    2
    Views
    78

    Pin 9 is used by the audio shield for the BLCK...

    Pin 9 is used by the audio shield for the BLCK signal. Try another pin not used by the audioshield like 16 or so.
    see: https://www.pjrc.com/store/teensy3_audio.html
  12. @acbc According to the tutorial you picked the...

    @acbc
    According to the tutorial you picked the wrong object in the Design Tool.
    wavetable instead of waveform.
  13. Please post your complete code, otherwise it...

    Please post your complete code, otherwise it rather hard to help without guessing.

    guess: you might have declared your oscillator with a different name than "waveform1".
  14. Replies
    24
    Views
    416

    Except that the mantissa is unsigned, see data...

    Except that the mantissa is unsigned, see data type T5 in the manual.

    float thevalue(uint16_t highword, uint16_t lowword){
    int8_t expo = highword>>8;
    uint32_t mant =...
  15. Could not replicate the problem with your code on...

    Could not replicate the problem with your code on a teensy4 with the sgtl5000 audioshield.

    What happens if you add this to your setup()?
    filter1.frequency(500);
    filter1.octaveControl(1);

    ...
  16. Replies
    4
    Views
    156

    No problem, good you found the solution yourself.

    No problem, good you found the solution yourself.
  17. Replies
    24
    Views
    416

    Funny enough, your solution would have worked...

    Funny enough, your solution would have worked only if there was something like an unsigned float type in C.

    correction: bits # 23...00 Binary Unsigned value (24 bit)

    Thanks for clearing up...
  18. Replies
    4
    Views
    156

    This is one way to do it: //example for phase...

    This is one way to do it:

    //example for phase modulation

    #include <Audio.h>

    // GUItool: begin automatically generated code
    // AudioSynthWaveform waveform[0]; //xy=277,194
    //...
  19. Replies
    24
    Views
    416

    Yes Hmm, the first line doesn't make sense....

    Yes

    Hmm, the first line doesn't make sense. word1 should be 64768.

    Maybe some kind of obfuscation?
  20. Replies
    24
    Views
    416

    Just for the sake of correctness. There is no...

    Just for the sake of correctness.
    There is no such thing as a 16bit byte. A byte is 8bits. We are talking about words which are 2 bytes long.

    If you calculate the 2's complement of word1 and...
  21. paragraph 9.1.5 I don't want to sound rude...

    paragraph 9.1.5


    I don't want to sound rude but the answers to all those questions can be found in the datasheet linked in the third post by luni.

    Anyways, I dug up the schematic and some...
  22. No ground wire needed. Just 2 wires. All RS485...

    No ground wire needed. Just 2 wires.

    All RS485 nodes are wired in parallel. As for the wire, I used ordinary hook up wire.

    Yes, you basically run the 2 wires from node to node.

    Both...
  23. There is only one way to know, read the datasheet...

    There is only one way to know, read the datasheet of the battery you want to use.
    It will probably tell you that 4.2V is fine.
    Also don't forget to check if the minimum current the charger can...
  24. Did a something similar a long time ago and...

    Did a something similar a long time ago and implemented a half-duplex RS-485 network with a max487 transceiver for every microcontroller.
    The total length of the chain was about 30-40 meters
  25. Replies
    22
    Views
    307

    It's all part of the learning process. Count...

    It's all part of the learning process.
    Count yourself lucky, I already destroyed 2 teensy4's on the same project and i still haven't a clue why or how.
  26. Checked your samples, there is nothing wrong with...

    Checked your samples, there is nothing wrong with them. But you already knew that since your problem persist with the use of AudioSynthSimpleDrum.

    It's kind of hard to troubleshoot you problem...
  27. Replies
    22
    Views
    307

    Just soldered a fresh T4 to a new microSD adapter...

    Just soldered a fresh T4 to a new microSD adapter just to be sure I didn't make a stupid mistake in my previous posts, and I did not.
    Tested and confirmed to work with SD lib v1.2.2 & SdFat lib...
  28. Replies
    22
    Views
    307

    @defragster Thanks. @sid8580 Yes,...

    @defragster
    Thanks.

    @sid8580
    Yes, CardInfo.ino was compiled using SD lib v1.2.2.

    Just installed Bill Greiman's SdFat library (version 2.0.0-beta.5) and ran his SdInfo sketch.

    SdFat...
  29. Replies
    22
    Views
    307

    @sid8580 How do I check which version of SD lib...

    @sid8580
    How do I check which version of SD lib i'm using? CardInfo.ino was compiled with Arduino1.8.10 & TD1.48.

    Initializing SD card...Wiring is correct and a card is present.

    Card type:...
  30. Replies
    22
    Views
    307

    According to your first & third picture, your...

    According to your first & third picture, your wiring looks ok.
    I used the examples->SD->CardInfo.ino sketch to test the SD card's functionality.
    You will need to change
    const int chipSelect = 4;...
  31. Replies
    22
    Views
    307

    This is how I wired a SD to uSD adapter to the...

    This is how I wired a SD to uSD adapter to the Teensy4 SDIO pins.
    As you can see it is not 1 to 1.
    17988
  32. Replies
    111
    Views
    4,506

    I would suggest to also put the pin numbers on...

    I would suggest to also put the pin numbers on the top silk layer for those who want to use a double row header as seen on the first picture you posted.

    17638
  33. Replies
    7
    Views
    196

    There is no reference to a CS pin in your...

    There is no reference to a CS pin in your linSlave code.
    In order for the slave to be able to transmit, you need to make the CS pin high to put the transceiver in Operation Mode(enable the...
  34. Replies
    7
    Views
    196

    Do you have a pullup resistor on pin1 of the lin...

    Do you have a pullup resistor on pin1 of the lin transceiver?
    According to the MCP2004 datasheet, pin1 RXD is a open drain output and therefore needs a pullup resistor.
  35. Arduino...

    Arduino filemenu->Examples->USBHost_t36->Serial->MIDI->InputFunctions.ino
  36. This works for me for creating filenames at...

    This works for me for creating filenames at runtime:


    int filenr = 55;
    String name = "raw/" + String(filenr) + ".raw";
    const char *filename = name.c_str();
    frec =...
  37. Replies
    67
    Views
    3,487

    I'm pretty sure this means any size ranging from...

    I'm pretty sure this means any size ranging from 0402 to 0805, this includes 0603.
    Go for the largest size(0805 imperial). For those with a slight masochistic tendency go for 0402.

    If I'm not...
  38. Replies
    15
    Views
    657

    Did a fresh install of Catalina build 19A583 on...

    Did a fresh install of Catalina build 19A583 on an unsupported early 2011 MacBook Pro.
    Granted full disk access to Arduino 1.8.10 after it's installation. Installed Teensyduino 1.48.
    Confirming the...
  39. Replies
    6
    Views
    126

    Change the resistor to 2k2 and/or add a 100nF...

    Change the resistor to 2k2 and/or add a 100nF capacitor between pin14 and GND.
  40. Replies
    3
    Views
    306

    I very much like your approach for patching a...

    I very much like your approach for patching a polyphonic synth without too much effort. It makes complex synth designs a lot more manageable.
    Thanks for posting your code.
  41. Replies
    6
    Views
    126

    Disable the internal pullup and use an external...

    Disable the internal pullup and use an external 4k7 resistor. Your wire is probably acting like an antenna and the internal pullup is not strong enough.
    The resistor goes between pin14 and 3.3V.
  42. Replies
    111
    Views
    4,506

    An important factor for producing castellated...

    An important factor for producing castellated holes is reversing the routing direction(climb cut instead of conventional cut) as to not rip out the plated hole.
    A different end mill might be...
  43. Replies
    5
    Views
    165

    The audio lib processes the audio stream in...

    The audio lib processes the audio stream in blocks of 128 samples every 2.9ms. Sample rate is 44117.64706Hz and sample size is 16 bit integer.

    Normally you feed audio in the AudioEffectEnvelope...
  44. Replies
    5
    Views
    165

    Yes, have a look at the AudioRecordQueue object:...

    Yes, have a look at the AudioRecordQueue object:
    https://www.pjrc.com/teensy/gui/index.html?info=AudioRecordQueue
  45. Replies
    6
    Views
    137

    I don't see any pullup resistors for TFT_CS &...

    I don't see any pullup resistors for TFT_CS & T_CS.
  46. Replies
    10
    Views
    158

    No, this will not work since this is only...

    No, this will not work since this is only evaluated when you set the cutoff freq, not while modulating it. You would have to modify AudioFilterStateVariable::update_variable() in filter_variable.cpp...
  47. Replies
    10
    Views
    158

    @f.wberg What do you exactly mean by "let the...

    @f.wberg
    What do you exactly mean by "let the filter swing widely in upper cutoff regions"?

    Again assuming you use AudioFilterStateVariable, if you want to "swing" the frequency above or past...
  48. Replies
    10
    Views
    158

    You could use the amplitude member function from...

    You could use the amplitude member function from the AudioSynthWaveform class, assuming this is the class you use for your lfo.
  49. No need for a level converter. Just connect the...

    No need for a level converter. Just connect the pullups to 3.3V and you're good to go.
  50. Replies
    8
    Views
    531

    @quarterturn A while back I posted an example on...

    @quarterturn
    A while back I posted an example on how to use arrays of audiolib objects,...
Results 1 to 50 of 136
Page 1 of 3 1 2 3