victor-chew / espclock Goto Github PK
View Code? Open in Web Editor NEWAnalog clock that syncs with NTP via ESP8266
Analog clock that syncs with NTP via ESP8266
`Arduino: 1.6.12 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
espclock:38: error: 'D1' was not declared in this scope
int clockHH = 0, clockMM = 0, clockSS = 0, ntpHH = 0, ntpMM = 0, ntpSS = 0, ntpCount = 0, ntpTime = 0, tickPin = D1;
^
C:\Users\Nikki\Desktop\espclock\espclock.ino: In function 'void incSecondHand()':
espclock:139: error: 'D1' was not declared in this scope
tickPin = (tickPin == D1 ? D2: D1);
^
espclock:139: error: 'D2' was not declared in this scope
tickPin = (tickPin == D1 ? D2: D1);
^
C:\Users\Nikki\Desktop\espclock\espclock.ino: In function 'void setup()':
espclock:284: error: 'D0' was not declared in this scope
pinMode(D0, INPUT);
^
espclock:285: error: 'D1' was not declared in this scope
pinMode(D1, OUTPUT);
^
espclock:286: error: 'D2' was not declared in this scope
pinMode(D2, OUTPUT);
^
exit status 1
'D1' was not declared in this scope`
Hi, really cool idea!
I have some trouble with hands movements... looks like the coil has not enough strength to move clock hands when controlled with Arduino/Wemos ESP... but of course everything works when 1 battery (1.5V) is connected.
What should i do?
Should i consider putting a transistor or relay between to get more power?
I tried increasing current by adding a lower resistance between PIN and coil (about 50ohm)
Hi I tried to build this watch, everything works but does not sync! I registered on google cloud to get the API key but nothing ..... there is no way to remove the location via google?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.