LinkIt One Tutorials - #0 Fix That Pesky Serial Port!
by gregoryfenton in Circuits > Microcontrollers
1260 Views, 8 Favorites, 0 Comments
LinkIt One Tutorials - #0 Fix That Pesky Serial Port!
Anyone that has played with LinkIt One will doubtless have tried to use the Serial port to monitor output.
And failed.
Some clever ones amongst us may have resorted to FTDI cables (which do work) but there is a much easier solution.
In
void setup()
before you do anything else add the code below:
int i;
pinMode(13, OUTPUT);
for(i = 0; i < 20; i++)
{
digitalWrite(13, HIGH);
delay(250);
digitalWrite(13, LOW);
delay(250);
}
Basically this waits 10 seconds from startup, flashing the onboard LED merrily. While it is flashing, keep clicking on the Serial Monitor button in the Arduino IDE.
After a few seconds or so the Serial Monitor will open and as soon as the LED stops flashing you will see your serial data.
Always remember to close the Serial Monitor before you try to upload to the LinkIt One board or the upload will fail.
This may be a super small Instructable but it is an essential one to fix an issue that has affected me (and several others) since day one.
Please let me know in the comments section if the issue affects you.