Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microcontroller RTC Functionality #19

Open
NicoleMaggard opened this issue Jul 15, 2024 · 0 comments
Open

Microcontroller RTC Functionality #19

NicoleMaggard opened this issue Jul 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NicoleMaggard
Copy link
Member

Introduction

Flight Controller V4B will feature an RTC: RV-3028-C7
The intention of utilizing this RTC will be to enable Satellite Real-Time Telemetry! The design intent of utilizing the real time clock is to do the math of the time it takes from ground transmission to satellite reception and calculate the distance knowing the speed of light. With the implementation of multiple ground stations at known separation distances, the satellite may then be able to calculate its position.

The RTC Idea

The RTC will be powered with supercapacitors through launch but the registers only track time with a resolution of 1 Hz. A function will be needed to calibrate the Microcontroller time which will tick on a ns-ms basis (and will be useful to determining the time difference in transmission). The main idea is that the microcontroller will require a function to synchronize with the first tick of the RTC. On this first tick after an update to the "seconds" register the microcontroller should then synchronize with the RTC. The I2C Fast Mode should be used to continuously poll the RTC until the change in time is no longer "unexpected." The Microcontroller should expect the time on the RTC to update after a certain tick, and if the RTC updates the register before or after the expected tick, the microcontroller should readjust its time and wait for the next second to check calibration.

@Mikefly123 Mikefly123 added the enhancement New feature or request label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants