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

Search:

Type: Posts; User: lokki

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. and it works... amazing and thanks for chiming in...

    and it works... amazing and thanks for chiming in @KurtE

    if somebody can shed some light on latency issues that would be very welcome. i guess the bigger buffer should not introduce more latency...
  2. this is what i get with debug enabled, which...

    this is what i get with debug enabled, which seems to indicate you are on the right track :-) (sorry for the strange device names, it was an attempt to get it working)


    sizeof Device = 36
    sizeof...
  3. ok, the cores file of the "slave midi" teensy 4.0...

    ok, the cores file of the "slave midi" teensy 4.0 or the teensy 3.6 that is the host? sorry i am new to this :-)
  4. hmm, yes it definitely works from PC, i also...

    hmm, yes it definitely works from PC, i also tried with:

    an arduino uno setup as usb-midi controller. this also does not spit out a serial number but with:

    ...
  5. any other way to search for the teensy4 at...

    any other way to search for the teensy4 at startup?
  6. ok, got another problem. i have a teensy 4...

    ok, got another problem.

    i have a teensy 4 midi foot controller that works fine connected to a pc. i want to connect this to the teensy 3.6. host/hub i wrote about above. unfortunately my setup...
  7. perfect, that works! hmm, did not know that...

    perfect, that works! hmm, did not know that function :-)

    here is the working code for reference:


    for (int i=0; i<7; i++) {
    if (midilist[i]->manufacturer() != NULL &&...
  8. thanks, using: ...

    thanks,

    using:


    Serial.println((char*)midilist[i]->serialNumber());

    i now get consistent serial-numbers even if i plug in more devices etc. so it was really about storing to an int, which...
  9. ah i see... so midilist[i]->serialNumber();...

    ah i see... so
    midilist[i]->serialNumber(); returns a string, and that probably gets corrupted when saved to an int...

    is the serial nr string fixed length? or how can i check against known...
  10. usb host on teensy 3.6 midi devices serial Numbers inconsistent.

    hi,
    i have several usb-midi devices connected via a hub to a teensy 3.6 host port. all is working great communication wise, i can send messages to all devices.
    to distinguish devices i used the...
  11. Replies
    0
    Views
    120

    teensy 3.6. a4 and a5 with i2c

    hi there,

    if i have an i2c display attached to SCL0 and SDA0 on the alternative pins 7 and 8, how do i free up A4 and A5 for analog readings? currently they are somehow not getting correct...
  12. Replies
    3
    Views
    265

    analogRead() question

    hi there,

    i need a 12-bit resolution for some of my analog measurements in a project, so i change the resolution in setup() like so:

    analogReadResolution(12);

    other parts of the code need...
  13. Replies
    2
    Views
    167

    thanks for the slip-ring suggestion! that was...

    thanks for the slip-ring suggestion! that was what i meant with circular rail :-) didn't know they call those slip rings.

    will search for one that could fit my setup or maybe i can diy something...
  14. Replies
    2
    Views
    167

    "buttons" reading by nfc or similar

    so,

    i have a jogwheel (65mm diameter) attached to this:...
  15. hi there. thanks for the suggestions. i ended up...

    hi there. thanks for the suggestions. i ended up buying one of those: https://de.aliexpress.com/item/4000045505216.html?spm=a2g0s.9042311.0.0.6cae4c4d7dRIyk

    not exactly cheap, but it works great...
  16. absolute position from a turning wheel, part question

    for a project i need to get absolute position from a circular motion (a wheel i turn with my hand, about 4-6cm in diameter).
    on reading up i think i need a hall throttle, right? are there other...
  17. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    232

    ok, i have this code now (i know a sine not a...

    ok, i have this code now (i know a sine not a square), which works (at audio rate for now, not lfo) but i get a lot of "digital" (aliasing like) noise (more then i am used to from pwm). i guess that...
  18. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    232

    thanks for your answer. i will try the...

    thanks for your answer. i will try the IntervalTimer route. as the timing with IntervalTimer seems very flexible, i can see two ways to accomplish a given frequency:
    -adjust the phase accumulation...
  19. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    232

    lfo pmw out

    hi,

    what is the best option to output a variable waveform for an lfo (i.e. square with pwm, sine, triangle) via an analog out (pwm), the frequency would be given by a tap-tempo.

    on arduino i...
  20. Replies
    2
    Views
    184

    reuse of unused RX pins

    hi there,

    i need several MIDI outputs for a controller (4 for a start) but no inputs. since i am a bit low on digital pins, can i reuse the RX pins of the respective Serial lines for other things?...
  21. thanks for that as well. i found a...

    thanks for that as well. i found a i2c_driver_wire implementation for teensy 4 which acts as a drop-in replacement for wire.h, with that and a couple of changes to the u8g2lib it works!!! (change...
  22. thanks for your answer... unfortunately 3 out of...

    thanks for your answer... unfortunately 3 out of 4 displays use the sh1106 chip, which does not seem to be supported by this lib. i have found an adaption somewhere will check that as well. who is...
  23. four OLED displays with 2 i2c ports and u8g2lib

    hi there,

    i would like to have four small 128x64 OLED displays connected to my teensy 4.0 i was hoping to use i2c port 0 and 1 for that. since these cheap OLED displays can only change address...
  24. Replies
    11
    Views
    468

    ok, so what is the best way to interface with one...

    ok, so what is the best way to interface with one of those 128x64 5v OLED displays on a teensy 4? level shifter? voltage divider?
  25. Replies
    22
    Views
    527

    ok, some soldering time later. and i am out of...

    ok, some soldering time later. and i am out of ideas.

    first of all let me "apologise" @jwatte, of course i used the term ground wrongly. this comes in part from my guitar and bass fx soldering...
  26. Replies
    22
    Views
    527

    ok. i rerun your testcode again with the probe...

    ok. i rerun your testcode again with the probe ground connected to teensy ground and it does not quite work. whenever i disconnect/reconnect the oscilloscope ground it sees a couple of keys low and...
  27. Replies
    22
    Views
    527

    yeah, your sketch works perfectly. i am...

    yeah, your sketch works perfectly. i am scratching my head though. since i program the teensy from my macbook, i have no external power connected to it, so my macbook serves as the only ground...
  28. Replies
    22
    Views
    527

    thanks @Loren42 for your answer, and you are...

    thanks @Loren42 for your answer, and you are right maybe it is better to write my own code for the scanning and have full control over it.

    my debounce implementation for any "musical/midi"...
  29. Replies
    22
    Views
    527

    thanks for the library check, could have done...

    thanks for the library check, could have done that myself actually. from looking at the library the debounce is really the most simple approach, just only scan every x milliseconds. this is of course...
  30. Replies
    22
    Views
    527

    hmm, no that does not help too much. i put up to...

    hmm, no that does not help too much. i put up to a delayMicroseconds(8000); in there and it still triggers wrongly on some keys. there is a slight improvement though (some keys that were firing 3...
  31. Replies
    22
    Views
    527

    yes, will try it and report back. any ideas why...

    yes, will try it and report back. any ideas why it works with an oscilloscope attached?
  32. Replies
    22
    Views
    527

    yes i put a delayMicroseconds(200) at the end of...

    yes i put a delayMicroseconds(200) at the end of the loop, it made no difference. still false button triggering...
  33. Replies
    22
    Views
    527

    ok, now we are getting somewhere :-) i am at...

    ok, now we are getting somewhere :-)

    i am at my bench, and the oscilloscope is connected to the keypad row 1 (which has some problematic keys). the crocodile clamp goes to ground. whenever the...
  34. Replies
    22
    Views
    527

    hi there, further testing. and it gets more...

    hi there, further testing. and it gets more fishy...

    if i run this code:


    /* @file MultiKey.ino
    || @version 1.0
    || @author Mark Stanley
    || @contact mstanley@technologist.com
    ||
  35. Replies
    22
    Views
    527

    ok, the MyKeypad trick did not help, still the...

    ok, the MyKeypad trick did not help, still the same issue. i used it like this, correct?


    /* @file EventSerialKeypad.pde
    || @version 1.0
    || @author Alexander Brevig
    || @contact...
  36. Replies
    22
    Views
    527

    coming back to this! thanks for the code. it only...

    coming back to this! thanks for the code. it only needed very little adjustment to make it work (setting a baud rate vor Serial.begin();) just in case you want to change your post to reflect that.
    ...
  37. Replies
    22
    Views
    527

    thanks for your answer! the code is actually...

    thanks for your answer!

    the code is actually from the examples library, i just adjusted the necessary stuff hence still 4 and 3 in there. but yeah pretty useless/obvious as is :-)

    i shortened...
  38. Replies
    22
    Views
    527

    key matrix 56 keys, no diodes on teensy 4.0

    hi there i have a key matrix setup for a midi foot controller i am working on. it consists of 56 buttons (keys) arranged in a 8x7 matrix.

    this is my test code:


    /* @file EventSerialKeypad.pde...
  39. Replies
    2
    Views
    162

    excellent. i want to read two sensors that need...

    excellent. i want to read two sensors that need more speed then midi and also more resolution. do you think serial communication down the usb-line will be fast enough? (the sensor is an accelerometer...
  40. Replies
    2
    Views
    162

    usb host multiple "protocols" via HUB

    is it possible to use multiple "protocols" via the usb-host port?

    in my case i am wondering if i can send usb-midi down the first 6 usb-connections and use something like usb-serial to be received...
  41. Replies
    0
    Views
    129

    usb host midi sending latency

    for a midi controller i am designing, i would like to take a different approach and have a usb hub connected. all attached synths will then be usb-clients. is there latency expected, because usb midi...
  42. usb host message when new client is attached

    hi there, is there a way to have some code run only when a new usb client is attached to the host port (hub)? i would like to read out the serialnumber of a newly attached device (found the function...
  43. Replies
    0
    Views
    102

    sendNow() for usb-host MIDI

    is there any equivalent for the sendNow() function for usb-host-midi? or another way to make sure the midi data arrives as fast as possible at the client?
  44. Replies
    6
    Views
    264

    from the USB Host 3.6 keywords.txt: # Common...

    from the USB Host 3.6 keywords.txt:


    # Common Functions
    Task KEYWORD2
    idVendor KEYWORD2
    idProduct KEYWORD2
    manufacturer KEYWORD2
    product KEYWORD2
    serialNumber KEYWORD2
  45. Replies
    6
    Views
    264

    so... this: // Create the Serial MIDI...

    so...

    this:


    // Create the Serial MIDI ports
    MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI1);

    is only in there from the example and is used for hardware serial midi din connections....
  46. Replies
    6
    Views
    264

    like so? &midi01->sendNoteOn(data1, data2,...

    like so?


    &midi01->sendNoteOn(data1, data2, channel);
    &midi02->sendNoteOn(data1, data2, channel);

    this does not compile and neither does this:
  47. Replies
    6
    Views
    264

    usb-host and hub question

    hi there, for testing i adapted the 16x16 midi example to send a simple note-on and note-off to my usb clients.
    this works as it is below, BUT i cannot choose on which ports the midi messages...
  48. Replies
    3
    Views
    152

    follow up question: if i send midi data from...

    follow up question:

    if i send midi data from the teensy via host-port to a device connected to the hub (all working, yes!) what is the recommended way to make this as fast as possible?

    for...
  49. Replies
    3
    Views
    152

    thanks, will do that!

    thanks, will do that!
  50. Replies
    3
    Views
    152

    teensy 3.6 power from usb-hub

    hi there,

    i have a teensy 3.6 and a usb-hub that supports MMT: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ that i want to use for a usb-midi application.

    the uugear hub...
Results 1 to 50 of 66
Page 1 of 2 1 2