Circular Based Matrix Clock - 'CirTrix2026'

by richstevens1000 in Circuits > Arduino

141 Views, 0 Favorites, 0 Comments

Circular Based Matrix Clock - 'CirTrix2026'

This circular based matrix clock (named 'CirTrix2026') comprises of six 8x8 LED Matrixes arranged in a unique circular based design. No 3D printing is required to make it. It has the following features:

  1. The ability to display any one of 8 different time display modes, with battery backup to retain the time in the event of power outages. Furthermore, it has the ability to auto-switch every two minutes between 5 of those time display modes.
  2. A display that is auto dimming according to ambient light intensity.
  3. A special time display mode that additionally displays sunrise & sunset times, and that optionally can also display current atmospheric pressure, together with 2hr/4hr pressure trends.
  4. The ability to display local ambient temperature, together with current date.

Supplies

PARTS

  1. 50 mm (solvent weld) straight couplings for waste pipe systems x6. (E.g. Toolstation part no. 53224)
  2. Clear transparent sheet (0.5 to 1.0 mm thickness) x1
  3. Neutral density transparent sheet x1
  4. M2 x 10 mm screws
  5. M2 nuts
  6. M2 plain washers
  7. M2 spring washers
  8. 2-part Epoxy adhesive
  9. Black paint
  10. Enclosure to house the electronics (E.g. Hammond 1594C)
  11. Stripboard/Veroboard
  12. Wire
  13. Push button switches x2
  14. Toggle switch x1
  15. 3.5 mm stereo jack socket x1
  16. 3.5 mm stereo jack plug x1
  17. DC power jack socket x1
  18. ATmega328P DIL package microcontroller x1
  19. BMP180 pressure sensor module x1 (optional)
  20. DS3231 clock module x1
  21. DS18B20 temperature sensor x1
  22. LM317 voltage regulator x1
  23. 8x8 (MAX7219 powered) LED matrix x6
  24. Resistors/Capacitors (see circuit diagram)
  25. Stripboard/Veroboard mounting fixings
  26. Blu Tack
  27. 1 mm thick (approx) plastic sheet
  28. Arduino Uno to program ATmega328 microcontroller
  29. Power supply (7 to 9V DC) with at least a 1A current rating


TOOLS

  1. Soldering iron + solder
  2. Hand drill
  3. File
  4. Hand saw
  5. Rotary tool (E.g. Dremel) - optional
  6. Screwdriver

Modifying the 50mm Straight Couplings

Take one of the 50 mm straight couplings and saw it to within 1-2 mm of where the internal centre lip sits. Using a file, or much better, a rotary tool (e.g. a Dremel), remove the remaining 1-2 mm of material so that the beginning of the internal centre lip just starts to show on the now outer face (see attached photos). This centre lip will be used to hold in place a front transparent window, neutral density sheet, and an 8x8 LED matrix. Repeat this for the remaining five 50 mm straight couplings.


Arrange the six 50 mm straight couplings with four on top and two underneath (see attached photos), and secure them together as follows. In the location where any one 50 mm straight coupling touches its neighbour, drill a 2 mm diameter hole. Approximately 6 mm away from this 2 mm hole drill a 3.5 mm diameter hole. This 3.5 mm hole is used to feed wires from one matrix to another. Making use of the 2 mm diameter holes, secure all six 50 mm straight couplings together using M2 x 10 screws, M2 nuts, M2 normal washers, and M2 spring washer (see attached photos).


Decide now how you want to proceed in terms of how to mount the electronics, and how high above the viewing surface you'd like the clock face to sit. There are therefore at least 3 options as to how you want the clock to look, and thus proceed in the construction. I chose to build Option 3 due to the location the clock was ultimately going to end up in. The options are as follows:


Option 1: Low profile (mounting) construction - You could house the electronics/switches/LDR/DS18B20/power-socket directly behind the clock face in two additional pieces of 50 mm straight couplings, each piece attached to the back of the existing two lower pieces of straight couplings making up the clock face (see attached photos for how it could look). The underside of the two lower straight couplings making up the clock face would then sit directly on the viewing surface.


Option 2: Lowish profile (mounting) construction - You could mount the electronics/switches/LDR/DS18B20/power-socket in an enclosure attached to the underside of the lower two straight couplings making up the clock face. The enclosure would then sit directly on the viewing surface (see attached photo for how it could look).


Option 3: High profile (mounting) construction - You could mount the electronics/switches/LDR/DS18B20/power-socket in an enclosure directly attached to the underside of the lower two straight couplings making up the clock face. The clock face/enclosure is then mounted in an elevation position relative to the viewing surface using say the base of a table lamp as a raised platform (see attached photo). This is the option I chose to build, and the option I will describe below.


(I will leave it up to you, the reader, as to how you proceed to house the electronics.)


So, continuing on with Option 3 (my choice), place all six connected, 50 mm straight couplings onto the lid of an enclosure to house the electronics (in my case a Hammond 1594C), and in the two locations that the lower two 50 mm straight couplings touch the enclosure lid, drill a 2 mm diameter hole through both the 50 mm straight coupling piece and the enclosure lid. Approximately 6 mm away from both these 2 mm diameter holes drill a 3.5 mm diameter hole through both the 50 mm straight coupling and the enclosure lid (see attached photos). These two 3.5 mm diameter holes are used to feed wires from the enclosure (housing the electronics) to the matrixes (contained within the 50 mm straight couplings).


Disassemble the six joined 50 mm straight couplings. Paint the outer surface, and the internal area around the vicinity of the centre lip of the 50 mm straight couplings a black colour (see attached photos).

Making Front Window and Contrast Enhancing Filter for Matrixes

Cut out of the clear transparent sheet a circle whose diameter is say 0.5 to 1.0 mm smaller than the internal diameter of the 50 mm straight coupling (see attached photo). This will act as one of the transparent front windows for the clock. Repeat this a further 5 times.


Cut out of the neutral density transparent sheet (acting as a contrast enhancing filter for the 8x8 LED matrix in bright ambient light conditions) a circle whose diameter is say 0.5 to 1.0 mm smaller than the internal diameter of the 50 mm straight coupling (see attached photo). Repeat this a further 5 times.

Fitting 8x8 LED Matrixes Inside the 50mm Straight Couplings

Take an 8x8 LED matrix and solder across the VCC and GND terminals a 10uF capacitor (see attached photo). Solder 4 short length of bare, solid core wire to each of the two solder pads (about 1mm apart) in the 4 corners of the matrix. These lengths of wire, reaching to the inner wall of the 50 mm straight coupling, will be used to secure the centrally placed LED matrix in place (see attached photo).


