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
Dominic BonneauD

Dominic Bonneau

@Dominic Bonneau
About
Posts
36
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Temperature sensor issu ( Maybe something with 2.0 vs 2.1.1 library)
    Dominic BonneauD Dominic Bonneau

    Hi, I try to compile the code i fond here : Temperature Sensor

    but the arduin does not seam to be able to talk with my gateway ...

    first i tought it was an issue with the radio but i try the same thing on another sensor i made 3 mounth ago and it was fine ...

    I compile the code with the 2.1.1 library because 2.0 gave me some error ... is it possible that why it can talk to the gateway ?

    I don't want to update my gateway is it possible to compile it with 2.0 library ?

    this is the error i got in 2.0

    Arduino:1.8.3 (Windows 10), Carte : "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
    
    C:\Users\dbonneau\Documents\Arduino\libraries\DallasTemperature\examples\DallasTemperatureSensor\DallasTemperatureSensor.ino: In function 'void loop()':
    
    DallasTemperatureSensor:94: error: 'getControllerConfig' was not declared in this scope
    
         float temperature = static_cast<float>(static_cast<int>((getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
    
                                                                                      ^
    
    exit status 1
    'getControllerConfig' was not declared in this scope
    

    and this is the log on 2.1.1

    10033 TSM:FAIL:RE-INIT
    10035 TSM:INIT
    10041 !TSM:INIT:TSP FAIL
    10043 TSM:FAIL:CNT=2
    10047 TSM:FAIL:PDT
    20051 TSM:FAIL:RE-INIT
    20054 TSM:INIT
    20060 !TSM:INIT:TSP FAIL
    20062 TSM:FAIL:CNT=3
    20066 TSM:FAIL:PDT
    30070 TSM:FAIL:RE-INIT
    30072 TSM:INIT
    30078 !TSM:INIT:TSP FAIL
    30083 TSM:FAIL:CNT=4
    30085 TSM:FAIL:PDT
    40089 TSM:FAIL:RE-INIT
    40091 TSM:INIT
    40097 !TSM:INIT:TSP FAIL
    40099 TSM:FAIL:CNT=5
    40103 TSM:FAIL:PDT
    
    Troubleshooting

  • USB PowerMeter
    Dominic BonneauD Dominic Bonneau

    Yeah... I forgot about full charge phone ... I'm gonna try to find something else to find who is in bed and who is awake ...

    My Project

  • USB PowerMeter
    Dominic BonneauD Dominic Bonneau

    I already know Tasker but I have Iphones so I need another solution

    My Project

  • USB PowerMeter
    Dominic BonneauD Dominic Bonneau

    Hi, This Is my project : I want to know if my phone is plug. ( and then make some rule in my home automation)

    I was thinking to buy cheap usb cord then plug it to my Arduino then plug my Arduino into usb wall plug. then if my phone is plug send "1" to my gateway

    My issue is I don't know if it can be done this way, I don't know how to do it, and I don't know how to code it ...

    A litre bit of help would be really cool ! 😊

    Also, I have a lot of Arduino Mini pro can I use this or I need a different model ?

    THANKS YOU !!

    My Project

  • Automate Curtain with Mysensor
    Dominic BonneauD Dominic Bonneau

    Yeah ! could do the trick ... i don't have time to check right now but is he explained every detail and hardware of his process ?

    Thanks

    My Project

  • Automate Curtain with Mysensor
    Dominic BonneauD Dominic Bonneau

    Hi, I would like to make... i don't know like a box with some string and motor... Anyone already did something similar ?

    it !doesn't have to be exactly like on the picture. It can roll up or side I don't care

    alt text

    My Project

  • Motion Sensor Stop Working after couple of day
    Dominic BonneauD Dominic Bonneau

    Hum ... it's Arduino pro mini 8v and i power it with USB and an apple power block.

    What should I do instead ?

    Troubleshooting

  • Motion Sensor Stop Working after couple of day
    Dominic BonneauD Dominic Bonneau

    Hi, I have made this motion sensor :

    https://www.mysensors.org/build/motion

    With HC-SR501 PIR Motion Sensor Module and a MQTT gateway

    and after a couple of day it stop working or become less accurate so i need to unplug it and plug it back so it start working fine again

    I unplug every connection and reconnect everything... i fix it up tight in my box so nothing move or unplug it self ..

    Do you have an idea what cause this ?

    Thanks

    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    Ok so i'm still not able to make it work...

    My gateway is an arduino uno and my node a mini pro 3.3v 8mhz ...

    i don't have anny capacitor for the radio and i could pass this afternoon at an electronic store...

    do i need one for my gateway AND my node ?

    on the my sensor web site they recommand 47µF but on the forum i saw at some place that i should use 100µF

    ??

    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    For the sensor it's repeating the something over and over ....

    For the Gateway I got this :

    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:INIT:TSP OK
    0;255;3;0;9;TSM:INIT:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.111.6
    0;255;3;0;9;MCO:REG:NOT NEEDED
    0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
    IP: 192.168.111.6
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    0;255;3;0;9;TSF:SANCHK:OK
    
    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    I can I have a more detailed log ?

    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    Oups... Yeah my bad I was trying something with not the same library of my gateway.

    This is the sketch :

    
    /**
     * The MySensors Arduino library handles the wireless radio link and protocol
     * between your home built sensors/actuators and HA controller of choice.
     * The sensors forms a self healing radio network with optional repeaters. Each
     * repeater and gateway builds a routing tables in EEPROM which keeps track of the
     * network topology allowing messages to be routed to nodes.
     *
     * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
     * Copyright (C) 2013-2015 Sensnology AB
     * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
     *
     * Documentation: http://www.mysensors.org
     * Support Forum: http://forum.mysensors.org
     *
     * This program is free software; you can redistribute it and/or
     * modify it under the terms of the GNU General Public License
     * version 2 as published by the Free Software Foundation.
     *
     *******************************
     *
     * DESCRIPTION
     *
     * Interrupt driven binary switch example with dual interrupts
     * Author: Patrick 'Anticimex' Fallberg
     * Connect one button or door/window reed switch between 
     * digitial I/O pin 3 (BUTTON_PIN below) and GND and the other
     * one in similar fashion on digital I/O pin 2.
     * This example is designed to fit Arduino Nano/Pro Mini
     * 
     */
    
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    #include <SPI.h>
    #include <MySensors.h>
    
    #define SKETCH_NAME "Binary Sensor"
    #define SKETCH_MAJOR_VER "1"
    #define SKETCH_MINOR_VER "0"
    
    #define PRIMARY_CHILD_ID 3
    #define SECONDARY_CHILD_ID 4
    
    #define PRIMARY_BUTTON_PIN 2   // Arduino Digital I/O pin for button/reed switch
    #define SECONDARY_BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch
    
    #if (PRIMARY_BUTTON_PIN < 2 || PRIMARY_BUTTON_PIN > 3)
    #error PRIMARY_BUTTON_PIN must be either 2 or 3 for interrupts to work
    #endif
    #if (SECONDARY_BUTTON_PIN < 2 || SECONDARY_BUTTON_PIN > 3)
    #error SECONDARY_BUTTON_PIN must be either 2 or 3 for interrupts to work
    #endif
    #if (PRIMARY_BUTTON_PIN == SECONDARY_BUTTON_PIN)
    #error PRIMARY_BUTTON_PIN and BUTTON_PIN2 cannot be the same
    #endif
    #if (PRIMARY_CHILD_ID == SECONDARY_CHILD_ID)
    #error PRIMARY_CHILD_ID and SECONDARY_CHILD_ID cannot be the same
    #endif
     
    
    // Change to V_LIGHT if you use S_LIGHT in presentation below
    MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
    MyMessage msg2(SECONDARY_CHILD_ID, V_TRIPPED);
    
    void setup()  
    {  
      // Setup the buttons
      pinMode(PRIMARY_BUTTON_PIN, INPUT);
      pinMode(SECONDARY_BUTTON_PIN, INPUT);
    
      // Activate internal pull-ups
      digitalWrite(PRIMARY_BUTTON_PIN, HIGH);
      digitalWrite(SECONDARY_BUTTON_PIN, HIGH);
    }
    
    void presentation() {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
    
      // Register binary input sensor to sensor_node (they will be created as child devices)
      // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. 
      // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
      present(PRIMARY_CHILD_ID, S_DOOR);  
      present(SECONDARY_CHILD_ID, S_DOOR);  
    }
    
    // Loop will iterate on changes on the BUTTON_PINs
    void loop() 
    {
      uint8_t value;
      static uint8_t sentValue=2;
      static uint8_t sentValue2=2;
    
      // Short delay to allow buttons to properly settle
      sleep(5);
      
      value = digitalRead(PRIMARY_BUTTON_PIN);
      
      if (value != sentValue) {
         // Value has changed from last transmission, send the updated value
         send(msg.set(value==HIGH ? 1 : 0));
         sentValue = value;
      }
    
      value = digitalRead(SECONDARY_BUTTON_PIN);
      
      if (value != sentValue2) {
         // Value has changed from last transmission, send the updated value
         send(msg2.set(value==HIGH ? 1 : 0));
         sentValue2 = value;
      }
    
      // Sleep until something happens with the sensor
      sleep(PRIMARY_BUTTON_PIN-2, CHANGE, SECONDARY_BUTTON_PIN-2, CHANGE, 0);
    }
    

    And this is the log :

    MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.0.1-beta
    TSM:INIT
    TSM:INIT:TSP OK
    TSF:ASID:OK,ID=2
    TSM:FPAR
    TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:NO REPLY
    TSM:FPAR
    TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    TSM:FAILURE
    TSM:FAILURE:PDT
    

    I don’t know why he said no reply my gateway is in 2.0.1 like my sensor. I can ping it .. And receive data from my gateway on my mqtt broker …

    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    Ok set I manualy set my ID to 2 and now a got the :

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=2)
    TSM:FPAR
    TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    
    Troubleshooting

  • Door sensor Radio OK !TSM:FAILURE
    Dominic BonneauD Dominic Bonneau

    Hi i made a door sensor with this exemple : https://www.mysensors.org/build/binary

    And the log always give me this :

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    !TSP:ASSIGNID:FAIL (ID=0)
    !TSM:FAILURE
    TSM:PDT
    TSM:FPAR
    TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    
    Troubleshooting

  • Mqtt and openhab
    Dominic BonneauD Dominic Bonneau

    When you look at the code here :

    https://www.mysensors.org/build/mqtt_gateway

    it doesn't have any place to enter a mqtt server adress it's why I tought it was the server .... If I don't give the mqtt server address in the code how he find it ?

    Troubleshooting

  • Mqtt and openhab
    Dominic BonneauD Dominic Bonneau

    Hi I just finish my first sensor and my first mqtt gateway for my openhab server.

    I try to make an easy door/windows sensor.

    I think everything work because :

    Mqtt gateway : I can ping it and everything seam fine in the log

    Sensor : everything seam Fine in the log AND when I touch the 2 wire together the led flash.

    My real issue is I don't understand the mqtt protocol. I was thinking about testing it to understand it but it's not that easy.

    So: I use a software call mqtt.fx and connect to my mqtt server without any problems but nothing appear when I subscribe to # if I'm right the mqtt gateway is a server so I try to connect to Arduino ip adress with my software and a couldn't ... Is it normal ?

    Troubleshooting

  • two arduino, two avrdude error ..
    Dominic BonneauD Dominic Bonneau

    OMG I think I found my problem ....

    Is it possible to put code into Arduino mini pro with this : https://cdn-shop.adafruit.com/1200x900/954-02.jpg

    Because I check tuto on the web and they all use this :
    https://abra-electronics.com/images/thumbnails/280/217/detailed/134/ARD-FTDI-F(1).jpg

    Thanks

    Troubleshooting

  • two arduino, two avrdude error ..
    Dominic BonneauD Dominic Bonneau

    GOT TWO NEW ARDUINO MINI PRO... SAME MESSAGE AGAIN 😔 ... What does event mean ? What am I doing wrong ...

    ATTENTION : La catégorie '' dans la bibliothèque UIPEthernet n'est pas valide. Définition sur : 'Uncategorized'

    Le croquis utilise 1 066 octets (3%) de l'espace de stockage de programmes. Le maximum est de 30 720 octets.
    Les variables globales utilisent 9 octets (0%) de mémoire dynamique, ce qui laisse 2 039 octets pour les variables locales. Le maximum est de 2 048 octets.
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/
    Guide/Troubleshooting#upload pour suggestions.

    Troubleshooting

  • two arduino, two avrdude error ..
    Dominic BonneauD Dominic Bonneau

    Thank you i'll check !

    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