blog:articles:raspberry:phys_marsclock:pi_marsv1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:articles:raspberry:phys_marsclock:pi_marsv1 [2020/10/22 14:21] – [Caveats] Phil Ide | blog:articles:raspberry:phys_marsclock:pi_marsv1 [2024/06/22 13:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Having written several clocks that tell the time at various locations on Mars for my [[blog: | Having written several clocks that tell the time at various locations on Mars for my [[blog: | ||
=== === | === === | ||
- | The Raspberry Pi was a shoe-in for the job. Items required: | + | The Raspberry Pi was a shoo-in for the job. Items required: |
- Raspberry Pi 4B+ 2GbRAM (£34) | - Raspberry Pi 4B+ 2GbRAM (£34) | ||
- Power Supply Unit (£8) | - Power Supply Unit (£8) | ||
Line 10: | Line 10: | ||
- SmartiPi Touch 2 case (£24) | - SmartiPi Touch 2 case (£24) | ||
- | Total cost: £130.00 plus SD card (16Gb) plus p+p. | + | Total cost: ~£130.00 plus SD card (16Gb) plus p+p. An 8Gb SD card is sufficient if you want to minimalize, but a 16Gb will have a longer life. |
These were all standard components that fit together in just a few minutes. Writing the software would take a bit longer - this was after all, mainly a software task. Luckily, I'm a programmer. <- Mark Watney moment, did you spot it?. | These were all standard components that fit together in just a few minutes. Writing the software would take a bit longer - this was after all, mainly a software task. Luckily, I'm a programmer. <- Mark Watney moment, did you spot it?. | ||
Line 32: | Line 32: | ||
* write to the SD card only when absolutely necessary, to help extend its life | * write to the SD card only when absolutely necessary, to help extend its life | ||
* optimised code wherever possible, but maintain flexibility and readability | * optimised code wherever possible, but maintain flexibility and readability | ||
+ | |||
+ | v1.1 added power management options (quit the application, | ||
Optimising the code was essential. Although computers are great for repetitive tasks, making them work unduly hard at high frequency rates persistently reduces their lifespan. This clock was going to perform a large number of calculations and then repeat that task up to ten times every second (user configurable). Giving the clock a breather between each trip around the loop is just taking care of the equipment. | Optimising the code was essential. Although computers are great for repetitive tasks, making them work unduly hard at high frequency rates persistently reduces their lifespan. This clock was going to perform a large number of calculations and then repeat that task up to ten times every second (user configurable). Giving the clock a breather between each trip around the loop is just taking care of the equipment. | ||
Line 45: | Line 47: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Full installation instructions can be found on [[blog: | + | Full installation instructions can be found on [[blog: |
===== Caveats ===== | ===== Caveats ===== | ||
Line 67: | Line 69: | ||
{{: | {{: | ||
{{: | {{: | ||
+ | |||
+ | ~~socialite~~ | ||
+ | ~~DISCUSSION~~ | ||
blog/articles/raspberry/phys_marsclock/pi_marsv1.1603376518.txt.gz · Last modified: 2020/10/22 14:21 by Phil Ide