Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
pgregg88P

pgregg88

@pgregg88
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Video How To: Battery Powered Chair Occupancy (Contact) Sensor
    pgregg88P pgregg88

    Pete, Thank you for taking the time to create, post and explain this. I've been struggling with an optimized battery powered sensor and this nailed it. Personally, I broke new ground on multiple fronts with this one. First foray with 2.2 and first custom boot loaders.

    Question:

    • My objective is to create a standardized set of sketches for battery powered motion and door/window switches. I'm looking for that instant gratification of a light turning on the moment presence is detected. Yet, battery optimization is still important.

    • How do you recommend I remove some of your bouncing goodness in this sketch for my purposes?

    • I experimented with the following, but my knowledge of 2.2 and interrupt challenges is limited. My attempt was to reduce the sensor state checks from 3 to 1, but I failed at that. I assume it might be better to change the approach, but didn't want to start hacking your code goodness with my lack of 2.2 knowledge.

    #define DEBOUNCE_DELAY 1001 // reduced to 1001. Appear to be no issues, but the impact is minimal

    uint8_t oldContactVal = 1; //changed from 2 to 1. Caused failure, but I changed this combo of 3 variables at the same time. I'm not sure which one or if all together cause the failure. I'm still slow on arduino / mysensors logic.

    uint8_t contactVal[1]; //changed from 2 to 1

    uint8_t contactTracker = 0; //did not change. I left this at zero

    int8_t wakeVal = 0; //did not change. I left this at zero

    else {
    //Woke by interrupt, send contact value
    if (contactTracker < 1) {
    // I changed this for <2 to <1

    Any insights from the community are appreciated.

    My Project

  • 💬 Light Level Sensor - LM393
    pgregg88P pgregg88

    Hello. I need a sensor that can sense the green status led on an audio amplifier and report state via MQTT. The goal is an accurate source of Power State (ON/OFF) for the audio amp. The light is a fairly dim led. The sensor could mount directly on it. Is the LM393 appropriate for this type of requirement?

    Here is the problem... Home theater setup. TV and sound app both start at the same time. However, the audio amp has a "feature" where it cuts it's power off if it doesn't sense audio for more than two minutes. As soon as you mute the TV for an advertisement, the audio amp shuts down (while the remote control thinks the audio amps state is ON). Then, everything is out of sync and my wife and kids start calling me names. Bad ones.

    Announcements
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular