• Skip to main content
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Adafruit Logo
0
  • Sign In | Create Account
  • Playground
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Sign In
0
Adafruit Logo
  • Learn Categories
    • 3D Printing
    • AdaBox
    • Adafruit Products
    • Arduino Compatibles
    • Breakout Boards
    • Circuit Playground
    • CircuitPython
    • CLUE
    • Community Support
    • Components
    • Crickit
    • Customer & Partner Projects
    • Development Boards
    • Educators
    • EL Wire/Tape/Panel
    • Feather
    • Gaming
    • Hacks
    • Internet of Things - IOT
    • LCDs & Displays
    • LEDs
    • Machine Learning
    • MakeCode
    • Maker Business
    • micro:bit
    • Microcontrollers
    • Programming
    • Raspberry Pi
    • Robotics & CNC
    • Sensors
    • STEMMA
    • Tools
    • Trellis
    • Wearables
    Explore, Groups to get your gears turning
    Explore
    Groups to get your gears turning
    Explore Groups
  • New Guides
  • Playground
dwetchells Notes

dwetchells

u/dwetchells
Badges
2
1

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

  • By dwetchells

    IR-Motion Sensor for Govee Smart Plug

    I wanted to control a Dual Govee Smart Plug and saw one of Lady Ada shows, showing off her latest design the STHS34PF80  ID #6426.  So built one that would control a Govee Dual Smart Plug.

    REQUIRED: you must have a Govee account and apply for a Govee API key thru the phone app only.  You make a request and they will email you an API key... Don't loose it.  You can over load their API so keep your request to a minimum.  They will throttle you account if you get carried away.

    Object of this project:  I wanted to control a Govee Dual Smart Plug.  The plug is used to turn on all my Adafruit projects in my office.  So when I leave they all turn off and back on when I enter my office.  This sensor is fairly sensitive and I can be about 10-12 feet away when it senses me.  The sensitivity various with room temperature.  Its not perfect, Its like the sensor gets use to you in the room and starts to ignore you unless you move around a lot or leave the room for a bit.  Its sensing the heat around the room 

    Programming:  I can NOT take total credit for programming this.  I spent many, many hours coding and working with Copilot.  Together we came up with what appears solid.  I spent about 3 weeks on and off working on this project.  You can add your own ideas in.  

    Parts are:

    • Adafruit STHS34PF80 IR Presence / Motion Sensor - STEMMA QT / Qwiic ID 6426
    • Adafruit ESP32-S3 Revers TFT Feather ID 5691
    • Stemma QT / QWii JST SH 4-Pin  ID 4399

    OS is CircuitPython version 10.0.3 as of 2-2026

    The object of this project design was simple

    • Display the current date and time since it will be sitting on my desk
    • Initialize the time and sensor
    • Display option below for 5 seconds. If a selection is not made then select the last selected mode.
      • Three buttons in the from to 
        • Button D0 to select Outlet A
        • Button D1 to select Outlet B
        • Button D2 to select Both Outlets A & B
      • Once a option is selected lock out the buttons until the unit is rebooted or power off.  
    • Once the unit has power one it should display the following
      • Date and time
      • A green pixel (i am alive) flashes 
        • Flashes blue every 30 seconds to insure the Internet is still alive
        • Turns red if the internet goes down and returns green once alive again
      • Display which Outlet is on or off   Green for ON, Red for OFF
        • A ON, A OFF | B ON, B OFF | Both On, Both OFF
      • Display in english  Plug A On/Off | Plug B On/Off | Plug Both On/Off
    • If the sensor detects movement or present it will send a Govee Smart Plug command out the internet
    • If the sensor no longer sees movement or presents then the following happens
      • Program wait for 10 cycles and if movement or presents is detected resets to true
      • If after 10 cycles and no movement or presents is detected then a countdown timer is started
      • The count down timer will be displayed in the lower left for 150secs. 
        • Should the timer count to zero the Govee command to turn off is sent out to the internet
        • If for the sensor see movement or presents then the timer is reset and terminated until there is no movement or presents.
    • Turn off the Display at 10pm and turn it back on at 8am.  Just to save the display wear.
    • I used the Ruiz Brothers 3D Case (IoT Battery Monitor) and modified the size of the face & rear place to make room for the IR Sensor.  I used FreeCad to make the modification. I liked how the case back panel snapped in and I didn't know how this was done do I slice the case in half and added about 1/2" to the original .stp file.  Came out great.  I hope the Reiz Brothers don't mind, you guys ROCK!

    Below is the code I used and I am still very new at all this so if you think I did something wrong let me know

    Save
  • By dwetchells

    EPS32 V2 eInk / ePaper Daily Calendar and Clock

    I oh so wanted to build Liz Clark's QTPy CH32V203 eInk / ePaper Daily Calendar & Clock but I didn't have much luck with booting and programming the CH32V203 board.  I am no expert on how to do this. So I reversed engineered the code to Circuit Python and put in on the Huz/zah ESP32 V2 board.  I also wanted some color and used the 1.54" 3 color e-ink display. I don't have a 3-D printer so I cut a strip of plexiglass and used a heat gun to put a 45-degree bend so it looks like a paper calendar.   Below is my parts list I used to make this calendar.  

    The code is fairly simple, and I just pieced it together from Adafruit web pages.  Granted I could have used WiFi to pull the time down and I may but for now I wanted to get used to playing around with DS3231 board. I used a wire wrap pen which you can get off of Amazon fairly cheap.  I've added the code here as well.  I am just a NOOB to programming and mostly hack at it to get it working.  If you find this helpful, great.  It was a fun little project.

    • Huz/zah ESP32 V2 Feather ID 5400
    • Adafruit EYSSPI Flex Cable 50mm ID 5462
    • Adafruit EYESPI Breakout Board 18 Pin Connector ID 5613
    • Adafruit 1.54" Tri-Color eInk / ePaper Display 200x200 with EYESPI ID 4868
    • Adafruit DS3231 Precision RCT Breakout Board ID 3013
    • STEMMA QT / Qwiic JST SH 4 pin Cable 50MM  ID 4399
    • Rainbow Wire Wrap ID 4730
    • Black Nylon Machine Screws and Stand offs M2.5 ID 3299

     

    Wire connection table

    EYESPI connector   -->  ESP32 V2

    • VIN        --->    3v
    • Gnd       --->    Gnd
    • SCK       --->    SCK
    • MOSI     --->   MOSI
    • MISO     --->   MISO
    • DC         --->   TX
    • TCS       --->   RX
    • SDCS    --->   Pin 33 *
    • SDCS    --->   Pin 27 *

    Note: *  I will comment, and maybe someone could tell why but Pin 22 and 37 are not in the code but without them the display would not update.  So I am guessing the pins are either floating or pulled to ground.

     

     

    17347163351764063439386209293384.jpg
    Save
  • By dwetchells

    Digital / RGB-666 Moon Clock

    I wanted a clock that would display the time in large yellow characters and display the week and day.  For fun added a 60 RGB neo-pixel ring to tick off the seconds.

    The last part was to display the phase of the moon in a fun way and found these to be entertaining. 

    I cut a sheet of plex-glass to 8x11 sheet.  I used miniature self-tapping screws to mount the RGB neo-pixel ring.  I used this same kind of screws to mount the 4-digit display and two of the Quad Alphanumerica Displays.

    I drill large enough holes to plug the displays up to the Adafruit Qualia ESP32-S3 and daisy chained the rest.

    I did solder 3 wires to the RGB neo-pixel ring a crimped a 3-pin connector on the other and plugged it in socket A0.

    I used Photopea to create a 3x3 of the moon phases I found on the internet.  For the new moon phase I copied the full moon phase and changed its color from yellow to blue.  and its a seperate .bmp file.

    I am not a very good coder anymore and new to python.  I am sure there are better coders out there than me for sure.  I hacked most of the code from other projects.

     

     

    Parts Required for this project:

    1. Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays (PI - 5800
    2. Round RGB TTL TFT Display -2.1" (PI - 5806)
    3. NeoPixel 1/4 60 Ring 5050 RGB LED w/Integrated Drivers (PI -1768)
    4. Quad Alphanumerica Display - Blue 0.54" Digits w/ I2C Backpack - Stemma QT / Qwiic (PI 1912)
    5. Assembled Adafruit 0.56: 4-Digit 7 Segment Display -w/ I2c Backpack QT - Yellow (PI 5602)
    6. Stemma QT JST SH 4-Pin Cable (50mm & 100mm)
    20240313_110529_1_.jpg
    Save
Search

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

    • Contact Us
    • Tech Support Forums
    • FAQs
    • Shipping & Returns
    • Freebies
    • Terms of Service
    • Privacy & Legal
    • Website Accessibility
    • LLMs.txt
    • About Us
    • Press
    • Educators
    • Distributors
    • Jobs
    • Gift Cards
    "Art is I; science is we"
    Claude Bernard
    Adafruit Logo
    A Minority and Woman-owned Business Enterprise (M/WBE)