@hek Thanks this worked
smokey1300
@smokey1300
Best posts made by smokey1300
Latest posts made by smokey1300
-
RE: 3 Switch Pins but 1 Not Updating Vera
@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?
-
RE: 3 Switch Pins but 1 Not Updating Vera
@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?
-
3 Switch Pins but 1 Not Updating Vera
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.
.
#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; } }
-
RE: Compile errors UI7 and Mysensors v1.5
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. -
Compile errors UI7 and Mysensors v1.5
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
-
RE: My sensorboard MYS 1.0beta
@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?
-
RE: My sensorboard MYS 1.0beta
Ordered 5 kits today looking forward to getting started. For the NRF24L01 you don't need a 4.7uf capacitor anymore?
-
RE: PCB Boards for MySensors
@Cory Great I'll check it out. Do you power any with 3v battery? If so how long does it last? Thanks again.
-
RE: PCB Boards for MySensors
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?