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

Search:

Type: Posts; User: oddson

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    2,935

    Paul is saying DAC pins are not meant to drive...

    Paul is saying DAC pins are not meant to drive any real load, i.e. small resistance value... 32, 8, 4 ohm are all way to low but they are not all the same.
  2. Have you got a gut shot of the controls? How...

    Have you got a gut shot of the controls?

    How they're soldered will tell if you are only using the case.

    If so it could be done with just the Teensy and very careful wiring.
  3. Are you're sure it's toast... A T3.5 should...

    Are you're sure it's toast...

    A T3.5 should hit the 22 analog signals I see without needing expanders or multiplexers... I think you are one shy for getting them all from the easy edges.

    Do...
  4. That was the problem... your code was pretending...

    That was the problem... your code was pretending that the bits were meaningful.

    ResponsiveAnalogRead has settings for resolution and other control factors that will help you get as good a signal...
  5. No… I guess you don't if you enable the pin...

    No… I guess you don't if you enable the pin that's reading the mux with an internal pullup.

    (Note you need to connect the switch to pull to ground instead of to 3.3v if you want to skip a...
  6. ...non-qualified personnel answer: The data...

    ...non-qualified personnel answer:

    The data sheet shows LEDs without current limiting resistors in the 'typical application' schematic.

    The pot setup is OK but you might want to consider a...
  7. You are trying to fire off two MIDI messages on...

    You are trying to fire off two MIDI messages on every loop and you will eventually crash the event que on the receiving machine (at least if its Windows and I believe Mac too).

    The serial calls...
  8. Btw... This is an ancient thread and you don't...

    Btw... This is an ancient thread and you don't seem to be asking about CV for modular synths which I take to be the original topic.

    But six buttons should be fairly simple.

    A DIN output is...
  9. That post covers how to initialize the bounce and...

    That post covers how to initialize the bounce and ResponsiveAnalogRead object. It's multiplex code uses a delay immediately after setting the mux controls to give the signal time to stabilize after...
  10. You need separate bounce items because you will...

    You need separate bounce items because you will get different readings between each switch and you would mistake those for a bouncing switch....

    So you need multiple objects with the same pin...
  11. My engineer's hat is blue and white striped and...

    My engineer's hat is blue and white striped and has a brim and a puffy top.. choo woooo…

    But even I know the ground belongs on the sleeve (even if I don't know how to spell it).

    ...Re: on one...
  12. I could not find a semantic for it online and...

    I could not find a semantic for it online and mine is elsewhere but I recall the ground is the sleave in both.

    An ohm reading across the tip and sleave while you move the pedal will tell you if ts...
  13. Sundry observations... not an EE and prone to...

    Sundry observations... not an EE and prone to blunders so I may have any number of things wrong here.

    The m audio issue is likely due to the wiring not being a simple cross of Vcc and GND. I...
  14. Until someone that understands the arcane details...

    Until someone that understands the arcane details posts the full answer; i believe it relates to the device name string, the vender ID and product ID settings.

    See "Customizing the MIDI Name" near...
  15. Replies
    31
    Views
    10,003

    Analog portamento is typically a lowpass filter...

    Analog portamento is typically a lowpass filter (with a very low cutoff) or slew limiter to retard the voltage shift on note changes.

    It can be done fairly easly in either digital or analog...
  16. just scanned this.... don't know why the...

    just scanned this.... don't know why the arithmetic didn't jump out.

    Edit.... was going to ask where F_BUS rates are listed but I get what Paul is saying now.
  17. Umm... if it's four times faster, why divide by...

    Umm... if it's four times faster, why divide by three?
  18. https://www.pjrc.com/teensy/td_libs_FreqMeasure.ht...

    https://www.pjrc.com/teensy/td_libs_FreqMeasure.html

    The raw value is the number of cpu clock cycles per signal period that must be converted to Hz.

    FreqMeasure.countToFrequency(count);
  19. The analog section of my original midi project ...

    The analog section of my original midi project uses a mostly usable moving deadband hysteresis system

    //************ANALOG SECTION**************
    void getAnalogData(){
    v0 = analogRead(0);
    ...
  20. If you leave the pot near a threshold between two...

    If you leave the pot near a threshold between two rounding points in the 12 bit data then even modest noise will cause alternation between two midi values.

    A better approach is to write the raw...
  21. Your variable names puzzle me, is it on A10 or...

    Your variable names puzzle me, is it on A10 or A1? Do you care in the code?

    Other than that it's passable MIDI code well written by my amature standards. You may occasionally find your code still...
  22. I'm not sure it's a bad idea;. I'm not qualified...

    I'm not sure it's a bad idea;. I'm not qualified to say either way.

    With a serial-register based IC I think you track the state of your leds with bit logic and write the full register at some...
  23. The HC version works at 3.3v I used this...

    The HC version works at 3.3v

    I used this breakout board https://www.sparkfun.com/products/9056

    I donít know if using the mux to control LEDs is the best solution... I think you could use an...
  24. I think that mux works fine at 3.3v but you can...

    I think that mux works fine at 3.3v but you can have a mux at 5v as long as you source your voltage dividers and switches with 3.3v.

    An analog mux treats the signals the same. So reading the...
  25. As the midi page notes: don't add capacitance as...

    As the midi page notes: don't add capacitance as it increases the time it takes to read a stable voltage. The same method shown on the midi page works with that mux by adding a forth select signal....
  26. ...Bury the headline?... this was news to me.

    ...Bury the headline?... this was news to me.
  27. Try the recieve using the example code from the...

    Try the recieve using the example code from the usb midi documentation page.https://www.pjrc.com/teensy/td_midi.html

    People with MIDI experience on Ardunio often try to use serial based code...
  28. I don't think you're going to get help on this...

    I don't think you're going to get help on this issue with this code at the tail end of a thread on DIN MIDI out problems.

    This code seems a bit unusual in how the octave feature works and how it...
  29. Replies
    7
    Views
    178

    Well the T3.5 is 5 volt tolerant (if you do have...

    Well the T3.5 is 5 volt tolerant (if you do have to use 5v sensors etc. this can be a big advantage).

    It has a lot of inputs (something like) 40 readily available from a breadboard through single...
  30. Replies
    7
    Views
    178

    Teensy is not just another Arduino especially if...

    Teensy is not just another Arduino especially if you are making a USB MIDI compliant device but it's good to know you're not a noob to coding.

    I'm always a bit skeptical when there is talk about...
  31. Replies
    7
    Views
    178

    1) Voltage - there is no pressing need for 5 volt...

    1) Voltage - there is no pressing need for 5 volt for MIDI. The old Teensy 2.0 are more than adequate for MIDI controllers and they work at 5 volt but the LC is cheaper and is the obvious choice...
  32. I think OP has all that sorted and wants to know...

    I think OP has all that sorted and wants to know how to animate the needle and draw a background image to the display... (I can't help with this)

    I did find this...
  33. Replies
    14
    Views
    287

    ...either an external ADC that accepts your range...

    ...either an external ADC that accepts your range or use an op amp gain and offset circuit and regular analog read....

    http://www.ti.com/lit/pdf/sloa097
  34. Replies
    19
    Views
    727

    Other than getting the index for the terminating...

    Other than getting the index for the terminating character wrong the code from post 11 worked and I got the ACK back from a Teensy 2.0.


    void onSysEx(byte *sysExBytes, unsigned int length){
    if...
  35. Replies
    19
    Views
    727

    I was playing with HTML today... didn't have a...

    I was playing with HTML today... didn't have a MIDI capable browser so I focused on building the string to paste into a MIDI utility... just leaving the WIP code here for further development.

    ...
  36. Replies
    87
    Views
    1,182

    You need a voice management system to steal the...

    You need a voice management system to steal the least objectionable running voice or the first available free one. (I don't know of any examples.)

    If you want to keep the built-in buttons and...
  37. Sorry... I can offer code for pots but not for...

    Sorry... I can offer code for pots but not for encoders.

    The voltage coming off a pot as a voltage divider is dead simple to use as proxy for the physical position of a pot.

    Encoders have lots...
  38. The code in this post could be merged with the...

    The code in this post could be merged with the standard features of my Many buttons and knobs example to provide the feature set you indicated you want.
    ...
  39. Replies
    3
    Views
    138

    100 kOhm is very high especially for mux'd pots....

    100 kOhm is very high especially for mux'd pots.

    It could also be insufficient settling time between setting and reading the mux.

    A cap on a mux'd pot is bad as it slows settling time.
    ...
  40. Good to know, but isn't either fast enough to...

    Good to know, but isn't either fast enough to record mono audio provided you are buffering enough data?

    For a data logging project is that fussy soldering or breakout boards really necessary? And...
  41. Replies
    19
    Views
    727

    I could build you a Flowstone based editor .exe...

    I could build you a Flowstone based editor .exe file that will work on any Windows machine like I made for my Footsy controller.... it's really easy especially as I can use mine as a template so I...
  42. Perhaps powering the second Teensy without...

    Perhaps powering the second Teensy without connecting it to the USB of the PC might get rid of it as it seems likely (to me anyway) that the compiler is finding the wrong Teensy connected after the...
  43. Do you need the audio library at all? Since...

    Do you need the audio library at all? Since you've started with the audio library, we can assume the frequency you're interested in is not too high. You could just take raw analog readings every...
  44. Replies
    19
    Views
    727

    It should be dead simple as a JavaScript goes....

    It should be dead simple as a JavaScript goes. You just need to assemble the editable bytes from object.value properties into a sequence and send it on the press of a button or other object that can...
  45. Apologies... yet again not reading carefully ...

    Apologies... yet again not reading carefully

    The controller should be fine and the library doesn't look difficult to use.

    Gibbedy's comments appear correct except the colour values are 12 bit...
  46. D'oh… didn't notice the colour comments... kinda...

    D'oh… didn't notice the colour comments... kinda undermines my comments on direct control.

    Unless you really just want to alternate, in which case you can use the same signal and source one and...
  47. You have a choice... you can figure out how to...

    You have a choice... you can figure out how to program that part for SPI control or you can figure out how to control LED load currents via transistor switches.

    No offence, but your programming...
  48. Replies
    19
    Views
    727

    //************LIBRARIES USED************** //...

    //************LIBRARIES USED**************
    // include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as contacts settle
    #include <Bounce.h>
    #include <EEPROM.h>
    //...
  49. Replies
    19
    Views
    727

    I was adding comments to your code and thought...

    I was adding comments to your code and thought I'd try to graft on SysEx preset config.

    I don't recommend you even trying to compile this yet but I think it's only a few typos and brain-farts...
  50. Replies
    50
    Views
    832

    //************LIBRARIES USED************** //...

    //************LIBRARIES USED**************
    // 'include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as contacts settle'
    #include <Bounce.h>
    //'usbMIDI.h library is...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4