|
Post by kenqks on May 6, 2019 17:00:26 GMT
Hi all, i gotten two hitex shieldbuddy for an project to use this gps module. Base on this guide (https://randomnerdtutorials.com/guide-to-neo-6m-gps-module-with-arduino/), i will be needing TinyGPS++ (https://github.com/mikalhart/TinyGPSPlus) And Arduino bulit in SoftwareSerial.h which in not avaliable in shieldbuddy. i would like to know if this is possible or is there a solution to the SoftwareSerial.h for the shieldbuddy. Btw i am using the Arduino IDE. Thanks
|
|
|
TinyGPS++
May 6, 2019 17:09:31 GMT
via mobile
Post by Admin on May 6, 2019 17:09:31 GMT
Which pins is the serial port on the TinyGps?
|
|
|
Post by kenqks on May 6, 2019 17:15:02 GMT
I am currently trying to use TX and RX on the shieldbuddy to connect to RX and TX of the gps module, as previously i realised the arduino softwareserial library is not working thus i cannot use any random pins.
|
|
|
Post by kenqks on May 6, 2019 17:24:17 GMT
#include <Wire.h>
//#include <SoftwareSerial.h>
/* LMU uninitialised data */
StartOfUninitialised_LMURam_Variables
/* Put your LMU RAM fast access variables that have no initial values here e.g. uint32 LMU_var; */
EndOfUninitialised_LMURam_Variables
/* LMU uninitialised data */
StartOfInitialised_LMURam_Variables
/* Put your LMU RAM fast access variables that have an initial value here e.g. uint32 LMU_var_init = 1; */
EndOfInitialised_LMURam_Variables
/* If you do not care where variables end up, declare them here! */
//SoftwareSerial ss(4, 3);
/*** Core 0 ***/
void setup() {
// put your setup code for core 0 here, to run once:
SerialASC.begin(9600); // Initialize serial connection to display distance readings
SerialRxTx.begin(9600);
}
void loop() {
while (SerialRxTx.available() > 0){
// get the byte data from the GPS
byte gpsData = SerialR0T0.read();
SerialASC.println(gpsData);
}
}
/*** Core 1 ***/
/* CPU1 Uninitialised Data */
StartOfUninitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have no initial values here e.g. uint32 CPU1_var; */
EndOfUninitialised_CPU1_Variables
/* CPU1 Initialised Data */
StartOfInitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have an initial value here e.g. uint32 CPU1_var_init = 1; */
EndOfInitialised_CPU1_Variables
/*** Core 1 ***/
void setup1() {
// put your setup code for core 1 here, to run once:
}
void loop1() {
// put your main code for core 1 here, to run repeatedly:
}
/*** Core 2 ***/
/* CPU2 Uninitialised Data */
StartOfUninitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have no initial values here e.g. uint32 CPU2_var; */
EndOfUninitialised_CPU2_Variables
/* CPU2 Initialised Data */
StartOfInitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have an initial value here e.g. uint32 CPU2_var_init = 1; */
EndOfInitialised_CPU2_Variables
/*** Core 2 ***/
void setup2() {
// put your setup code for core 2 here, to run once:
}
void loop2() {
// put your main code for core 2 here, to run repeatedly:
} 'SerialRxTx' was not declared in this scope
|
|
|
Post by Admin on May 6, 2019 21:19:32 GMT
The serial port on RX and TX (D0 and D1) is "Serial". This should work...
/*** Core 0 ***/
void setup() {
// put your setup code for core 0 here, to run once:
SerialASC.begin(9600); // Initialize serial connection to display distance readings
Serial.begin(9600);
}
void loop() {
while (SerialRxTx.available() > 0){
// get the byte data from the GPS
byte gpsData = Serial.read();
SerialASC.println(gpsData);
}
}
|
|
|
Post by kenqks on May 7, 2019 18:03:23 GMT
Thanks alot admin for the mistake in the codes
|
|