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...
Type: Posts; User: Hitachii
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...
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....
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...
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...
: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....
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...
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...
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...
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...
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,...
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,...
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);
...
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...
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.
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.
...
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...
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...
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...
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...
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...
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.
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};...
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...
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?
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...
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,...
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...
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....
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.
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...
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'...