-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem to reload the code #106
Comments
You've probably followed the instructions for using Flip or dfu-programmer to flash the MIDI firmware arduino_midi.hex. Now you have to follow the same steps, but using the file Arduino-usbserial-atmega16u2-Uno-Rev3.hex instead of arduino_midi.hex. (In step 5, where you load the HEX file.) |
Done the steps that you indicate and when i give it execute in FLIP, I get an error in verify and it. |
I realized that the resistor has not benn welded from the back. |
Please be more specific and post the exact error you're getting. Did you enter DFU mode by resetting the ATmega16U2?
No, this is only necessary on Rev1 boards. |
C:\Users\Pablo\Desktop\Arduino\MIDI_controller-3.1.1\examples\Ex.12.AnalogMultiplex\Ex.12.AnalogMultiplex.ino:20:13: warning: 'Analog' is deprecated Analog potentiometers[] = {
El Sketch usa 5210 bytes (16%) del espacio de almacenamiento de programa. El máximo es 32256 bytes. This is the error that appears when i try to upload the code to the board |
Yes, I know that, but did you flash the Arduino-usbserial-atmega16u2-Uno-Rev3.hex firmware using Flip or dfu-programmer? You cannot use the Arduino IDE unless you're using the Arduino-usbserial-atmega16u2-Uno-Rev3.hex firmware. |
yes i did but as i told you before, when i flash it gives me an error in verify and appears in red |
Did you select the right HEX file? The filename seems wrong. If it keeps failing, it could mean that the memory of the ATmega16U2 is corrupt. In that case you could try uploading the combined firmware (USB Serial + DFU) using an ISP programmer (using avrdude, not Flip), but it's most likely a hardware failure, so there's not much you can do about it. |
Yes ,select the correct HEX and it gives me that failure. |
it keep telling me this error, how to fix it please? |
@M1nCh3 This has nothing to do with the question at hand, please don't hijack issues, and open your own. If you do, post your full code. |
My arduino seems to be damaged, i've tried another one and it worked for me, |
Yes, you could use a Mega, but I wouldn't recommend it. Using an Arduino with native USB MIDI support will be much easier. There's an overview of Arduino boards and their USB MIDI capabilities here: MIDI over USB
Yes, this is possible using the Control Surface library. MIDI Controller doesn't support it. |
Hello again, i am going to take a risk and will mount it with my Arduino Mega, i would like you to tell me how i can increase the codes of potenciometer and buttons , and tried to copy and paste the codes by changing the pins andwhen i have more than two it gives me error. |
Please post the code you want help with, as well as your best attempt and the error message you get. |
|
#include <MIDI.h>
/*
This is an example of the "Analog" class of the MIDI_controller library.
Connect a potentiometer to analog pin A0. This will be the MIDI channel volume of channel 1.
Map it in your DAW or DJ software.
Written by Pieter P, 08-09-2017
https://github.com/tttapa/MIDI_controller
*/
#include <MIDI_Controller.h> // Include the library
// Create a new instance of the class 'Analog', called 'potentiometer', on pin A0,
// that sends MIDI messages with controller 7 (channel volume) on channel 1
Analog potentiometer(A0, MIDI_CC::Channel_Volume, 1);
Analog potenciometer(A1, MIDI_CC::Channel_Volume, 2);
Analog potenciometer(A2, MIDI_CC::Channel_Volume, 3);
void setup() {}
void loop() {
// Refresh the MIDI controller (check whether the potentiometer's input has changed since last time, if so, send the new value over MIDI)
MIDI_Controller.refresh();
} |
Please note that the MIDI controller is no longer supported, and has been obsoleted by the Control Surface library. The problem with your code is that you are creating two variables with the same name. This is not allowed. It's best to create arrays instead of using a separate variable for each MIDI element: |
Hello
I followed the instructions you have detailed and everything works perfectly for me.
The problem comes when i want to add more code to the board when the ATMega has already been updated, when i upload the code in the arduino ID it gives me error and does not let me.
In the last part of your instructions you say that to put the code back you have to do it with the previously downloaded arduino fireware is only codes of numbers and letters and i do not understand it
I hope it will help because i only need that to complete my project
Sorry for my bad training, i have started this project for a very short time
Thanks for your time
Greetings
The text was updated successfully, but these errors were encountered: