From 699f1fa677c3ca9673cdf2a4e4e8a7c92f34e1f2 Mon Sep 17 00:00:00 2001 From: Ewaryst Date: Sat, 11 Apr 2026 07:42:38 +0000 Subject: [PATCH] Update "Almost precise" clock --- %22Almost-precise%22-clock.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/%22Almost-precise%22-clock.md b/%22Almost-precise%22-clock.md index cafc129..4944c8e 100644 --- a/%22Almost-precise%22-clock.md +++ b/%22Almost-precise%22-clock.md @@ -1,4 +1,4 @@ -### "Almost precise" clock project. ### +#"Almost precise" clock project. Please visit https://ewaryst.com to my portfolio page. @@ -10,13 +10,15 @@ Clock uses STM32F103 controller from ST Microelectronics (Blue Pill) and is powe USB acts also as communication interface, allowing user to change several parameters in the clock, like the colour of diodes indicating hours, minutes and seconds as well as the background colour of the display. ST USB driver is needed in order for this clock to be discovered as "COM port". +##Command Set + The communication is done by sending 6-number command to the clock. first number indicates command ID. General scheme is: -# Number | -# ------------------------------------------------------------- -# 1 | Command ID -# 2 to 5 | Command dependant values -# 6 | Reserved for CRC +Number | +------------------------------------------------------------- + 1 | Command ID +2 to 5 | Command dependant values + 6 | Reserved for CRC Following commands are implemented: @@ -58,3 +60,7 @@ Fro "read NV" second number indicates which setting to read: #define NV_DIODE_OFFSET 0x14 // 1 byte Accordingly, for "write NV" next max 3 numbers indicate "R", "G" and "B" in case of colour change (3 bytes). + +##Mechanics + +In "Mechanics" folder you will fing my enclosure design done in FreeCad.