I just bought an Arduino MEGA2560 R3 kit to learn how these things work, but I am hopelessly stuck at the first step: I cannot get any computer to even recognize the board. So I need help in connecting the MEGA to a Raspberry Pi or a PC.
When I plug the board into the Pi using a USB cable, nothing happens on the Pi side: it is not detected and recognized at all, not even dmesg sees anything. The Arduino itself does respond, the Green "ON" light turns on, and the yellow "L" light is blinking indefinitely. But the Pi does not see anything, and therefore cannot send any programs to it.
Using the Arduino editor software (18.1) and trying to upload the Blink script just gives me this error:
Arduino: 1.8.1 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" Sketch uses 1482 bytes (0%) of program storage space. Maximum is 253952 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes. avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer An error occurred while uploading the sketch
But in all fairness if I disconnect the board from the Pi and try to upload a script to it anyway as a test, I get the same error message.
For troubleshooting purposes I also tried connecting the MEGA to a windows PC: again, not recognized by the PC in any way, does not show up in the device manager, is not playing any "USB drive connected" sound - so altogether no response from the PC either, but the MEGA board again lights up just the same way as it did when connected to the Pi.
I spent days looking at forums and trying to come up with something of no avail, any help much appreciated. How can I get a simple blink program to run on my new Arduino MEGA 2560?
Thanks for reading all this!