Take one of the 50 mm straight couplings, and lay it on a flat surface, with the centre lip touching the flat surface. Place one of the (cut out) transparent front windows onto the internal face of the centre lip of the coupling. Now place one of the (cut out) neutral density contrast enhancing filters onto the surface of the transparent front window. Finally, place centrally onto the surface of the previously fitted contrast enhancing filter an 8x8 LED matrix, bending the four lengths of solid core wire (soldered to the matrix's four corners) in such a way that they touch the inner surface of the 50 mm straight coupling over a distance of several mm (see attached photo). Secure the matrix in place by applying some epoxy adhesive over the areas where the four lengths of solid core wire touch the inner surface of the straight coupling (see attached photo). Repeat this for the remaining five 50 mm straight couplings. Re-assemble the six 50 mm straight couplings together using M2 screws/nuts/plain washers/spring washers (see attached photo).

Constructing Circuit

Using a piece of Veroboard (stripboard) construct the circuit according to the attached schematic '6_matrix_clock_Rev-A.pdf' so that it fits in your chosen enclosure (see attached photo).


Note 1. When fitting the DS3231 module it is important to remove the 200 ohm resistor just above the word 'SCL', and to the right of the DS3231 chip (see attached photo). This is to prevent the module trying to charge a non-rechargeable CR2032 lithium battery (fitted in the battery holder on the module's reverse side) that is used to keep the correct time on power loss.


Note 2. In order to measure the ambient temperature correctly, the DS18B20 temperature sensor should be located outside of the electronics enclosure (ie, away from any potential heat build up). In my case I have fitted it to a 3.5mm stereo jack plug, which in turn fits into 3.5mm stereo jack socket mounted to the rear of the electronics enclosure (see attached photo).


Note 3. The LDR is used to automatically adjust the brightness of the matrixes according to the ambient light intensity. For this reason the LDR should have an unrestricted view of the ambient light. I have glued the LDR to the end of a 6.5mm diameter, 16mm long piece of PVC rod with a 3mm diameter hole drilled through it. The enclosure lid has a 6.5mm diameter hole drilled into its top surface so that the PVC rod is a push fit into the hole. Once the PVC rod is pushed into the hole, the top of the LDR should be flush with the top of the enclosure lid (see Step 7 attached photos).


Note 4. The following are remote from the Veroboard (stripboard) circuit:

  1. Push button switch SW 1 - Mounted on the rear of the electronics enclosure. Momentarily pressing it alters the clock time displayed mode, and also enters the menu to allow clock/date setting.
  2. Push button Switch SW 2 - Mounted on the rear of the electronics enclosure. Momentarily pressing it toggles the date on/off.
  3. Toggle switch SW 3 - Mounted on the rear of the enclosure enclosure. Closing this switch means it is Daylight Saving Time. Opening this switch means it is not Daylight Saving Time.


Drill therefore appropriate holes for the switches/LDR/DS18B20 (and optionally a power socket) in the electronics enclosure, and then paint the enclosure body and lid a black colour.


Optionally Fitted BMP180 Pressure Sensor Module

Note 5. If you'd like to have the current pressure, together with the pressure trend over the previous 2 and 4 hours displayed within one of the time display modes, then fit the BMP180 pressure sensor module on the schematic '6_matrix_clock_Rev-A.pdf', otherwise you can simply omit it.

Compiling the Arduino Sketch for the ATmega328P

The Arduino sketch Six_matrix_clock_Rev-A.ino is available for download at the bottom of this step, or from the following link:

https://drive.google.com/file/d/1VBX2LyU5-4UINbtimwaWu_9r3noGt428/view?usp=sharing


The Arduino libraries needed to compile this sketch are available from the following link:

https://drive.google.com/file/d/1xQIjFgZvHxwm1DyTRbjqkhog3roYQVB1/view?usp=sharing


The sketch for the ATmega328P has been compiled using Arduino IDE v1.8.9. I have not tested any other IDE versions.


This sketch is a modified version of the sketch by Jorg Baumann (Joergeli) at

http://arduino.joergeli.de/digiclock/digiclock.php

which in turn is based on an original sketch by Nick Hall at

https://123led.wordpress.com/mini-led-clock/


When compiling for the ATmega328P you will first need to install the 'MiniCore' Arduino core package that adds useful support for the ATmega328P. By using this package, and disabling the bootloader, you can free up 384 bytes of flash memory. There are instructions on the MightyCore webpage on how to install this 'MiniCore' package at:

https://github.com/MCUdude/MiniCore


In summary, you add the URL below to the 'Additional Boards Manager URLs' entry under the 'Settings' tab of File>Preferences menu item:

https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json


Then go to Tools>Board>Boards Manager menu item, and wait for the platform indexes to finish downloading. Scroll down until you see the 'MiniCore' entry and click on it. Click 'Install'. Once installation is complete, close the 'Boards Manager' window.

Following successful installation of 'MiniCore', open the Tools>Board>MiniCore menu item and select ATmega328. Then, from the 'Tools' menu, select the following entries:

  1. BOD: BOD disabled
  2. EEPROM: EEPROM retained
  3. Clock: Internal 8MHz
  4. Bootloader: No bootloader
  5. Compiler LTO: Enabled
  6. Variant: 328P/328PA
  7. Baud rate: Default


Now, open the Six_matrix_clock_Rev-A.ino sketch, and export the compiled hex file by selecting 'Export compiled Binary' from the Sketch menu.

Programming the ATmega328P With the Compiled Hex File

The free PC program AVRDUDESS will be used to program the ATmega328P with the compiled hex file (from the previous step) using an Arduino Uno that has the 'ArduinoISP' sketch uploaded to it. (The 'ArduinoISP' sketch can be found in the File>Examples>ArduinoISP menu item of the Arduino IDE.)


Programming the Standalone ATmega328P

For programming the ATmega328P, wire up the Arduino Uno (with the 'ArduinoISP' sketch loaded onto it) to the ATmega328P (that's on a breadboard together with a 16Mhz crystal, 2x 33pF capacitors, and a 10k resistor) according to the attached image.

With the Arduino Uno connected to a PC via a USB cable, run the AVRDUDESS program.


Basic AVRDUDESS Usage for the ATmega328P (see attached picture)

  1. Towards the top left of the AVRDUDESS window, select the appropriate Com Port, in the Port (-P) drop down selection box, that the Arduino Uno has been allocated by the PC. This can be checked by opening up the Device Manager on the PC, and expanding the Ports (COM & LPT) section.
  2. In the Programmer (-c) drop down selection box at the top left, select Arduino.
  3. In the Baud rate (-b) box, type in 19200.
  4. Click the MCU (-p) Detect button at the top right, and ensure that ATmega328P displays as being detected in the MCU (-p) drop down box.
  5. In the Fuses & lock bits section at the middle right of the AVRDUDESS window:
  6. Type 0xE2 in the text box to the right of the letter L (Low).
  7. Type 0xDE in the text box to the right of the letter H (High).
  8. Type 0xFF in the text box to the right of the letter E (Extended).
  9. Type 0xFF in the text box to the right of the letters LB (Lock Bit).
  10. Click the Write button to the right of the Low text box. Confirm that the Low, High, and Extended fuses have been successfully written to the chip by noting the word SUCCESS in the text console at the bottom quarter of the AVRDUDESS window.
  11. Likewise, click the Write button to the right of the Lock Bit text box. Confirm that the Lock Bit fuse have been successfully written to the chip by noting the word SUCCESS in the text console at the bottom quarter of the AVRDUDESS window.
  12. In the Flash section of the AVRDUDESS window click the small box with 3 dots in it to open a window to allow you to select the .hex file compiled for the ATmega328P. Select the ATmega328P compiled .hex file, and ensure that the radio button to the left of the word Write in the Flash section has a dot in it. Then click the button labelled Go in the Flash section. You should now see the the .hex file uploading to the ATmega328P as confirmed in the text console section. Verify that the .hex file has been successfully uploaded to the ATmega328P by checking the text console.

Electrically Connect Everything Together

Fit the two lower 50 mm straight couplings (making up the clock) to the electrical enclosure lid using M2 screws/nuts/normal washers/ spring washers.


Electrically connect the circuit on Veroboard (stripboard) to the switches/LDR/DS18B20/matrixes, and then fit the circuit inside the enclosure using appropriate fixings (see attached photos). Wires are passed from one matrix to the next via the 3.5 mm diameter holes drilled into the sides of the 50 mm straight couplings.


Screw the enclosure lid down onto the enclosure body using the supplied M3 countersunk screws. Note, only the two rear screws can be fitted as access to the two front screw holes is obscured by the lower two straight couplings.


From the 1 mm thick plastic sheet, cut six circles, each with a diameter approximately 1 mm less than the outer diameter of the 50 mm straight couplings. Paint each circle a black colour. Adhere these circles to the rear of the straight couplings using a bead a Blu Tack around the inner circumference of each straight coupling (see attached photos). The Blu Tack allows for easy removal of these rear covers in case of fault finding requirements.

Fitting Clock to Base of Table Lamp (optional)

As my aim was to elevate the clock face high above the viewing surface, I have additionally mounted the whole clock (six straight couplings and electronics enclosure all joined together) on top of the painted black base of an old table lamp I had lying around. For aesthetic purposes I additionally fitted a curved shaped block of wood underneath the electronics enclosure, and furthermore I added a DC power connector at the end of the mains cable emanating from the bottom of the table lamp base.

Clock Operation

1) Altering The Clock Time Display Mode

The clock has 8 time display modes than can be selected using push button switch SW 1.

A single 0.5 second duration momentary press of SW 1 (when the clock is not displaying either the date or temperature or sunrise/sunset times or atmospheric pressure) will display the current time display mode name for approximately 1 second before reverting back to showing the current time in that display mode. Further 0.5 second duration momentary presses of SW 1 (whilst the clock is displaying the selected time display mode name) will advance the clock to the next time display mode, until it wraps back around to the first one again.


2) Toggling Between Auto-Switching Through Five of the Time Display Modes, or Remaining on a Fixed Display Mode

By default, on initial power up, the clock will not auto-switch (every 2 minutes) between five of the time display modes, instead, constantly showing one of the selected display modes. To toggle this feature on or off, repeatedly press, for a duration of 0.5 seconds, push button switch SW 1 (when the clock is not displaying either the date or temperature or sunrise/sunset times or atmospheric pressure) until the word "Menu" appears. After approximately 1 second the word "Circ" will then appear for about 1 second, after which time the auto-switching display mode state will toggle to the opposite of what it currently is. So, if the auto-switching display mode is currently set to off, the display will now show the characters "=On" to indicate that the auto-switching display mode state is set to on. Likewise, if the auto-switching display mode is currently set to on, the display will now show the characters "=Off" to indicate that the auto-switching display mode state is set to off.


3) Selecting 12-hour or 24-hour Time Format

