We try to finding a way on tomorrow, but we don't know where is tomorrow.That's why I created a compass that points to tomorrow.
Thinking About Tomorrow【Define Tomorrow】
Current Time + 24 Hours = Tomorrow
【Abstract "Tomorrow" from the Earth's Orbital Motion】
- Earth moves approximately 2.59 million km in 24 hours.
- Earth Moved 2.59 million km = Tomorrow's Earth
【Calculate the Motion Vector】
1. Coordinate Earth's Position in the Heliocentric Coordinate System
- Current Earth's Coordinates = Point O
- Tomorrow's Earth's Coordinates = Point A
2. Vector from Point O to Point A = Vector OA
3. Coordinate the Observation Point in Geocentric Coordinates
- Current Observation Point = Point Q
- Tomorrow's Observation Point = Point R
4. Convert Vector OA to a Horizontal Coordinate System Based on Point Q = Vector QR
【Final Conclusion】
Direction indicated by Vector QR = Tomorrow's Direction
How it Works1. Point the device north.
2. Use the ip-api API to obtain approximate latitude and longitude from a Wi-Fi access point.
3. Calculate the vector QR based on latitude, longitude, current time, and 24-hour time.
4. Calculate the azimuth and elevation angles from the vector QR.
5. Move each servo motor corresponding to the azimuth and elevation angles.
Comments