Has anyone tried sending GPS coords to TTN?
// 1..7 hour at 10 min interval <==> values 218 ..254; 255 means "more than 7 hours"
GPS got fixed in 30 second to 1 min… however, only 0000000000 delivered as a payload.
Compiling the code has no error.
Thanks for prompt reply. I powered mega by USB 5v. and GPS breakout board by mega VIN. Like this UNO examplw wiring @https://learn.adafruit.com/adafruit-ultimate-gps/arduino-wiring. Please tell me how should I wire since mega use hw serial as discussed in previous posts.
Thanks for sharing. However, I do not have those hw/resource and the frequency is EU.
// what's the name of the hardware serial port?
Serial output : However, not receiving any packet in the console.
If I was you I disconnect the lora board from the mega and first try to get communication between the mega and the GPS module.
I'm trying to get a TTN Mapper node working with Pro Mini, RFM95W, Neo6 GPS, and a small OLED display with the position information. I want it to be able to happily run in the background unless I press a button to turn on the display.
All working fine, except it takes longer than normal to lock, and doesn't take read all the position data in one go - it will update long, say, then a few iterations later HDOP, Alt etc. All this makes me suspect it's not reading the serial feed properly.
I clearly don't understand the scheduling of lmic and/or how to handle the softserial port. I've got the GPS feeding into ss(9, 8). I've got the serial GPS reading in do_send (see below) which just doesn't feel like the right place for it. Would it make more sense (and be cleaner) to do the reading and OLED update in an interrupt service routine?
*Forgot to say - I'm using the sample ttn-abp code as a base, and TinyGPS++.
Not exactly the same, but a sort of similar question passed by in another topic. Maybe this example may be useful for you too.
This example simply triggers the sending action in the arduino loop().
Yup, that works just nicely. Thanks for the link!
I use exact these parts and my GPS-tracker works fine except that I cannot use the 128*64 Oled, I could not find a library small enough to fit in the sketch.
I do not use any sensor and modified the LMIC library a bit so it is 4k smaller (explained in document of ttn_nodeworkshop). There is almost 8kB memory left so maybe a oled can be used.
Which Oled-library are you using with the code on the pro-mini ?
Basically you want a text only 1306 driver. It's the bitmapped screen buffering that takes up the memory - limiting to text drastically reduces the footprint.
I found the library in the library manager of the arduino IDE.
Have you also tried U8x8 (part of U8g2)?