Wednesday 22 April 2020

Trinket MO tells the time - sort of

Here's a project that works with the trinket out of the box.


Touch Clock for trinketMO ( trinket MO )

A Trinket MO next to an AA battery used in my touch clock project

This project uses touch and the RGB LED built in to the Trinket MO.



Here's how to make it work. Assuming you have mu installed and already have had a go at trinket MO basics


1. go to the trinket.io page to grab the code
     https://trinket.io/python/d6d9dc75b5

2. paste the code into your code.py
 
3. edit the code.
    because the trinket doesn't have a RTC ( real time clock built in ) you have to specify the time of        reset and trinket counts from there.

    Edit line 6 and 7.

    Example: its 19:11 so i want to set the time in the MO by changing line 6 and 7 to..
 
    start_hour = 19
    start_minute = 11

save and then reset the trinket by either pressing the reset button or disconnecting it from your laptop/pc and connecting it again or connecting it to a power pack.

How and why the touch clock works / exists

I sometimes wake up in the night and rather than having to put my smartphone on and wake up fully, I thought I would create a touch clock that I press in some way and it vibrates to tell the time.
I haven't added a vibrating motor yet, but the flashing LED on the MO fulfils this purpose.

Touch pin 1 on the Trinket MO and it will count the hours, flashing red and count tens of minutes using a purple LED.

e.g. 16:48 (4:48)
Red: 4 flashes
Purple: 4 flashes

OK, so the clock only tells the time to the nearest 10 minuets, but this is all I need in the small hours.

Hope you enjoy this project. If you havent already got an adafruit trinket MO then you can order one here...

Getting started and how to buy...
https://trinketmo.blogspot.com/2020/04/getting-started-with-trinket-mo-with.html

 

Getting started with Trinket MO with Windows

Trinket MO is a tiny and fun device.

Picture of trinket:


Trinket MO with AA battery


Above is a picture of the Trinket MO next to an AA bettery - its really small, the size of a thumbprint.

Parts list - what you need..

1 x Trinket MO

¬
¬ ¬
You'll need a PC of laptop with a usb port.

Coming soon....

Next - a touch clock project
Making a touch clock with the basic Trinket MO ( no soddering/soldering required )
https://trinketmo.blogspot.com/2020/04/trinket-mo-tells-time-sort-of.html

Coming nest:

Future posts:

getting started with Python - specifically circuit python


Resources: