All Projects → zerog2k → Stc_diyclock

zerog2k / Stc_diyclock

Licence: mit
STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Stc diyclock

Analog
Replace your new tab page with a minimal analog clock
Stars: ✭ 46 (-64.62%)
Mutual labels:  clock
Rhine
Haskell Functional Reactive Programming framework with type-level clocks
Stars: ✭ 69 (-46.92%)
Mutual labels:  clock
Use Timer
A timer hook for React
Stars: ✭ 113 (-13.08%)
Mutual labels:  clock
Flipclock
FlipClock It's a minimalist page-turning clock.
Stars: ✭ 54 (-58.46%)
Mutual labels:  clock
Truetime Android
Android NTP time library. Get the true current time impervious to device clock time changes
Stars: ✭ 1,134 (+772.31%)
Mutual labels:  clock
Stm32pio
Automate managing of STM32CubeMX + PlatformIO projects
Stars: ✭ 89 (-31.54%)
Mutual labels:  platformio
Uiutil
UIUtil for Android, Lyrics, Tick animations, Comparisons, Satellite menus, Praise, Slide buttons, TAB indicators, Contact sorting, Drag sorting, Skidding deletes, Shadow effects, RecyclerView nesting RecyclerView, Map list Poi/Drawer effects, Progress settings, Clock set, Damping, Progress, Album, Snap, Progress, CircleDownload, AdvertSwitcher, Carousel ad, FlowLayout, Tag...; 歌词控件、打勾动画、对比、卫星菜单、点赞、滑动按钮、TAB指示器、联系人排序、拖曳排序、侧滑删除、阴影效果.、RecyclerView嵌套RecyclerView.、地图列表Poi/抽屉效果、进度设置、时钟设置、滑动阻尼、相册媒体快照、圆形下载进度,轮播广告, 流式布局,标签...
Stars: ✭ 1,018 (+683.08%)
Mutual labels:  clock
Rcalendarpicker
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control. 日历控件 ,日历选择控件,日历,日期选择,时钟选择控件
Stars: ✭ 121 (-6.92%)
Mutual labels:  clock
Vue Clock2
vue clock component 😀
Stars: ✭ 67 (-48.46%)
Mutual labels:  clock
Esp8266
ESP8266 NodeMCU Workshop
Stars: ✭ 109 (-16.15%)
Mutual labels:  platformio
Amclockview
AMClockView is a view can select time.
Stars: ✭ 56 (-56.92%)
Mutual labels:  clock
Platform Kendryte210
Kendryte K210: development platform for PlatformIO
Stars: ✭ 60 (-53.85%)
Mutual labels:  platformio
My Appdaemon
My apps, my helpfiles, all about AppDaemon for Home Assistant
Stars: ✭ 94 (-27.69%)
Mutual labels:  clock
Ttgo T Wristband
First steps with TTGO T-Wristband
Stars: ✭ 50 (-61.54%)
Mutual labels:  platformio
React Timer Hook
React timer hook
Stars: ✭ 118 (-9.23%)
Mutual labels:  clock
Rsclock
A simple terminal clock written in Rust.
Stars: ✭ 43 (-66.92%)
Mutual labels:  clock
Flip Clock
A flip clock, timer and countdown made with Polymer
Stars: ✭ 69 (-46.92%)
Mutual labels:  clock
Uicircularprogressring
A circular progress bar for iOS written in Swift
Stars: ✭ 1,658 (+1175.38%)
Mutual labels:  clock
Windows Hangul Clock
Hangul Clock for Windows Desktop Widget
Stars: ✭ 118 (-9.23%)
Mutual labels:  clock
Platformio Docs
PlatformIO Documentation
Stars: ✭ 106 (-18.46%)
Mutual labels:  platformio

STC DIY Clock Kit firmware

