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
L

lafleur

@lafleur
About
Posts
124
Topics
38
Shares
0
Groups
0
Followers
1
Following
1

Posts

Recent Best Controversial

  • Multi-sensor soil moisture node
    L lafleur

    This is a work in progress! , but most everything works.

    0_1487524799943_Screen Shot 2017-02-19 at 9.17.43 AM.png

    Heavy rain lately, so soil is at 100% saturation...

    This was developed with MySensor 2.1.1  https://www.mysensors.org/
    IDE 1.81
    SAMD 1.6.11
    RocketScream M0 with RFM95 radio
    

    Data from the sensor to MQTT-gateway to MQTT to (Telegraf to InFluxdb to Grafana)
    Controller function via NODE.RED connected via MQTT.

    It measures soil moisture from 1 to 4 sensors, has options for soil and air temperature.
    Support MCP9800 or Si7021 (humidity also) or temp sensor in DS3231 for air temp
    DS18B20 for soil temp
    Support of a water pressure sensor via an analog port
    Has a DS3231 Real Time clock to wake up processor at designated hour
    Has support on the board for a flow meter and pressure sensor (but no software in this code base)
    Solar, battery Powered or via 8 to 28v AC or DC
    Sleep's most of the time and just wakes up to see if its time to send a report.
    Support for requesting and receiving time of day for setting RTC
    Support for updating sensor tx schedule via V_VAR1
    (Board is designed to fit in a Hammond 1554 case)

    https://github.com/trlafleur/Soil_Moisture_Sensor_MS_R1.1-RFM95

    http://www.rocketscream.com/blog/product/mini-ultra-pro-with-radio/

    Sensor are made from plaster of paris (gypsum)

    http://vanderleevineyard.com/1/post/2012/07/the-vinduino-project-2-making-and-installing-gypsum-soil-moisture-sensors.html
    http://www.irrometer.com/sensors.html#wm
    https://www.amazon.com/Delmhorst-GB-1-Gypsum-Sensor-Moisture/dp/B0002IKRUS (pkg of 10 each)

    Based on the work of: Reinier van der Lee, www.vanderleevineyard.com

    0_1487526137636_IMG_5178.JPG 0_1487526144517_IMG_5177.JPG 0_1487526150950_IMG_5308.JPG

    My Project

  • RFM95 Soil Moisture Sensor
    L lafleur

    This is a work in progress! , but most everything works.

    It measures soil moisture from 1 to 4 sensors, has options for soil and air temperature.
    Support MCP9800 or Si7021 (humidity also) or Temp sensor in DS3231 for air temp
    DS18B20 for soil temp
    Support of a water pressure sensor via an analog port
    Has a DS3231 Real Time clock to wake up processor at designated hour
    Has support on the board for a flow meter (but no software in this code base)
    Uses a RocketScream Mini-Pro M0 CPU with an RFM95 radio
    Solar, battery Powered or via 8 to 28v AC or DC
    Sleep's most of the time and just wakes up to see if its time to send a report.
    (Board is designed to fit in a Hammond 1554 case)

    https://github.com/trlafleur/Soil_Moisture_Sensor_MS_R1.1-RFM95
    

    Sensor are made from plaster of paris (gypsum)

    http://vanderleevineyard.com/1/post/2012/07/the-vinduino-project-2-making-and-installing-gypsum-soil-moisture-sensors.html
    
    http://www.irrometer.com/sensors.html#wm
    
    https://www.amazon.com/Delmhorst-GB-1-Gypsum-Sensor-Moisture/dp/B0002IKRUS
    

    Based on the work of: Reinier van der Lee, www.vanderleevineyard.com

    Development

  • Sensor IDs, best practices?
    L lafleur

    I solved the issue by using extra I/O pins and assign a static node address from a base address + ID bits... In my case below, I used 3 ID pin's.

    /* **************************************************************************** */
    /*                                Before                                        */
    /* **************************************************************************** */
    
     // Before is part of MySensor core 
    void before() 
    { 
    
     
     // need to set up pins prior to reading them...
         pinMode(ID0, INPUT_PULLUP);
         pinMode(ID1, INPUT_PULLUP);
         pinMode(ID2, INPUT_PULLUP);
         
         myNodeID  = !digitalRead (ID0);                     // ID bit are 0 = on, so we invert them
         myNodeID |= (!digitalRead(ID1) << 1);           
         myNodeID |= (!digitalRead(ID2) << 2);
    
         myNodeID += NodeID_Base;                            // set our node ID
    
         // We no longer need these pins, so remove pullups to save power
         pinMode(ID0, INPUT);
         pinMode(ID1, INPUT);
         pinMode(ID2, INPUT);
    }
    
    
    Development

  • [Solved] MQTT ESP8266 Gateway 1.6
    L lafleur

    This has been fixed.... It was an error on my part, I had a unlisted device with the same IP address as the GW... it was a pain to find this as GW would work for 3 to 4 hours.

    I have tested removing access point and GW re covers
    I remove MWTT broker and GW recovers

    General Discussion

  • Apex-Ademco-Honeywell D6100 Alarm interface
    L lafleur

    This is a MySensor program to control, interface with an APEX Destiny 6100(AN) Alarm panel. This is an older alarm panel, but its capability exceed what can be found on current Honeywell-Ademco panels.

    Apex was bought by Ademco who was bought by Honeywell. Its is NOT compatible with current Honeywell-Ademco panels, but has the framework to be adapted.

    My system has 63 active zones, most are using wireless Ademco-5800 series sensors

    It read's and parses serial data from the alarm and format them into MySensor messages.

    This is running on a MoteinoMEGA, and connect to the D6100 via a TTL serial interface
    Radio is 915MHz RFM69HW
    Tested with MySensor 2.0.0 beta
    Tested with D6100 firmware 8.07

    https://github.com/trlafleur/Sensor_D6100
    
    My Project

  • Sensor PWB, with analog digital I/O, relays, MCP9800, Si7021
    L lafleur

    Sensor 1
    This device was designed to be a remote sensor in a MySensor or LowPower network, but can be adapted to any network that uses RFM69W(H) radios and a Moteino ATmega328 processor.
    Basic functions:

    1. Carrier for a Moteino processor with a RFM69W(H) radio
    2. Power supply 8 to 24V AC or DC
    3. Condition pulse counter with 1st order pulse filtering
    4. 2 Relay outputs, that can be converted to FET output with a jumper
    5. 3 Analog input with scaling and filtering, can be converted to digital I/O
    6. 4 LED’s for device status
    7. An MCP9800 temperature sensor, and or
    8. An Si7021 temperature and humidity sensor
    9. Designed to fit in a Hammond 1554C water resistant case

    The power supply is designed to be run from a standard irrigation 24V AC power source, but can be run from 8 to 24V AC or DC. Input power is fused with a PTC and then connected to a bridge rectifier, filtered with a large capacitor and then connected to a Pololu D24V6F5 ($6), 5V 600ma switching power supply or a 300ma version, D24V3F5 ($4), or there is also space to use a TI TL720M05 three terminal regulator in a TO252 package.

    The pulse input provides a 1st order filtering of pulses from mechanical (reed) switch as found in many water meters. Switch de-bouncing-filtering is done by R7, D3, R9, C7 and U1. The 74AHC14 inverter has a Schmitt trigger input to help with noise immunity and will provide high voltage isolation on the input. (See the reference below on how it works.)

    The output of the 74ACH14 is connected to the T1, 16bit counter on the ATmega328 processor. This can be used with simple code to count pulses without the need for interrupts. This method also continues to operator during processor sleep.

    This input can be converted to a conventional, input circuitry by selection components. IE: to use a hall effect sensor, you could remove R7, D3, C7 and replace R9 with a zero ohm resistor as needed.

    http://www.ganssle.com/debouncing.htm

    Relays are driven by a N-FET from the Moteino I/O pins. Diodes across the relay coils are for back EMF. An optional jumper connected across pins 6 and 7 of the relay bring the FET outputs to the “C” pin on J3 for direct FET connection.

    
    On the analog inputs, two input resistors and the capacitor do analog input, filtering and scaling. Again, these components can be replaced as needed to provide a direct connection to the Moteino as analog or digital I/O pin.

    If you don’t need all of the input pins on J2, you can stuff smaller connectors on the board.
    Options for an MCP9800 temperature and/or a Si7021 temperature-humidity sensor. The I2C module of the processor controls these devices.

    PCB files, schematics are on Github... I use Seeed Fusion for board.
    (also located here is my Raspberry PI2 to Moteino gateway board)

    https://github.com/trlafleur

    Hardware

  • Water flow and pressure Sensor
    L lafleur

    WaterMeter-MS-3.0i-RFM95

    Data from the MySensor node to MQTT-gateway to MQTT to Telegraf to InFluxdb to Grafana.
    Controller function via NODE.RED connected via MQTT.

    0_1488549650584_Screen Shot 2017-02-21 at 6.29.37 AM.png

    It measures water flow from a Dwyer WMT2 water meter in pulse per gallon.

    Used a 0 to 100PSI pressure sensor (from ebay), via an analog port.

    Support MCP9800 or Si7021 (humidity also) for air temp.

    Two relay outputs

    3 Analog inputs

    MAX6816 or analog filter for contact de-bouncing for water meter

    Powered via an 8 to 28v AC or DC external power source

    (Board is designed to fit in a Hammond 1554 case)

    Processor is a Moteino R4 LoRa with a RFM95

    Sends:

    • Gal per minutes
    • Gal per hour
    • Gal per day
    • Gal of current flow
    • Total gallons
    • Air Temperature
    • Humidity
    • Water pressure
    • Excessive Flow Message

    https://www.dwyer-inst.com/Product/Flow/WaterMeters/SeriesWMT2

    https://lowpowerlab.com/shop/product/99

    design file are located at:

    https://github.com/trlafleur/WaterMeter-MS-3.0i-RFM95
    

    1_1488551446939_IMG_5072a.jpg 0_1488551446939_IMG_5073a.jpg

    My Project

  • 8Bit or 32Bit processors
    L lafleur

    A number of people have ask me about why I'm using 32bit processors when an 8bit will do. Well its simple, for small development projects of less that a few hundreds unit, the larger flash, larger ram, faster CPU, lower power devices, and cheaper raw devices, allow for faster code development... no time wasted on how to save flash or ram space.. seldom having to concern myself about CPU speed.

    If I'm doing a project that requires very large volume, or special needs, I will again consider an 8 or 16bit processor, but again, these days often the 32bit devices are cheaper and more functional.

    Below are a number of CPU boards with RFM69 or RFM95 Radios attach that can be used with MySensor.

    In MySensor space, for my projects, my favorite 32bit processor board is:
    RocketScream M0 ultra pro Ver2, RFM69 or RFM95 radio, battery connector/charger, USB port, EUI64 chip, large external flash, very low power, u.FL or SMA connector, great support...
    http://www.rocketscream.com/blog/product/mini-ultra-pro-v2-with-radio/

    Other 32 Bit:
    Adafruit Feather LoRa M0, NO EUI64, No External flash, battery connector
    https://www.adafruit.com/product/3178 RFM95
    https://www.adafruit.com/product/3176 RFM69

    Non 32 bit processors:
    MoteinoMega LoRa, ATmega1284P, RFM69 or RFM95, EUI64 chip, large external flash, u.FL or SMA connector
    https://lowpowerlab.com/shop/product/119

    Moteino LoRa, ATmega328P, RFM69 or RFM95, large external flash, NO EUI64 chip
    https://lowpowerlab.com/shop/product/99

    Adafruit Feather LoRa, ATmega32U4 CPU, NO EUI64, No External flash, battery connector, RFM69 or RFM95
    https://www.adafruit.com/product/3078

    Hardware

  • API and core documents in .pdf format
    L lafleur

    It would be great if the core documents for this project were available in .pdf format on the web site....
    This would make it easy to have a local copy on a tablet or equivalent device for reference...

    Thanks

    Feature Requests

  • 8Bit or 32Bit processors
    L lafleur

    @Nca78

    1.27mm headers 5x2 (.05in) Mouser 855-M50-3500542 made by Harwin

    Hardware

  • 💬 Sensebender Micro mk2
    L lafleur

    Is this board using the RFM69HCW footprint so that one could also use an RFM95??
    If not, please consider this change and you might want to consider as an option for DIO-1 connected to an I/O pin on the CPU.. (this would also make it compatible with LoRaWan network)

    Thanks

    OpenHardware.io temperature sensebender samd humidity

  • Default debug serial port
    L lafleur

    Thanks... Unclear on why I did not see that when I looks for something like that...

    Made these changes... added issue 707 to development branch

    from:

    #define MY_SERIALDEVICE SerialUSB
    

    to:

    #ifndef MY_SERIALDEVICE
    #define MY_SERIALDEVICE SerialUSB
    #endif
    
    Feature Requests

  • Trace to antenna?
    L lafleur

    These are a good starting point...

    http://pdfserv.maximintegrated.com/en/an/AN2093.pdf
    http://www.analog.com/media/en/training-seminars/tutorials/MT-094.pdf

    Yes, it all maters, having 50 ohms from the radio to the antenna will lower the VSWR and make transfer of more power to the antenna.

    Hardware

  • MQTT Client using MySensors Serial Gateway
    L lafleur

    @arendst

    I have this gateway running on my Raspberry PI2, but I noticed that it not giving out node ID's... Is this something your going to add??

    Thanks

    Development

  • Dragnio LG01 LoRa gateway
    L lafleur

    Anyone had a chance to test or port MySensor code to this device? $56

    https://www.tindie.com/products/edwin/lg01-lora-openwrt-iot-gateway/

    General Discussion lora gateway

  • 8Bit or 32Bit processors
    L lafleur

    @Nca78

    As manufacturing of chips goes to smaller and smaller die size, chip cost go down and preformance goes up..... older processors cost more to build that newer parts!

    It all means better performance, less power and more features for less money...

    The intel 8080 when it was introduced was $360, power hungry, no ram, no storage, no I/O, needed a lot of support chips.... we have come a long way!!!!

    Hardware

  • Why is my ESP8266 MQTT Client Gateway an Access Point?
    L lafleur

    @Mike-Cayouette

    You can add it in the setup of the gateway code, works fine for me...

    WiFi.mode (WIFI_STA); // turn off AP mode

    Also, a note: In my testing of a ESP8266 and a RFM69HW radio at 915MHZ, I noticed that i no longer had any range, 100 ft max. Using the same radio on a serial gateway, my range was over 1000ft.. I suspect that the WiFi radio was desensitizing the RFM69 radio receiver... So be cautious! and do some testing.

    Troubleshooting

  • Assigning NODE ID in VER 1.6b
    L lafleur

    Found this issue, looks like it NEED TO BE PRIOR to the #include <MySensor.h>

    #define MY_NODE_ID 7                         // id of the node
    //#define MY_PARENT_NODE_ID 1    
    #define CHILD_ID 3                              // Id of the sensor child
    
    #include <SPI.h>
    #include <MySensor.h>  
    
    Development

  • 8Bit or 32Bit processors
    L lafleur

    @gohan Pro-mini, is a great part, but sometime you need a lot more! 32 bit is the future for me, less power, less cost, more resources....less hassles...

    Hardware

  • VL53L0X with water tanks
    L lafleur

    @Papari-Das

    See my documentation here for what I did for fuel oil, all will be applicable to water..

    https://github.com/trlafleur/Tasmota-Tank-Sensor

    Troubleshooting
  • Login

  • Don't have an account? Register

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