Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 3.35 KB

README.md

File metadata and controls

60 lines (44 loc) · 3.35 KB

Yet another 3d printer filament humidity sensor using a Pimoroni Badger W with a BME280 sensor.

This project is an educational tool, mainly for ME :)

This version uses the Badger specific @Micropython UF2

Overview

  • Reads humidity and temperature based on parameters using the BME280
    • Currenty every 30 mins
    • Most parameters are ajustable in paramters.json file
  • Logs readings to MariaDB using a simple REST interface
    • Humidity
    • Temperature
    • Power source (USB or Battery)
    • Power Level in Volts
    • Parameters for 'Full', 'Empty' and Change Battery'
    • See images for graphs created using logged data
  • Sends emails for:
  • At end of run puts device in to deep power saving sleep until retriggered by button or the RTC
    • now using Badger OS functions (pcf85063a) to implement RTC wake up
  • Now implements badger2040.sleep_for(minutes) rather than Pico machine.deepsleep

The netmanClass.py contains a simple WiFI connection class and methods for reading power source and levels. They are contained within the Wifi class as power source and power levels use some common GPIO functions.

The code contains a lot of DEBUG print statments to REPL that can be enabled / disabled at start of code.

*** This is a work in progress ***

*** I am not a coder or programer, so please excuse the chaos ***

Items Used:

A picture:

20230320_085055608_iOS

Graphing output on web, red is out of bounds alert:

Screenshot 2023-03-24 225020