I really enjoyed my pebble (too bad caller ID is not working, yet), and i’m very happy to have been one the sponsors of the “rise of the smartwatch” series.
pair this brand new gadget with my interests in home automation, add the release of the pebble sdk, stir it with some juicy python examples, and there you are: a smarthomewatch!
first things first.
to start you need to have a working libpebble setup. i followed the pretty clear readme of this github homepage.
i followed the advice of using the lightblue library as the wrapper around bluetooth stack: looks pretty outdated, but works even on my up-to-date mountain lion powerbook.
if this is your case, before trying to use the libpebble scripts, follow the instructions you can find here. (that’s a fork adapted to run on macos 10.8)
as soon as i drilled down inside the clean code of the “p.py” file, i realized how easy it would have been to tweak it, and thought: how about that ETH-RLY ethernet relay board i played with in python some weeks ago?
let’s glue them together … and the first smarthomewatch was born! to avoid having to set up a specific application i used the “music” menu, putting my relay list as if it was a playlist, using the play/pause button as a relay toggle.
the code i’m posting is pretty draft, looking more like a hack of the original file, rather than a proper software module. but hey: it works! …
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Maker Business — A paradigm shift
Wearables — Look sharp with this quick tip!
Electronics — Straw Diffusers
Python for Microcontrollers — Python on Microcontrollers Newsletter: MicroPython 1.19 released and more! #Python #CircuitPython @micropython @ThePSF
Adafruit IoT Monthly — eInk Postcard, VR Spectrum Instrumentation, and more!
Microsoft MakeCode — MakeCode Thank You!
EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey
New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — JP’s Product Pick of the Week 6/21/22 TSC2007 Touch Screen Controller @adafruit @johnedgarpark #adafruit #newproductpick
No comments yet.
Sorry, the comment form is closed at this time.