https://www.youtube.com/watch?v=TwhCX0c8Xe0
https://www.youtube.com/watch?v=TwhCX0c8Xe0
Explore... Chat... Share...
Moderator: igrr
TEwing wrote:Great to hear! I've been researching a project using the neo-6m, esp8266 and tinygpsplus arduino library. Glad they all work together.
// GPSbuffer[] is global
void GPSstuff(char c) {
static int i, j;
static char q;
static bool flag = false;
// GPS serial line input buffer
static char GPSbuffer[120];
q = c;
// '$' ?
if ( q == 0x24 )
{
// brute force sync on '$' to GPSbuffer[0]
i = 0;
// Serial << "Found $" << endl;
}
if ( i < 120) GPSbuffer[i++] = q;
// Serial << "Index=" << (i -1) << "Input=" << q << endl;
// array limit safety
if (i = 120) i = 119;
// is the character a CR for eol
if (q == 0x0d) {
flag = true;
i = 0;
}
// test for end of line and if the right GPSbuffer
if (flag) {
// reset for next time
flag = false;
// 'R' && 'M' && 'C'
if ( (GPSbuffer[3] == 0x52) && (GPSbuffer[4] == 0x4d) && (GPSbuffer[5] == 0x43))
{
UDP.beginPacketMulticast(broadcastIP, localPort, apIP);
for (j = 0; j < 120 ; j++) {
UDP.write(GPSbuffer[j]);
}
// terminate the line
UDP.write("\r\n");
// clear UDP buffer
UDP.endPacket();
}
}
Stevenelson wrote:What I just discovered is that if I plug the gps module right into the ftdi with a 3.3v VCC and open up the serial monitor, I get the NEMA codes i was expecting, like this:
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,00,99.99,,,,,,*48
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,,V,N*64
So that's telling me the gps module itself is working correctly. So either my wiring is wrong on the esp12 or my code is.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]