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
S

smokey1300

@smokey1300
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Compile errors UI7 and Mysensors v1.5
    S smokey1300

    @hek Thanks this worked :)

    Development

  • 3 Switch Pins but 1 Not Updating Vera
    S smokey1300

    @akbooer Yes this is what I was seeing on UI7 but nothing on sensor pin for sensor door 1. I was powering it from my USB but I changed it to board(MYS11) power 5v and now it sends the data.

    This is good now but now I see delays and some times 2 sensors report both on but only 1 is grounded. I'm not sure if that has to do with debounce timers perhaps?

    Development pro mini pins switches

  • 3 Switch Pins but 1 Not Updating Vera
    S smokey1300

    @BulldogLowell Thanks I will try that in the future it's a bit hard SMD resistors.

    If you see the last line on the serial monitor it looks to me it appears to be sending the data...right?

    Development pro mini pins switches

  • 3 Switch Pins but 1 Not Updating Vera
    S smokey1300

    Having trouble getting the Pro-mini Arduino pins to update my Veralite. As you see the send looks like it should be updating but nothing or maybe I am missing something. In my sketch I am using pins 3,4,5 and pins 3 and 5 are updating fine. I'm running MySensors Plugin V1.4 and API v1.5 and UI7.

    .Anduino_serial.jpg
    Vera_status.jpg

    #include <MySensor.h>
    #include <SPI.h>
    #include <Bounce2.h>
    
    #define NUMBER_OF_SWITCHES 3
    #define RADIO_ID 88
    
    MySensor gw;
    Bounce debouncer[NUMBER_OF_SWITCHES];
    
    int oldValue[NUMBER_OF_SWITCHES];
    byte switchPin[NUMBER_OF_SWITCHES] = {3,4,5}; //<<<<<<<<<<< set your switch pins here
    
    MyMessage msg(RADIO_ID,V_TRIPPED);
    
    void setup()  
    {  
      gw.begin(NULL, RADIO_ID, false);
      // Send the sketch version information to the gateway and Controller
        gw.sendSketchInfo("Garage Node", "1.2c");
      
      for (int i = 0; i < NUMBER_OF_SWITCHES; i++)
      {
        pinMode(switchPin[i],INPUT_PULLUP);
        debouncer[i] = Bounce();
        debouncer[i].attach(switchPin[i]);
        debouncer[i].interval(5);
      }
      for (int i = 0; i < NUMBER_OF_SWITCHES; i++)
      {
        gw.present(i, S_DOOR);
        gw.wait(250);
      }
    }
    //
    void loop() 
    {
      for (int i = 0; i < NUMBER_OF_SWITCHES; i++)
      {
        debouncer[i].update();
        int value = debouncer[i].read();
        if (value != oldValue[i]) 
        {
          gw.wait(250);
          gw.send(msg.setSensor(i).set(value==LOW ? true : false),false); 
        }
        oldValue[i] = value;
      }
    } 
    
    Development pro mini pins switches

  • Compile errors UI7 and Mysensors v1.5
    S smokey1300

    No Hek that was a good call I think it was 1.0.6 so I loaded 1.6.5 and now I get this error:

    Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Mini, ATmega328"

    In file included from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:12:0:
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:39:28: error: 'DEFAULT_CE_PIN' was not declared in this scope
    MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:39:59: error: 'DEFAULT_CS_PIN' was not declared in this scope
    MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp: In constructor 'MyGateway::MyGateway(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:27:167: error: no matching function for call to 'MySensor::MySensor(uint8_t&, uint8_t&)'
    MyGateway::MyGateway(uint8_t _cepin, uint8_t _cspin, uint8_t _inclusion_time, uint8_t _inclusion_pin, uint8_t _rx, uint8_t _tx, uint8_t _er) : MySensor(_cepin, _cspin) {
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:27:167: note: candidates are:
    In file included from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:15:0,
    from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:12:
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:158:2: note: MySensor::MySensor(MyTransport&, MyHw&)
    MySensor(MyTransport &radio =new MyTransportNRF24(), MyHw &hw=new MyHwDriver()
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:158:2: note: no known conversion for argument 1 from 'uint8_t {aka unsigned char}' to 'MyTransport&'
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:149:7: note: MySensor::MySensor(const MySensor&)
    class MySensor
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:149:7: note: candidate expects 1 argument, 2 provided
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp: In member function 'void MyGateway::begin(rf24_pa_dbm_e, uint8_t, rf24_datarate_e, void (
    )(char
    ))':
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:40:20: error: 'setupRepeaterMode' was not declared in this scope
    setupRepeaterMode();
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:76:39: error: 'setupRadio' was not declared in this scope
    setupRadio(paLevel, channel, dataRate);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:77:36: error: 'BASE_RADIO_ID' was not declared in this scope
    RF24::openReadingPipe(WRITE_PIPE, BASE_RADIO_ID);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:79:23: error: cannot call member function 'void RF24::startListening()' without object
    RF24::startListening();
    ^
    Error compiling.

    In file included from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:12:0:
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:39:28: error: 'DEFAULT_CE_PIN' was not declared in this scope
    MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:39:59: error: 'DEFAULT_CS_PIN' was not declared in this scope
    MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp: In constructor 'MyGateway::MyGateway(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:27:167: error: no matching function for call to 'MySensor::MySensor(uint8_t&, uint8_t&)'
    MyGateway::MyGateway(uint8_t _cepin, uint8_t _cspin, uint8_t _inclusion_time, uint8_t _inclusion_pin, uint8_t _rx, uint8_t _tx, uint8_t _er) : MySensor(_cepin, _cspin) {
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:27:167: note: candidates are:
    In file included from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.h:15:0,
    from C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:12:
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:158:2: note: MySensor::MySensor(MyTransport&, MyHw&)
    MySensor(MyTransport &radio =new MyTransportNRF24(), MyHw &hw=new MyHwDriver()
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:158:2: note: no known conversion for argument 1 from 'uint8_t {aka unsigned char}' to 'MyTransport&'
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:149:7: note: MySensor::MySensor(const MySensor&)
    class MySensor
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MySensor.h:149:7: note: candidate expects 1 argument, 2 provided
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp: In member function 'void MyGateway::begin(rf24_pa_dbm_e, uint8_t, rf24_datarate_e, void (
    )(char
    ))':
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:40:20: error: 'setupRepeaterMode' was not declared in this scope
    setupRepeaterMode();
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:76:39: error: 'setupRadio' was not declared in this scope
    setupRadio(paLevel, channel, dataRate);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:77:36: error: 'BASE_RADIO_ID' was not declared in this scope
    RF24::openReadingPipe(WRITE_PIPE, BASE_RADIO_ID);
    ^
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors\MyGateway.cpp:79:23: error: cannot call member function 'void RF24::startListening()' without object
    RF24::startListening();
    ^
    Error compiling.

    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

    Development

  • Compile errors UI7 and Mysensors v1.5
    S smokey1300

    Using a Veralite with UI7.
    Newest arduino MySensors library v1.5.
    Using the newest UI7 Luup files.

    I am trying to compile the very simple switch example given with the MySensor arduino examples on ProMini but is not working.

    In file included from BinarySwitchSensor.ino:30:
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors/MySensor.h:158: error: expected type-specifier before 'MyHwDriver'
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors/MySensor.h:158: error: default argument for parameter of type 'MyHw&' has type 'int'
    C:\Users\Wayne\Documents\Arduino\libraries\MySensors/MySensor.h:158: error: expected ',' before 'MyHwDriver'

    I can't seem to understand whats happening. Am I missing a reference? Can someone help? Thanks

    Development

  • My sensorboard MYS 1.0beta
    S smokey1300

    @Mrlynx I was thinking of 3v battery powering at least 2 of the boards. My sensors will be DHT11 and 18B20. Can you suggest any simple ways to conserve power on the circuit? Would it be better to just add a external boosting regulator for instance?

    Hardware

  • My sensorboard MYS 1.0beta
    S smokey1300

    Ordered 5 kits today looking forward to getting started. For the NRF24L01 you don't need a 4.7uf capacitor anymore?

    Hardware

  • PCB Boards for MySensors
    S smokey1300

    @Cory Great I'll check it out. Do you power any with 3v battery? If so how long does it last? Thanks again.

    Hardware

  • PCB Boards for MySensors
    S smokey1300

    Thanks for the reply Cory. I like the design only thing is I have a hard time soldering SMT components. I might order them and tough it out anyways. I appreciate the documentation as it helps a lot. Do you have the schematic too?

    Hardware

  • PCB Boards for MySensors
    S smokey1300

    I am trying to find a new sensor board design and I came across this one on OSH Park. Only thing is I don't who's board design or what documentation goes with it. Anyone have any ideas which one it is? Could it be Mean Penguin version?
    https://oshpark.com/shared_projects/uXIff7XO

    Hardware
  • Login

  • Don't have an account? Register

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