Flashing using the Arduino IDE
NB: We recommend using the v1.6.4 release of the Arduino IDE. Make sure you have downloaded and unpacked the Custom IDE device from GitHub as well.
"Flashing" is the process of uploading your program into the Arduino device. The easier and preferred method is to use our Update Tool to flash the latest code into the device, but this does not allow you to tweak and edit the code. If you wish to "have a play around" with the code that runs inside the EDTracker, then this approach is for you.
To do this you use the Arduino IDE. If you've built your device with an MPU-6050 IMU then you will need to follow a 2-step process by flashing a calibration sketch first, then later you will be putting the 'main' sketch in. For MPU-9150 or MPU-9250 users, you only need one firmware. The GitHub repository breaks each firmware out into obviously-named subfolders.
- Launch the Arduino IDE
- Load the sketch to compile (e.g. File --> Sketchbook --> EDTracker2_9250 --> EDTracker2_9250)
- Select the EDTracker2 custom device (Tools --> Board --> EDTracker2_9250)
- Ensure your device is plugged in to a USB port
- Choose the correct COM port for your Arduino device (Tools --> Port --> COM n)
(There is no hard-fast rule on the COM port number but, generally, it's the highest numbered one)
- Upload the sketch (CTRL+U or File --> Upload). The IDE will compile first, then upload.
Provided you haven't altered any of the code and haven't missed any of the previous steps, there is no reason why the as-is program shouldn't compile. Chances are you have missed extracting a library or the custom device files mentioned above, or you've unpacked them into the wrong place.
If you've gone changing the code for your own education or amusement, then you're sort of on your own I'm afraid.
If you're absolutely sure you've done all the steps right but it's still not compiling, send us an email through the Contact page, or raise a bug against the GitHub repository. Include as much information, such as error messages, that you can.
If your program compiles but failed to upload, this can be for a number of reasons. The IDE debug log at the bottom of the screen may give you some hints.
The most common error is that the incorrect COM port is selected. Double-check this or, if you're not sure, try another one.
Is your Arduino plugged in? Does it show power (LED illuminated on it)? Are you positive it is soldered/wired correctly - has it ever worked before?
There is a slim chance you could have a borked Arduino, or you have somehow wiped the bootloader.
Check out the Arduino website for support.
Assuming you have some LED's lit on your Arduino, congratulations, you can move on to the calibration process and this will fully verify that the sketch is up and working...