Replies: 2 comments 7 replies
-
The value 48 comes from the output of |
Beta Was this translation helpful? Give feedback.
7 replies
-
To remove the internal pull up resistors on a Uno's I2C lines use the following:-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to troubleshoot this for quite a while and am about at my wits' end, so thank you in advance to any help you can give!
I'm trying to create a small interface of sorts to communicate to and from VCV Rack software to my physical modular synth. I'm attempting to do so via an MCP4728 4-channel DAC and an ADS1115 4-channel ADC. I have both of them hooked up to the SCL/SDA pins on my Arduino Uno and they are using different addresses, and the chips seem to operate as one would expect.
I have a simple LFO set up in VCV Rack and am outputting that via a CV->MIDI CC module to test with. I'm then running serialmidi.py to create the serial-to-MIDI bridge.
When I run the following code with
readADC();
inloop()
commented out, I can see the MIDI values (via MIDI Monitor, monitoring channel 5 which I've set up as kind of a reflector) incrementing appropriately, and the correct voltage is output from the DAC (per my multimeter.)However, when I run the code as written, it works okay for about 15 seconds or so and then I start seeing
48
as my MIDI value every other or every few messages in the monitor, rendering the entire thing useless. It's always48
. I've searched for significance with that number, but nothing comes up.I've been thinking that maybe my issue is there's too much data on the I2C bus with both of these chips being active/read. Could that actually be the issue here? If so, any recommendations? If not, what else am I missing?
Beta Was this translation helpful? Give feedback.
All reactions