By default, on initial power up, the clock shows the time in 24-hour format. To change to a 12-hour format, repeatedly press, for a duration of 0.5 seconds, push button switch SW 1 (when the clock is not displaying either the date or temperature or sunrise/sunset times or atmospheric pressure) until the word "Menu" appears. After approximately 1 second the word "Circ" will then appear, at which point you need to press push button switch SW 1 again. This will toggle the time format to the opposite of what it currently is. So, if the time format is currently 24-hour, the display will now show the characters "= 12Hr" to indicate a 12-hour format has now been selected. Likewise, if the time format is currently 12-hour, the display will now show the characters "= 24Hr" to indicate a 24-hour format has now been selected.


4) Toggling the Date Display to Either On or Off

By default, on initial power up, the date is shown on the clock. A single 0.5 second duration momentary press of push button SW 2 (when the clock is not displaying either the date or temperature or sunrise/sunset times or atmospheric pressure) will toggle the date display state to the opposite of what it currently is. So, if the date state is currently on, the display will now show the characters "Date of" for 1 second, before reverting back to showing the time, to indicate the date will now not be displayed. Likewise, if the date state is currently off, the display will now show the characters "Date on" for 1 second, before reverting back to showing the time, to indicate the date will now be displayed.


5) Adjusting the Time and Date

