Skip to content

googlecreativelab/visual-alarm-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morning Mountain: Visual Alarm Clock

Get up in the morning by striking a pose to stop your alarm from ringing.

Overview

Since 2009, coders have created thousands of experiments using Chrome, Android, AI, WebVR, AR and more. We showcase these projects and a variety of helpful tools and resources to inspire a diverse community of makers to explore, create, and share what’s possible with these technologies.

Morning Mountain is a part of the TensorFlow Lite for Microcontroller Experiments, a collection of open source, interactive projects designed to demonstrate some fun ways to combine Arduino and TensorFlow Lite for Microcontrollers.

These projects were built with the Arduino Sense 33 BLE, TensorFlow Lite for Microcontrollers, standard web technologies ( HTML, CSS & Javascript).


Experiment description

Morning Mountain lets you stop your alarm clock from ringing by striking a pose.

Other experiments to explore:

  • Air Snare lets you play the drums in the air.
  • Astrowand lets you draw shapes in the air to form constellations.
  • Finger User Interface or FUI (pronounced Foo-ey) lets you control connected devices with the wave of a finger.
  • Tiny Motion Trainer lets you train and test IMU based TFLite models in the browser.

Tools


Install and Run

View the full installation instructions in the Morning Mountain guide here.


Using the TensorFlow Microcontroller Challenge Kit by Spark Fun

The board that comes with the TensorFlow Microcontroller Challenge Kit by Spark Fun comes preflashed with a sketch that will work with some of the experiments right out of the box. If you are using one of the “TensorFlow Micro Challenge” kits and you just want to jump right into playing with the experiments then you can simply connect your Arduino to a power source (USB or Battery) and connect to one of the following experiment URLs:


FAQ & Common Errors

My board isn’t showing up on my computer, even though it’s plugged in. What should I do?
Try unplugging the Arduino power cable and then plug it back in to reset.

The model isn’t getting my power pose right. What do I do?
Remember that the results of any machine learning model depend on the examples you give it. Trying different examples is a core part of exploring machine learning. So, if the model from teachable machine is not working as you intended, play around with different approaches for what examples you provide.

Do you have plans to support other boards?
We made these projects to work specifically with the Arduino Nano, and we currently don’t have plans to expand support. However, all of the code is open sourced, so you can remix or modify as needed.

Where should I go from here if I want to make my own model or project?
You can create your own model in several different ways. Check out these links:

"What sensors does this experiment use?"
The camera is the OV7670. It's a 0.3 megapixel color camera, that interfaces with the Arduino over I2C. Read more here

How do you shrink a TensorFlow model to fit on a microcontroller?
Post-training quantization is a conversion technique that can reduce model size while also improving CPU and hardware accelerator latency, with little degradation in model accuracy. You can quantize an already-trained float TensorFlow model when you convert it to TensorFlow Lite format using the TensorFlow Lite Converter. Read more here: https://www.tensorflow.org/lite/performance/post_training_quantization


Note

This is not an official Google product, but a collection of experiments that were developed at the Google Creative Lab. This is not a library or code repository that intends to evolve. Instead, it is a snapshot alluding to what’s possible at this moment in time.

We encourage open sourcing projects as a way of learning from each other. Please respect our and other creators’ rights, including copyright and trademark rights when present, when sharing these works and creating derivative work. If you want more info on Google's policy, you can find that here.