Code Monkey home page Code Monkey logo

interrupt_gps_synchronization's Introduction

interrupt_gps_synchronization's People

Contributors

jerabaul29 avatar

Watchers

 avatar

interrupt_gps_synchronization's Issues

high-accuracy clock system using GPS

@jvoermans I have unfortunately no GPS breakout for debugging / testing... Can you help me a bit?

Could you:

  • connect the GPS breakout to your due as usual.

  • in addition, connect the PPS output to any digital pin of the Due

  • write a bit of code that:

    • runs the same code as mine:

#include "time_catcher.h"
constexpr unsigned long baud_rate = 115200;
constexpr int pin_interrupt = 2;
constexpr bool pullup = true;
void setup() {
Serial.begin(baud_rate);
delay(10);
Serial.println(F("booted..."));
time_catcher.turn_on(pin_interrupt, FALLING, pullup);
Serial.print(F("interrupt attached to pin "));
Serial.println(pin_interrupt);
Serial.println();
}
void loop() {
if (time_catcher.available_time()){
long time_recorded = time_catcher.get_time();
Serial.print(F("interrupt was triggered at time "));
Serial.println(time_recorded);
}
}

  • at the same time, checks for messages from the GPS, and also prints timing. Something like:
if (SERIAL_GPS.available()>0){
  char c_GPS = SERIAL_GPS.read();
  Serial.print(c_GPS);

  if (c_GPS=='\n'){
    Serial.print(F("newline at "));
    Serial.println(micros());
  }
}

The reason for that is that I want to know when the PPS output is set high by the GPS receiver. Guess this is just before the serial transmission happens, but want to check.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.