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

Search:

Type: Posts; User: mlu

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    82

    A dead zone in the middle could help. First of...

    A dead zone in the middle could help.

    First of all measure the adc reading with joystick centered, my experience is that this will be close to 511 (for 10 bits) but not equal.
    Save this value as...
  2. Replies
    6
    Views
    118

    In the loop you set the SoftPWM to the input pins...

    In the loop you set the SoftPWM to the input pins and not the output pins. Will not give any light effects and most likely confuse the inputs also.
  3. Replies
    12
    Views
    202

    Since the Teensy Loader can talk to the board USB...

    Since the Teensy Loader can talk to the board USB must be working, and the SerialUSB should also work if properly configured.
    So look for fried code and perhaps other hw connections that might upset...
  4. Thread: Loud Buzzing Crash

    by mlu
    Replies
    8
    Views
    219

    Perhaps the sound file should be closed before...

    Perhaps the sound file should be closed before calling playSdWav1.play(combined), it is opened again in this function.
  5. Replies
    4
    Views
    181

    Looks nice, could be very useful when moving from...

    Looks nice, could be very useful when moving from protoboard to more permanent installations
  6. Replies
    6
    Views
    178

    To know where the problem occurs, count the...

    To know where the problem occurs, count the number of received characters on the Teensy side, connect a serial adapter or another Teensy to the HW serialport to receive debug/status information.
  7. Thread: Loud Buzzing Crash

    by mlu
    Replies
    8
    Views
    219

    Does the application crash or is it just a...

    Does the application crash or is it just a 'crashing' sound ?
    Is the crash momentary or continous ?
    Does the sound return to normal when the effect is finished playing ?
    Does the issue depend on...
  8. Strange, I took your sketch, added the...

    Strange,

    I took your sketch, added the Encoder library after installing it, checking version Encoder by Paul Stoffregen v 1.4.2.

    Hooked up a cheap encoder on a breakout board with 10K pullup...
  9. Replies
    3
    Views
    158

    Think about both buffer size and bandwidth, and...

    Think about both buffer size and bandwidth, and the delay introduced, for every link in your chain of communications.

    fill serial out buffer->transmit to BT modem-> BT transmision to receiver -> ...
  10. A very simple measure is number of loops per...

    A very simple measure is number of loops per second with your code active as a fraction of number of loops per second for an (almost) empty sketch.
  11. Replies
    6
    Views
    108

    So the audio interface drivers has the multi...

    So the audio interface drivers has the multi client capability mentioned by MatrixRat, the UNO shield gives a single MIDI connection with up to 16 channels, just as the standard Teensy USB MIDI (not...
  12. Replies
    6
    Views
    108

    The DIN from Arduino UNO must connect to some...

    The DIN from Arduino UNO must connect to some MIDI interface connected to the PC ?
    And this has some hardware/software driver layer ?
  13. Did you cut the connection between vusb and vin ?

    Did you cut the connection between vusb and vin ?
  14. Why not try serialUSB ?

    Why not try serialUSB ?
  15. If you have a number of automations sending...

    If you have a number of automations sending conflicting CC values within 10ms then there is a problem with the Ableton setup, and what value this controller really has, and the rest should be...
  16. Without seeing the code we are talking about, its...

    Without seeing the code we are talking about, its hard to give precise help, but filtering CC messages is not hard.

    Keep an array "byte CC_value[chn][CC]", then when receiving a message...
  17. Replies
    16
    Views
    454

    So this is not criticising anyone, just an...

    So this is not criticising anyone, just an attempt at finding the bases, and starting at the OP invitation to discussion. I have myself transitioned between developed environments and paradigms so I...
  18. Replies
    9
    Views
    276

    So 5 ns max error after 1 ms is 5 ppm error, and...

    So 5 ns max error after 1 ms is 5 ppm error, and 5 ns after 1s is 5 ppb. The crystal on the Teensy has a 15ppm specification. If you measure the crystal speed with a high resolution time reference...
  19. Replies
    5
    Views
    116

    sloppy of me, corrected :(

    sloppy of me, corrected :(
  20. Replies
    5
    Views
    116

    Voice1Frequency = 8.175 *...

    Voice1Frequency = 8.175 * powf(1.059463,57+pitchbend/8192.0)
    Voice2Frequency = 8.175 * powf(1.059463,67+pitchbend/8192.0)
    Voice2Frequency = 8.175 * powf(1.059463,72+pitchbend/8192.0)
    ...
  21. In text format 13 bit unsigned values are 0 to...

    In text format 13 bit unsigned values are 0 to 8192 so max four characters plus the ',' separator, so max 5 and min 2 characters per sample. Lets say 3 on average.

    Anyway if the python in buffer...
  22. Normally shield should be grounded at one end. ...

    Normally shield should be grounded at one end.

    Another option is to use current signalling, like MIDI.

    Button closure send a 5mA current through an optoisolator, this should be much more...
  23. Replies
    4
    Views
    293

    The IDE 2.0 is rather nice, feel fast and easy to...

    The IDE 2.0 is rather nice, feel fast and easy to work with, but there are quite a bit of raw edges.

    The port selection is forgotten when USB serial is down for reload/reboot, easy to reselect...
  24. Thread: 3.2 Dead? (Newbie)

    by mlu
    Replies
    10
    Views
    319

    Several things, its good with a proper connection...

    Several things, its good with a proper connection from the VIN pin to the VUSB pin, having a two pin header that can be bridged with one of those little caps is very helpful when debugging problems,...
  25. Remember that integers are saved in little endian...

    Remember that integers are saved in little endian , least significant byte first.

    This is what I get, Teensy 3.0


    union outputLora data;
    data.timepacketdata.startorfinish = 255;...
  26. Looks good :), yes the USB serial runs at...

    Looks good :),

    yes the USB serial runs at full USB if the sender and reader can handle this, I routinely sets the baurates at 115200. What is the effective transfer rate, in bytes/s or samples/s,...
  27. the input voltage range for digital pins is 0 to...

    the input voltage range for digital pins is 0 to 3.3 V

    100mV pp vill not trigger as high level, also make sure to keep voltage above 0V, and below 3.3V
  28. Replies
    4
    Views
    193

    3.3V/250 ohm = 13.2 mA, its like a couple of...

    3.3V/250 ohm = 13.2 mA, its like a couple of leds, so should not hurt, but why waste power.
  29. Sending the values in text form is a bit slower...

    Sending the values in text form is a bit slower and uses a bit more bandwidth, but it is MUCH easier to handle and to monitor and debug any issues. The Serial over USB from T 3.6 to PC is real fast....
  30. Replies
    12
    Views
    253

    I tried the code from original post on a 3.0 and...

    I tried the code from original post on a 3.0 and a 3.6.


    if (TempString != NULL) refuses to compile, so I replaced it with
    if (TempString != "")

    then I sprinkled the code with some writes,...
  31. Replies
    12
    Views
    253

    first yes, but no assurance of a complete...

    first yes, but no assurance of a complete message, can you post the code with hard coded SerialLine values.
  32. Replies
    12
    Views
    253

    I think its a read timing problem, the void...

    I think its a read timing problem, the void MySerialReader () only reads what is currently in the serial buffer, and if this is not a compete message it is fed to strtok and then discarded. You...
  33. Replies
    139
    Views
    3,332

    This might be a coincidence, but 1786ms is quite...

    This might be a coincidence, but 1786ms is quite close to 2^30 processor clock cycles at 600MHz, or 2^28 timer ticks at 150Mhz. Just a wild hunch ... a missed timer somewhere.
  34. Replies
    6
    Views
    205

    The code checks if cycle_start pin is HIGH and...

    The code checks if cycle_start pin is HIGH and calls cycleStart() that sets the output pins and led high.

    You need to check when the cycle_start pin goes low to turn off the leds, or use a timer...
  35. Replies
    14
    Views
    497

    In UP mode you always turns relays off before...

    In UP mode you always turns relays off before setting them to correct value, that will cause spikes


    if(num > PrvNum){
    Serial.println("UP");
    PrvNum = num;
    for (int i =...
  36. Replies
    6
    Views
    205

    This is slightly confusing exactly how are the...

    This is slightly confusing exactly how are the Teensy, Nextion and optocouplers connected ? Which pin is input from Nextion, and which is the corresponding output from Teensy ?
  37. Replies
    6
    Views
    293

    You have 16 leds in the matrix and 24 steps per...

    You have 16 leds in the matrix and 24 steps per beat, that makes it a bit tricky to count the beats, every beat is 24=6*4 steps that is one and a half full matrix of steps.

    Also the lastTime...
  38. Replies
    2
    Views
    112

    Time libraries are supposed to be able to handle...

    Time libraries are supposed to be able to handle times before 1970, so the times can be represented as negative numbers.

    If you are sure that your use of time is after 1970 you can...
  39. All interesting but the OP problem was USBMIDI is...

    All interesting but the OP problem was USBMIDI is to fast for i2c, and yes what I felt was USB MIDI client
  40. Perhaps filter the incoming midi data, keep the...

    Perhaps filter the incoming midi data, keep the latest master values of controllers and only update changes to the slave every ... say 1 ms or send as often as the i2c can handle dependent on how...
  41. Replies
    7
    Views
    340

    You will not do any ISR based timing at more than...

    You will not do any ISR based timing at more than a fraction of the processor clock divided by ( ISR setup cycles + ISR execute cycles + ISR return cycles). This might be fast compared to audio...
  42. Replies
    8
    Views
    340

    Looks like binary data is received and not...

    Looks like binary data is received and not converted to printable form ... but

    How can anyone help without knowing anything about the code you are actually running, or what dta you are supposedly...
  43. Its a queue with maximal size equal to sample...

    Its a queue with maximal size equal to sample window, so a ring buffer should work fine. My guess is that on average the length should be something like 2log(N), if the values are a bit randomly...
  44. The key to understanding the algorithm are the...

    The key to understanding the algorithm are the following properties of the list L of (sample volume, sample index) pairs

    * L is always sorted by increasing sample index/sample time since we only...
  45. Replies
    4
    Views
    244

    Serial.peek() ?? Sorry that's the first, you...

    Serial.peek() ??

    Sorry that's the first, you probably have to read them as they come in to a buffer and process the when them end markers arrive
  46. I assume you want the data in descriptions array...

    I assume you want the data in descriptions array to be in binary format, in that case they must be prefixed with 0b like


    0b0000011100000111,


    Your program only outputs the data once in the...
  47. Not necessarily, your frame rate calculation is...

    Not necessarily, your frame rate calculation is just valid for the image transmission, but the sensor array has a minimum exposure time in order to create a useful image, that would be the frame time...
  48. Do I get the picture right, the camera is above...

    Do I get the picture right, the camera is above the hammers, is this a standing piano so the camera sees the edge of the hammers, or is like a grand piano so the camera sees the top/back of the...
  49. Here is a ring buffer variant to test also ...

    Here is a ring buffer variant to test also



    /* Control a set of solenoids with MIDI
    * Note on messages trigger solenoids, and they will be turned off after a certain amount of ms has passed
    ...
  50. Its not my project, but I agree that this a could...

    Its not my project, but I agree that this a could be a good way to handle something like 100 solenoids, a number to big for the Teensy pincounts. In this case there would be a solenoid array, or...
Results 1 to 50 of 394
Page 1 of 8 1 2 3 4