Firmware replacement for STC15F mcu-based DIY Clock Kit (available from banggood [see below for link], aliexpress, et al.) Uses sdcc to build and stcgal to flash firmware on to STC15F204EA (and STC15W408AS) series microcontroller.

Image of Banggood SKU972289

link to Banggood product page for SKU 972289

features

  • time display/set (12/24 hour modes)
  • date display/set (with reversible MM/YY, YY/MM display)
  • day of week
  • year
  • seconds display/reset
  • display auto-dim
  • temperature display in C or F (with user-defined offset adjustment)
  • alarm with snooze
  • hourly chime

Experimental support

  • time sync to GPS receiver outputting serial NMEA data

note this project in development and a work-in-progress Pull requests are welcome.

TODOs

  • time sync to WWVB radio receiver module (for STC15W408AS)

hardware

connection

P1 header UART adapter
P3.1 RXD
P3.0 TXD
GND GND
5V 5V

requirements

  • linux or mac (windows untested, but should work)
  • sdcc installed and in the path (recommend sdcc >= 3.5.0)
  • stcgal (or optionally stc-isp). Note you can either do git clone --recursive ... when you check this repo out, or do git submodule update --init --recursive in order to fetch stcgal.

usage

choose platformio (preferred) or traditional make build

platformio support

  • assumes you have platformio installed
  • choose which mcu you are building for by uncommenting one env_default in platformio.ini
  • adjust upload_port as needed in platformio.ini

traditional make

make clean
make
make flash

make options

  • override default serial port: STCGALPORT=/dev/ttyUSB0 make flash

  • add other options: STCGALOPTS="-l 9600 -b 9600" make flash

  • flashing STC15W408AS: STCGALPROT="stc15" make flash

pre-compiled binaries

If you like, you can try pre-compiled binaries here: https://github.com/zerog2k/stc_diyclock/releases

use STC-ISP flash tool

Instead of stcgal, you could alternatively use the official stc-isp tool, e.g stc-isp-15xx-v6.85I.exe, to flash. A windows app, but also works fine for me under mac and linux with wine.

note due to optimizations that make use of "eeprom" section for holding lookup tables, if you are using 4k flash model mcu AND if using stc-isp tool, you must flash main.hex (as code file) and eeprom.hex (as eeprom file). (Ignore stc-isp warning about exceeding space when loading code file.) (not really needed anymore as current build is within 4k code) To generate eeprom.hex, run:

make eeprom

clock assumptions

For STC15F204EA, some of the code assumes 11.0592 MHz internal RC system clock (set by stc-isp or stcgal). For example, delay routines might need to be adjusted if this is different. (Most timing has been moved to hardware timers.)

disclaimers

This code is provided as-is, with NO guarantees or liabilities. As the original firmware loaded on an STC MCU cannot be downloaded or backed up, it cannot be restored. If you are not comfortable with experimenting, I suggest obtaining another blank STC MCU and using this to test, so that you can move back to original firmware, if desired.

references

http://www.stcmcu.com (mostly in Chinese)

stc15f204ea english datasheet: http://www.stcmcu.com/datasheet/stc/stc-ad-pdf/stc15f204ea-series-english.pdf

stc15w408as english datasheet: http://www.stcmicro.com/datasheet/STC15F2K60S2-en2.pdf

sdcc user guide: http://sdcc.sourceforge.net/doc/sdccman.pdf

some examples with NRF24L01+ board: http://jjmz.free.fr/?tag=stc15l204

Maxim DS1302 datasheet: http://datasheets.maximintegrated.com/en/ds/DS1302.pdf

VE3LNY's adaptation of this hardware to AVR (he has some interesting AVR projects there): http://www.qsl.net/v/ve3lny/travel_clock.html

diagrams

new operation

new firmware operation flow diagram

original operation

original firmware operation flow state diagram

schematics

Kit instructions w/ schematic: scan | PDF

chat

Join the chat at https://gitter.im/zerog2k/stc_diyclock

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].