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

    eeprom questions teensy 3.6

    hi,

    i am porting some code from arduino micro to teensy 3.6 and i use the eeprom library to store/recall some configuration and calibration data.

    my understanding is that the teensy 3.6 has an...
  2. thanks for your answer! let me explain: -i...

    thanks for your answer!

    let me explain:

    -i need to worry about serial speed, because USB-Midi is much faster than serial midi, that is the whole point of the project :-)
    i am connecting two...
  3. teensy LC MIDI usb to serial and serial to usb... freeze.

    hi there,

    i have two teensy LC boards connected TX to RX pin and GND. one teensy receives MIDI from usb and sends it out the serial port and the other receives from serial and sends back out to...
  4. Replies
    6
    Views
    389

    ok, bought two teensy lc boards, set up a simple...

    ok, bought two teensy lc boards, set up a simple usb midi to serial midi sketch on one, and the opposite on the other, boosted MIDI (Serial) Baudrate to 1000000 and it works nice and fast! so cool...
  5. Replies
    6
    Views
    389

    Hmm, I just had another thought. What about...

    Hmm, I just had another thought. What about inter-connecting two teensies via serial and send USB midi from one to the other via serial and back out the other teensies usb? The teensy serial midi...
  6. Replies
    6
    Views
    389

    Nice! I am fine with a teensy 3.6... is there any...

    Nice! I am fine with a teensy 3.6... is there any chance you (or somebody else) would add usb midi on the second port? Would that be much work? I think this is over my head, but might give it a try...
  7. Replies
    6
    Views
    389

    Two usb client ports

    Is there any Version of a teensy that allows to have two usb client connectors? I am trying to send midi from a host to a host.
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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?
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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
  19. 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...
  20. 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...
  21. 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...
  22. Replies
    1
    Views
    1,222

    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...
  23. 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...
  24. 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 ...
  25. 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?
  26. Replies
    2
    Views
    356

    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...
  27. Replies
    2
    Views
    356

    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,...
  28. Replies
    2
    Views
    356

    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...
  29. 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...
  30. 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...
  31. 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 :-)
  32. 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:

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

    any other way to search for the teensy4 at startup?
  34. 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...
  35. 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 &&...
  36. 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...
  37. 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...
  38. 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...
  39. Replies
    0
    Views
    244

    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...
  40. Replies
    3
    Views
    410

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

    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...
  42. Replies
    2
    Views
    283

    "buttons" reading by nfc or similar

    so,

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

    by lokki
    Replies
    4
    Views
    435

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

    by lokki
    Replies
    4
    Views
    435

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

    by lokki
    Replies
    4
    Views
    435

    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...
  48. Replies
    2
    Views
    314

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