Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Westie
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Westie

    • Westie

      APDS9960 - Gesture Sensor and MySensors Sleep
      Hardware • • Westie  

      2
      0
      Votes
      2
      Posts
      41
      Views

      Westie

      I did more investigation played around with sleep outside of mysensors and found a bit of code in a proximity sensor example: // Reset flag and clear APDS-9960 interrupt (IMPORTANT!) isr_flag = 0; if ( !apds.clearProximityInt() ) { Serial.println("Error clearing interrupt"); } I then needed to play around with delays to allow the sensor to catchup.. void loop() { delay(1000); Recoding back to MySensors if ( !apds.clearProximityInt() ) { Serial.println("Error clearing interrupt"); } wakeupReason = sleep(digitalPinToInterrupt(INT_PIN), FALLING, sleepTime); setting up the interrupt pin with a pullup forced the FALLING when pin dragged down by the sensor. void setup() { pinMode(INT_PIN, INPUT_PULLUP); All this is on caveat it makes it through some more testing.
    • Westie

      Gateway to support dual radio
      General Discussion • gateway rfm95w nrlf01+ • • Westie  

      4
      0
      Votes
      4
      Posts
      93
      Views

      BearWithBeard

      @Westie That feature can also be used with the Arduino Nano, or any other ATmega328P-based board. I had NRF24 + RFM69 running for a couple of days using a Nano as an Ethernet MQTT gateway and it worked fine as far as I remember.
    • Westie

      Gateway multiple radios
      General Discussion • • Westie  

      1
      0
      Votes
      1
      Posts
      28
      Views

      No one has replied

    • Westie

      Serial Baud Rate for Adapter
      Mozilla WebThings Gateway • serial gateway serial communication • • Westie  

      6
      0
      Votes
      6
      Posts
      106
      Views

      Westie

      @Westie Testing using a docker image of the gateway... Update looking good - I have dropped the baud rate down to something more compatible with my clone nano. I found a useful tool to check the incoming serial from a Python point of view (not running the adapter when I do it) - python3 -m serial.tools.miniterm --parity N /dev/ttyUSB0 19200. This prints out the messages from the Serial Gateway in nice text when the speed is correct.