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

Search:

Type: Posts; User: Hitachii

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    114

    Okay, now I see where the confusion was! The 24...

    Okay, now I see where the confusion was! The 24 steps in my code are meant to represent 24 parts per quarter note. I should have mentioned that before, whoops! My intention is that the LEDs advance a...
  2. Replies
    4
    Views
    114

    Attempting to make an internal bpm/clock

    Hello,

    I'm attempting to make a sequencer with the bpm determined by the value of an encoder. Currently, the encoder is constrained to the values of 0 - 127, making a theoretical maximum 127 bpm....
  3. Comment #19 from this thread ...

    Comment #19 from this thread was the answer that I needed. As the person said, it was as simple as removing the word "override" from EncoderButton.h. This is by far the best encoder code that I've...
  4. Thanks for going through the trouble to do that,...

    Thanks for going through the trouble to do that, Luni! I've installed the library, but the code is not compiling, and is giving me this error:


    In file included from...
  5. :D Forgive me, time is not real at the moment. If...

    :D Forgive me, time is not real at the moment. If it means anything, I did change the 'byte' part in the larger controller code, but referred back to this one since the code was mostly the same....
  6. Cheap quadrature encoder jumps values greatly when turned quickly

    Using only one knob from the "TwoKnobs Encoder Test" from the PJRC encoder library to read a cheap quadrature encoder that I picked up. Got help on this forum a few months ago to constrain the value...
  7. Amazing, that did it! Thank you. Would you mind...

    Amazing, that did it! Thank you. Would you mind telling me why I should not use byte? I've been using it due to someone's suggestion that I should declare my hardware variables as a byte because I'm...
  8. Rotary encoder: Increment by 1 per 'click' while constraining values 0 - 127

    Using the example in the PJRC encoder library, I'm trying to constrain my encoder values between 0 - 127. There's conflict between how the encoder wants to increment and how the counter acts. Using...
  9. Replies
    3
    Views
    207

    Interesting development, the FRAM library has two...

    Interesting development, the FRAM library has two example codes. The one I've been using reads the first 256 addresses, while the second one (posted below) does the same thing but reads all of the...
  10. Replies
    3
    Views
    207

    It appears to have worked, thanks Paul. Only now...

    It appears to have worked, thanks Paul. Only now I'm having another issue related to FRAM but not i2c. Can start a new thread if needed.

    When testing on the Uno, I get the following reading,...
  11. Replies
    3
    Views
    207

    Only SCL and SDA pins 18 and 19 work

    Trying to install an FRAM breakout board onto a 4.1. Running the test code in the Adafruit FRAM library linked below, the program returns a successful read when attached to pins 18 and 19. However,...
  12. Thank you very much. Thank you for the link, it...

    Thank you very much. Thank you for the link, it couldn't be any more direct than this snippet from the USBmidi page.


    // select 74HC4051 channel 5 (of 0 to 7)
    digitalWrite(1, HIGH);
    ...
  13. That's very helpful, thank you. Looks like I'll...

    That's very helpful, thank you. Looks like I'll have to get creative with loading values from EEPROM since only 12 of my 20 parameters seem to send MIDI messages when the 'load' button is hit. It's...
  14. Thanks again. Is there a better method than using...

    Thanks again. Is there a better method than using a delay the way that I have? Your explanation might explain other problems I'm having sending MIDI too.
  15. Wacky MIDI readings from a 4067 multiplexer, until a delay is applied.

    Hello,

    Currently using an HP4067 on a breakout board with 16 pots connected to a 4.1, sending MIDI over serial UART to another device, which allows me to see the MIDI readings on the computer.
    ...
  16. Honestly, because I don't know how very many...

    Honestly, because I don't know how very many different commands work yet. If the option you're presenting uses less ram than a similar code using the method you've described, I wouldn't be opposed to...
  17. Found out what was wrong. In order for it to...

    Found out what was wrong. In order for it to work, the 'load' command had to be triggered by an 'if(buttonPressed != lastButtonPressed)...' On top of that, you're absolutely right, now that I've...
  18. I've introduced the EEPROM to the code, which...

    I've introduced the EEPROM to the code, which works great. However, now that I have the analogRead in there as well, the "potVal" (which will eventually become the MIDI CC value) will 'snap' back to...
  19. This is it! Oh my goodness, how perfect! Thank...

    This is it! Oh my goodness, how perfect! Thank you thank you.

    Being a noob, I was unaware that commands could be entered from the serial monitor. Out of curiosity, what is the utility in the baud...
  20. Darnit. Stuck again on the final part of this....

    Darnit. Stuck again on the final part of this. You'll see from my code that I'm in the ballpark of what I'm trying to achieve (explained below), but the logic has to be a bit different. I will take a...
  21. Incredible. Thank you! I had to move the delay in...

    Incredible. Thank you! I had to move the delay in my code down between the bottom two end curly brackets to make it work. Easy peasy. Still very very new to this :D. Love the people here.
  22. Whoops, just saw the rule about posting complete...

    Whoops, just saw the rule about posting complete source code. Here it is:


    #include <EEPROM.h>

    const int buttonPin1 = 2;
    const int buttonPin2 = 3;

    int potPin[] = {A0, A1, A2};...
  23. Basic question about returning to original array value

    Hello. I have an array of 3 values (10, 11, 12), that when I press a momentary button advances to (13, 14, 15) advancing each number by 3 with every button press. I would like the limit of my up...
  24. Replies
    13
    Views
    1,088

    Question about a hardware solution to this, would...

    Question about a hardware solution to this, would it do any harm to the board if I were to attach a toggle to the 5v pin to reset it? Perhaps even a push-button?
  25. Need help making Trellis send MIDI on/off messages

    Hello,

    I want to send MIDI on/off messages with the Trellis. According to those on the internet, it's super easy. I'm finding it hard. The code I'm using is the Trellis Test that comes in the...
  26. Teensy 4.1: Do I need to use a knife to sever a circuit for simultaneous power/usb?

    Hello,
    I've seen that the other teensy boards need to be cut in a certain place using an xacto knife in order to power the board and use USB at the same time. Is this the case for the Teensy 4.1,...
  27. I have realized the issue, and it is my na´vetÚ. ...

    I have realized the issue, and it is my na´vetÚ.

    Somewhere in the middle of my original interaction with the person using the expander, they mentioned that they were using the MCP3208, which is...
  28. Wonderful, thank you for your input, all. If this...

    Wonderful, thank you for your input, all. If this means anything, I'm building a midi controller for the Axoloti, which is essentially a synthesizer/music-ready microcontroller with its own software....
  29. Oh I get it, because you would want to convert it...

    Oh I get it, because you would want to convert it to digital *before* the mcp23017. That makes more sense. I had thought that the chip could read analog signal. Thank you.
  30. Would I need an ADC if using pots with a i2c GPIO expander?

    Hello,

    I'm looking to attach 16 10k pots to an MCP23017 i2c GPIO expander, and connect that to a Teensy 4.1. The i2c ports on the 4.1 are on the same pins as the analog pins.

    Would the i2c...
  31. Hooking up a Teensy 4.1 to an Axoloti board. I have never worked with electronics.

    Hello!

    Some context: I recently discovered the incredibly versatile Axoloti board for music making. I'm obsessed with the possibilities available to me now. I was inspired after seeing peoples'...
Results 1 to 31 of 31