Arduino SmartClock – Nano version, the result

Here is the final result on my nano version of the Arduino SmartClock

aDSCN7699

The new clock in font of its older brother

It is a simplified version of the Arduino SmartClock but also smaller.

Like the other model, it is an arduino based clock that connects to my home wifi in order to automatically set up the time (wifi module ESP8266).

It is also an alarm clock, the time of the alarm is also set via WiFi. There is a mode where the alarm is automatically set according to my schedule on Google Agenda and the time forecasted for the journey by Google Maps (by car, because of traffic jams and my variable schedule, this can vary a lot from one day to an other).

Instead of using a light sensor, I set up two simples modes : Day & Night. By day the seconds are shown in a colorful way :

aDSCN7693

Display by day

By night the luminosity is lower and only some LEDs are used :

aDSCN7695

Display in night mode

The code is fairly close to the one of the preceding version (reminder : the code of the clock itself is freely available here ). The soldering was more challenging as there not a lot of room available inside of the box.

aDSCN7703

Inside of the clock

To finish here is little tip :

If you’re building a project inside a box with a power cable (or any type of cable going outside of the box) you can make a knot with the wire inside. That way, if you pull on the cable, it will only tighten the knot and not unplug or break the wire ;-).

aDSCN7704

The simple knot trick !

Advertisements

DIY Clock – the code

After some cleaning here is my code used for the arduino side.

https://github.com/abartben/smartclock

vlcsnap-2015-12-18-23h11m26s182

The code is not perfectly clean but it can be used by someone to build something else (I guess 😛 ).

I can not release the server-side code yet because it contains the api code to my calendar.