My ADAlog Feather is working. I can control neopixel ring.
But I do not get the serial data sent by the Feather to my PC.
I also tried the CardInfo sample. I do not get the text sent by the program+board.
Any thing different from a regular Arduino?
The com port is COM140.
Thanks.
ADAlog Feather and serial port
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ADAlog Feather and serial port
It takes longer for the ATmega32u4's Serial interface to start working than it does for an Arduino Uno.
Try adding this to your setup() function:
Try adding this to your setup() function:
Code: Select all
Serial.begin( 9600 );
while ( ! Serial ) {
delay( 1 );
}
- fredericaltorres
- Posts: 33
- Joined: Fri Feb 07, 2014 10:30 am
Re: ADAlog Feather and serial port
This program works ok on my arduino metro, but not on my adaloger feather.
I do not receive anything in the serial port windows
bool greenLed = false;
void setup()
{
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
digitalWrite( 8, HIGH);
digitalWrite(13, HIGH);
delay(500);
Serial.begin(9600);
Serial.println("Setup...");
Serial.flush();
delay(20);
delay( 1000 * 5 );
/*
*
while (!Serial) {
delay( 1 );; // wait for serial port to connect. Needed for Leonardo only
}
*/
}
void loop(void) {
greenLed = !greenLed;
digitalWrite(8, greenLed);
digitalWrite(13, !greenLed);
delay(500);
Serial.println("FeedBack...");
Serial.flush();
delay(20);
}
I do not receive anything in the serial port windows
bool greenLed = false;
void setup()
{
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
digitalWrite( 8, HIGH);
digitalWrite(13, HIGH);
delay(500);
Serial.begin(9600);
Serial.println("Setup...");
Serial.flush();
delay(20);
delay( 1000 * 5 );
/*
*
while (!Serial) {
delay( 1 );; // wait for serial port to connect. Needed for Leonardo only
}
*/
}
void loop(void) {
greenLed = !greenLed;
digitalWrite(8, greenLed);
digitalWrite(13, !greenLed);
delay(500);
Serial.println("FeedBack...");
Serial.flush();
delay(20);
}
- fredericaltorres
- Posts: 33
- Joined: Fri Feb 07, 2014 10:30 am
Re: ADAlog Feather and serial port
The Arduino ide serial monitor is working.
My .NET app that listen to the serial port and works fine with an Arduino UNO or Arduino metro, does not receive any character.
That is my issue.
My .NET app that listen to the serial port and works fine with an Arduino UNO or Arduino metro, does not receive any character.
That is my issue.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: ADAlog Feather and serial port
Make sure it is listening to the correct com port. Also the !Serial line should be directly after the Serial.begin line to work correctly.
- futurebird
- Posts: 8
- Joined: Mon Sep 28, 2015 7:28 am
Re: ADAlog Feather and serial port
My problem is very similar. Only I get data in the serial window but the adalogger seems to be unable to get gps data from software serial. I tried adding the delay... that had no impact. I'm getting good gps data on my uno with the same code and hookup.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ADAlog Feather and serial port
The Feather uses an ATmega32u4 microcontroller, and the pins that can handle the interrupts necessary for SoftwareSerial are different from the ones on an Arduino Uno.
There's a more significant difference though: the ATmega32u4 handles USB communication within the chip, so it doesn't use its hardware UART pins to talk to the USB cable. You can use the Serial1 interface to talk to a GPS module and not have to worry about SoftwareSeerial.
There's a more significant difference though: the ATmega32u4 handles USB communication within the chip, so it doesn't use its hardware UART pins to talk to the USB cable. You can use the Serial1 interface to talk to a GPS module and not have to worry about SoftwareSeerial.
Please be positive and constructive with your questions and comments.