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. usb midi host to mac/linux laptop (also host)

    i was wondering if there is a way to configure a teensy board to act as a double usb client, so that i can connect two hosts. i guess it is not possible, but maybe i am wrong :) my application:

    i...
  2. i was able to find the teensy4 on the hub, i had...

    i was able to find the teensy4 on the hub, i had to use the USBSerial_BigBuffer userial() statement, which is part of the newest USBHost library (but not jet included in 1.53). just in case anyone...
  3. yes! i can confirm my teensy4 is now found with...

    yes! i can confirm my teensy4 is now found with the BigBuffer in place. i just replaced the USBHost library in my 1.53 install with the GitHub version. I can also confirm that serial communication...
  4. i may have found the problem... teensy4 needs the...

    i may have found the problem... teensy4 needs the
    USBSerial_BigBuffer userial(myusb); for serial communication as well, at least that is indicated on Github in the usbhost examples. my version of...
  5. no problem! any other insights? should the above...

    no problem! any other insights? should the above code be working i.e. should a serialnr. be printed to the teensy 3.6 console? do i need to set anything special on the teensy4 side?
  6. thanks, i am aware of that. i have the hub...

    thanks, i am aware of that.
    i have the hub nicely working on the teensy 3.6, all my synths and the teensy4 are connected to it. look at the code snippets above, they contain the hub portion and the...
  7. serial communication between two teensies via usb

    i have the following setup:

    -a teensy 3.6 with a 7 port usb hub
    -a teensy 4 (configured as midi + serial) connected to said hub
    -several usb-midi devices connected to said hub

    i have it...
  8. ok, since i will need this to be working rather...

    ok, since i will need this to be working rather soonish... i thought about using serial communication instead of midi to send data from teensy 3.6 to teensy 4. could this be a workaround for now? at...
  9. well, this was much simpler then i thought it...

    well, this was much simpler then i thought it would be.
    here are two simple programs that show the problem quite well. an ascending set of notes sent out to all ports on a hub and a teensy 4 with...
  10. yes, it happened on unmodified USB code, which is...

    yes, it happened on unmodified USB code, which is why i started to modify it :-)

    for starters i can just upload the whole code of the two boards, and as time permits i will work on smaller...
  11. i have no problems sending note on and other...

    i have no problems sending note on and other messages to connected midi devices. i am using teensyduino 1.53 and the usbhost library on a teensy 3.6
  12. actually setting the tx and rx buffer in...

    actually setting the tx and rx buffer in usb_desc.h is not a good idea :-) usb-midi communication is also messed up when connected to a macbook air, messages come in as wrong types or simply don't...
  13. sorry to resurrect this. so i got a strange...

    sorry to resurrect this.

    so i got a strange problem where my midi controller (a teensy 3.6 sending out via usb-host) becomes very sluggish as soon as i send midi to a connected teensy 4.0...
  14. actually i used a teensy 3.6 as host, and had a...

    actually i used a teensy 3.6 as host, and had a teensy 4.0 connected to one of the hubs ports. but a teensy 4 as host should also work. the library is really quite easy to use, my 2 small problems...
  15. Replies
    1
    Views
    226

    Midi Bass Controller

    hi, this is a project i have been working on for a long time...
    it mimics an electric bass appearance but is actually a midi controller, very playable and so much fun!
    yes, i am lefty...

    this...
  16. hi paul, hi KurtE thanks for your answer. i...

    hi paul, hi KurtE

    thanks for your answer.

    i have up to 7 usb-midi devices attached to my usb2 hub, only the teensy4 reports at usb2 speed and needs the bigger buffer. so it seemed like a waste...
  17. force small rx/tx buffer for usbmidi teensy 4

    is there a way to force a teensy 4 (declared as usb-midi device) to use the small buffer instead of the big (512) buffer? i read the data in on a teensy 3.6 (via usb-host port) and i have to use the ...
  18. looking at this from another angle, is there any...

    looking at this from another angle, is there any possibility at all to force the teensy 4 to use the small usb midi buffer even if a usb 2 port is available?
  19. Replies
    2
    Views
    142

    disregard my stupidity :-) it works flawlessly....

    disregard my stupidity :-) it works flawlessly. of course usb-midi (non host) has the same order, but since i tested with PureData i never noticed (the polytouch) object just has outputs and i...
  20. Replies
    2
    Views
    142

    a look at usb-host GitHub suggests the message...

    a look at usb-host GitHub suggests the message has swapped variable input...


    void sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable=0) {
    send(0xA0, note,...
  21. Replies
    2
    Views
    142

    midi poly pressure usb host issue

    hi there,

    when sending poly pressure out of a teensy 3.6 via usb-host port, it does not work properly.

    when i send the same data via usb-midi it works fine.

    sending poly pressure via...
  22. 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...
  23. 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...
  24. 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 :-)
  25. 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:

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

    any other way to search for the teensy4 at startup?
  27. 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...
  28. 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 &&...
  29. 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...
  30. 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...
  31. 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...
  32. Replies
    0
    Views
    164

    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...
  33. Replies
    3
    Views
    323

    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...
  34. Replies
    2
    Views
    220

    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...
  35. Replies
    2
    Views
    220

    "buttons" reading by nfc or similar

    so,

    i have a jogwheel (65mm diameter) attached to this:...
  36. 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...
  37. 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...
  38. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    325

    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...
  39. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    325

    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...
  40. Thread: lfo pmw out

    by lokki
    Replies
    4
    Views
    325

    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...
  41. Replies
    2
    Views
    239

    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?...
  42. 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...
  43. 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...
  44. 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...
  45. Replies
    11
    Views
    700

    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?
  46. Replies
    22
    Views
    782

    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...
  47. Replies
    22
    Views
    782

    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...
  48. Replies
    22
    Views
    782

    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...
  49. Replies
    22
    Views
    782

    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"...
  50. Replies
    22
    Views
    782

    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...
Results 1 to 50 of 88
Page 1 of 2 1 2