Repeatedly press, for a duration of 0.5 seconds, push button switch SW 1 (when the clock is not displaying either the date or temperature or sunrise/sunset times or atmospheric pressure) until the word "Menu" appears. After approximately 1 second the word "Circ" will then appear, at which point you need to press push button switch SW 1 again, which will bring up either "=24Hr" or "=12Hr" on the display, at which point you need to press push button switch SW 1 again. The display will now show "Set>" for 1 second, followed by "Day up" for 1 second, followed by "xx" where xx corresponds to the currently set day number (1 to 31). Repeatedly press push button SW 2 to increase the day number to the desired value (this number will wrap back around to 1 after it reaches 31).


When the desired day number shows on the display, press push button switch SW 1. The display will now show "Mont up" for 1 second, followed by "xx" where xx corresponds to the currently set month number (1 to 12). Repeatedly press push button switch SW 2 to increase the month number to the desired value (this number will wrap back around to 1 after it reaches 12).


When the desired month number shows on the display, press push button switch SW 1. The display will now show "Year up" for 1 second, followed by "xxxx" where xxxx corresponds to the currently set year (2000 to 2099). Repeatedly press push button switch SW 2 to increase the year to the desired value (this number will wrap back around to 2000 after it reaches 2099).


When the desired year shows on the display, press push button switch SW 1. The display will now show "Hour up" for 1 second, followed by "xx" where xx corresponds to the currently set hour number (0 to 23). Repeatedly press push button switch SW 2 to increase the hour number to the desired value (this number will wrap back around to 0 after it reaches 23).


When the desired hour number shows on the display, press push button switch SW 1. The display will now show "Mins up" for 1 second, followed by "xx" where xx corresponds to the currently set minutes number (0 to 59). Repeatedly press push button switch SW 2 to increase the minutes number to the desired value (this number will wrap back around to 0 after it reaches 59).


When the desired minutes number shows on the display, press push button switch SW 1. The display will now revert back to showing the time.


6) Displaying Sunrise and Sunset times

One of the clock display modes (named "INST") additionally displays sunrise and sunset times, and optionally current atmospheric pressure together with 2Hr & 4Hr pressure trends.

By default the Arduino sketch assumes the U.K. as the clock's location when calculating sunrise and sunset times. During Daylight Saving time periods toggle switch SW 3 should be set to closed, outside this time period (i.e., when it is not Daylight Saving Time) toggle switch SW 3 should be set to open.


Both the time zone, and the latitude/longitude that the clock is located need to be defined in the Arduino sketch:


a) The time zone of your location relative to UTC (GMT)

If the clock is being used outside the U.K. you will need to alter lines 214 and 215 in the sketch to reflect how many hours ahead or behind of UTC (GMT) your location is, both during Daylight Saving Time (DST), and when not in Daylight Saving Time (DST).


In the Arduino sketch Six_matrix_clock_Rev-A.ino, at lines 214 and 215, alter the values of Time_Zone_DST and Time_Zone_NO_DST (default is UK).


