Skip to content
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

Seeed GPS Grove Module v1.2 and Marvin #10

Open
patmolloy opened this issue Sep 24, 2017 · 0 comments
Open

Seeed GPS Grove Module v1.2 and Marvin #10

patmolloy opened this issue Sep 24, 2017 · 0 comments

Comments

@patmolloy
Copy link

Hi,

I am trying to use this module on the 3rd Marvin Grove Port (Marked D12 and D4 on the bottom of the PCB) in conjunction with the SoftwareSerial library. Here is the start of the sketch. It does not work - SoftSerial.available() always return 0. I have tried swapping the 12,4 around just in case I had RX/TX swapped. In looking at the schematics I am wondering whether that Grove port is really Digital 12 and Digital 4 ?? (seems to suggest D1 and D2).

Assuming I can get the ports right, should this actually work? I cannot see why not!

If I need to use the broken out RX/TX pads on the PCB .. what is the code I need?

Thanks!!

Pat

#include <SoftwareSerial.h>
SoftwareSerial SoftSerial(12,4);            // RX, TX
unsigned char buffer[64];                   // buffer array for data receive over serial port
int count=0;                                // counter for buffer array
void setup()
{
    SoftSerial.begin(9600);                 // the SoftSerial baud rate
    Serial.begin(9600);                     // the Serial port of Arduino baud rate.
    
}

void loop()
{
    Serial.print("Hello --- ");
    Serial.println(SoftSerial.available());
    if (SoftSerial.available())                     // if data is coming from software serial port ==> data is coming from SoftSerial shield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant