Update "Almost precise" clock
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user