Time_Zone_DST is, when in Daylight Saving Time, the numbers of hours ahead or behind of UTC (GMT) your location is. Negative numbers indicate that your location's time is behind UTC (GMT), whilst positive numbers indicate that your location's time is ahead of UTC (GMT).


Time_Zone_NO_DST is, when not in Daylight Saving Time, the numbers of hours ahead or behind of UTC (GMT) your location is. Negative numbers indicate that your location's time is behind UTC (GMT), whilst positive numbers indicate that your location's time is ahead of UTC (GMT).


Note, not every country employs Daylight Saving Time (eg, Japan), and in these cases the value of Time_Zone_DST and Time_Zone_NO_DST will be the same.


Examples are given below:

i) For San Fransisco, USA

#define Time_Zone_DST -7 // The numbers of hours ahead/behind UTC (GMT) time when in DST
#define Time_Zone_NO_DST -8 // The numbers of hours ahead/behind UTC (GMT) time when not in DST


ii) For New York, USA

#define Time_Zone_DST -4 // The numbers of hours ahead/behind UTC (GMT) time when in DST
#define Time_Zone_NO_DST -5 // The numbers of hours ahead/behind UTC (GMT) time when not in DST


iii) For Paris, France

#define Time_Zone_DST 2 // The numbers of hours ahead/behind UTC (GMT) time when in DST
#define Time_Zone_NO_DST 1 // The numbers of hours ahead/behind UTC (GMT) time when not in DST


iv) For Melbourne, Australia

#define Time_Zone_DST 11 // The numbers of hours ahead/behind UTC (GMT) time when in DST
#define Time_Zone_NO_DST 10 // The numbers of hours ahead/behind UTC (GMT) time when not in DST


v) For Tokyo, Japan (Japan does not have Daylight Saving Time)

#define Time_Zone_DST 9 // The numbers of hours ahead/behind UTC (GMT) time when in DST
#define Time_Zone_NO_DST 9 // The numbers of hours ahead/behind UTC (GMT) time when not in DST




b) Latitude and longitude of your location

In the Arduino sketch Six_matrix_clock_Rev-A.ino, at lines 8590 and 8591, alter the values of the Latitude and Longitude to match your location (default is Birmingham, UK). For the Longitude, West is negative, and East is positive. For the Latitude, North is positive, and South is negative.


Examples are given below:

i) For San Fransisco, USA

Alter lines 8590 and 8591 in Six_matrix_clock_Rev-A.ino to become:

double LATITUDE = 37.7749 // Latitude of current location (north is positive)
double LONGITUDE = -122.4194 // Longitude of current location (west is negative)



ii) For Melbourne, Australia

Alter lines 8590 and 8591 in Six_matrix_clock_Rev-A.ino to become:

double LATITUDE = -37.8101 // Latitude of current location (north is positive
double LONGITUDE = 145.0006 // Longitude of current location (west is negative)



7) Optionally Display Current Atmospheric Pressure Together With 2 hour and 4 hour Pressure Trends

As previously mentioned, one of the clock display modes (named "INST") optionally displays current atmospheric pressure together with 2Hr & 4Hr pressure trends if the BMP180 pressure sensor module is fitted.


a) If you have fitted the optional BMP180 pressure sensor to the circuit (see Step 4), in order to display pressure readings on the Clock, uncomment line 186, and comment out line 187 in the Arduino sketch Six_matrix_clock_Rev-A.ino as follows:

#define bmp180En true // if bmp180 is fitted
//#define bmp180En false // if bmp180 is not fitted


Furthermore, if you have fitted the optional BMP180 pressure sensor module, then the altitude above sea level (measured in meters) of the location of the Clock needs to be inputted on line 175 of the Arduino sketch Six_matrix_clock_Rev-A.ino. (The altitude above sea level, can, for example, be easily determined using a GPS app on your phone.)


For example, if you are located on the beach next to the sea, then line 175 would be:

float alt = 0.0;


Another example. If you are located at the top of Mount Everest, then line 175 would be:

float alt = 8848.0;


b) If you have not fitted the optional BMP180 pressure sensor to the circuit, uncomment line 187, and comment out line 186 in the Arduino sketch Six_matrix_clock_Rev-A.ino as follows:

//#define bmp180En true // if bmp180 is fitted
#define bmp180En false // if bmp180 is not fitted


Furthermore, if you have not fitted the optional BMP180 pressure sensor module, line 175 of the Arduino sketch Six_matrix_clock_Rev-A.ino can be left unchanged.

Enjoy.....

Enjoy the fruits of your labour....