I set up a GPS NEO-7M-0-000 board with a Arduino Uno and things worked bad if i set rx to rx and tx to tx he showed No GPS detected: check wiring. But if i set rx to tx and tx to rx he show nothing.
What type of problem could it be?
I just started working with this device and make all with instruction but it doesn't work.
My code:
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
/*
This sample sketch demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
It requires the use of SoftwareSerial, and assumes that you have a
9600-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;
// The TinyGPS++ object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup()
{
Serial.begin(115200);
ss.begin(GPSBaud);
Here's a tip about wiring. It is good practice to use red for power(5V and VCC) and black for ground (GND). That helps to avoid short circuits that can destroy your components.
The data wires can be be any other colours but not red or black.