Based Navspark user's guide, most Arduino samples are not compatible with NavSpark mini, except demo_hello_world_nmea, which I cannot find in http://navspark.mybigcommerce.com/conte ... xample.zip.
Many of these samples are said to be "partially compatible", as they should work but require modifications. May I know which modifications would be required? Are working Navspark mini samples available for download somewhere? Thanks.
Navspark mini Arduino samples
Moderator: Alex Lin
Re: Navspark mini Arduino samples
cnxsoft wrote:Based Navspark user's guide, most Arduino samples are not compatible with NavSpark mini, except demo_hello_world_nmea, which I cannot find in http://navspark.mybigcommerce.com/conte ... xample.zip.
Many of these samples are said to be "partially compatible", as they should work but require modifications. May I know which modifications would be required? Are working Navspark mini samples available for download somewhere? Thanks.
NavSpark-mini is no default console with GNSS Library, see "17. UART 1, UART 2 vs NavSpark Boards" in NavSpark-User-Guide. If you program NavSpark mini without GNSS feature, you only need to modify "Serial" to "Serial1".
Re: Navspark mini Arduino samples
Does anyone have a known working minimal code snippet for the NavSpark Mini. To my surprise, I cannot find any simple code that is known to run without modification. I have tried the code below ("demo_hello_world"), but it doesn't seem to work -- when i look at the serial monitor, I only see "Error3" over and over.
Thanks in advance for your help!
Thanks in advance for your help!
Code: Select all
uint8_t led = 13;
void setup() {
GnssConf.init();
// put your setup code here, to run once:
pinMode(led, OUTPUT);
Serial.config(STGNSS_UART_8BITS_WORD_LENGTH, STGNSS_UART_1STOP_BITS, STGNSS_UART_NOPARITY);
Serial.begin(9600);
}
void loop()
{
// put your main code here, to run repeatedly:
}
void task_called_after_GNSS_update(void)
{
static uint8_t val = HIGH;
char buf[32];
if (val == HIGH) {
digitalWrite(led, HIGH);
sprintf(buf, "Hello world (GPIO%02d high)\r\n", led);
Serial.print(buf);
val = LOW;
}
else if (val == LOW) {
digitalWrite(led, LOW);
sprintf(buf, "Hello world (GPIO%02d low)\r\n", led);
//Serial.print(buf);
val = HIGH;
}
}
Re: Navspark mini Arduino samples
Try Tutorial 2 from our website: http://www.navspark.com.tw/tutorial-2
It should work for NavSpark-mini.
It should work for NavSpark-mini.
Re: Navspark mini Arduino samples
Please update to navspark-1.0.3 via Boards manager :
And you can reference the 3rd post in here :
http://www.navsparkforum.com.tw/viewtopic.php?f=23&t=272&p=1107&hilit=9600#p1107
Code: Select all
http://navspark.mybigcommerce.com/content/package_navspark_index.json
And you can reference the 3rd post in here :
http://www.navsparkforum.com.tw/viewtopic.php?f=23&t=272&p=1107&hilit=9600#p1107
Re: Navspark mini Arduino samples
Kuo, thank you, I will try that tutorial next.
Alex, thank you as well, that thread is interesting. Fwiw, I am already using 1.0.3, so I do not believe I am encountering any problems from using an old version.
The help is most appreciated. I will report back when I have had time to attempt this.
Alex, thank you as well, that thread is interesting. Fwiw, I am already using 1.0.3, so I do not believe I am encountering any problems from using an old version.
The help is most appreciated. I will report back when I have had time to attempt this.
Who is online
Users browsing this forum: No registered users and 1 guest