Navigation

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

    Topics created by Corvl

    • Corvl

      Stay on version 1.5 or move to 2.1.1 on my vera plus and vera 3?
      Vera • • Corvl  

      6
      0
      Votes
      6
      Posts
      1768
      Views

      Corvl

      Thanks a lot , that is a big re-assurance , since that servo is hooked up on my heating system...... and it is still winter. Still , there are 2 or 3 threads here on this forum saying they cab's get version 2.x to work with vera on Ui7. I have a spare vera lite on Ui7 I will try this version 2.x on the vera lite first. But it will be for next week. Thanks a lot so far!, Cor
    • Corvl

      Relais sketch, auto switch on again after x seconds
      General Discussion • • Corvl  

      9
      0
      Votes
      9
      Posts
      2889
      Views

      Corvl

      @ BartE , thanks a lot , I changed all the _Off to _OFF and the same with the On , gw. wait as well. also the 500 to 5000 Working perfectly ! Many thanks I haven't had a definite anwer yet if libabry 2.x works on vera , I have only read about problems . For the moment I stick to 1.5 edit : one small thing I just noticed , when I switch via the vera Gui the relais to off , it nicely goes back to on after 5 seconds , but it doesn't report back to vera that it is again in an on state. is there still something wrong with the code? Again many thanks, Cor For future reference: // Example sketch showing how to control physical relays. // This example will remember relay state even after power failure. #include <MySensor.h> #include <SPI.h> #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 1 // Total number of attached relays #define RELAY_ON 1 // GPIO value to write to turn on attached relay #define RELAY_OFF 0 // GPIO value to write to turn off attached relay MySensor gw; void setup() { // Initialize library and add callback for incoming messages gw.begin(incomingMessage, AUTO, true); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Relay", "1.0"); // Fetch relay status for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) gw.present(sensor, S_LIGHT); // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) if (gw.loadState(sensor) == RELAY_OFF) { digitalWrite(pin, RELAY_OFF); gw.wait(5000); digitalWrite(pin, RELAY_ON); } } } void loop() { // Alway process incoming messages whenever possible gw.process(); } void incomingMessage(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { // Change relay state if (message.getBool() == RELAY_OFF) { digitalWrite(message.sensor-1+RELAY_1, RELAY_OFF); gw.wait(5000); digitalWrite(message.sensor-1+RELAY_1, RELAY_ON); } // Store state in eeprom gw.saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }```
    • Corvl

      Ethernet gateway shows up on vera , but doens't want to include devices
      Troubleshooting • • Corvl  

      19
      0
      Votes
      19
      Posts
      4675
      Views

      rejoe2

      @hoggin At least according to my experience, just downgrading the AVR Board Definitions to <=1.6.11 using the Board-Manager within an recent version of the IDE should have done the trick; downgrade of the other libs including mysensors (2.1.1) was not necessary. In Addition: For the serial Gateways this kind of trouble seems to be solved since version 1.6.18 of the AVR-Board definitions (shipped since several weeks).
    • Corvl

      Backup internet acces
      My Project • • Corvl  

      4
      0
      Votes
      4
      Posts
      2117
      Views

      GuyP

      I agree, take a look at a better router/firewall. I use pfsense, which can handle any number of WAN connections and run them however you want, failover or load balanced etc. I'd then run a VPN service to allow reconnect. You could use dynamic DNS to allow you to connect to the dynamic one from the Mobile network.
    • Corvl

      Garage door controller/checker
      My Project • • Corvl  

      6
      0
      Votes
      6
      Posts
      6893
      Views

      p0lar

      how about adding an ultrasonic sensor to tell if your car is IN the garage or not?
    • Corvl

      Changing from serial to ethernet gateway
      Troubleshooting • • Corvl  

      30
      0
      Votes
      30
      Posts
      11116
      Views

      petewill

      @jlieffort
    • Corvl

      Wierd issue with a nano
      Troubleshooting • • Corvl  

      4
      0
      Votes
      4
      Posts
      1430
      Views

      Corvl

      Thanks for the anwers. Clearing the eprom did the Job. Cor
    • Corvl

      How to combine 2 sketches
      Development • • Corvl  

      27
      0
      Votes
      27
      Posts
      15350
      Views

      Corvl

      Oh sorry Timo , I said it wrong. What I was trying to say was , that it is a pity , that there are so many fails sending the status. But now trying to send it every 30 seconds, by removing that little piece of coding is very acceptable. Again , many thanks for your time helping me, Cor
    • Corvl

      Building an IR controller
      Troubleshooting • • Corvl  

      4
      0
      Votes
      4
      Posts
      2365
      Views

      Corvl

      pffff , 84 pages ..... it is something I have to read I guess . Thanks for the info ..... I will report here if it is working ...... Cor
    • Corvl

      Wireless transciever with external antenne does not work.
      Troubleshooting • • Corvl  

      3
      0
      Votes
      3
      Posts
      1004
      Views

      Corvl

      okidoki, will do , thanks, Cor
    • Corvl

      USB2 port LED flickering very fast.
      Troubleshooting • • Corvl  

      1
      0
      Votes
      1
      Posts
      586
      Views

      No one has replied

    • Corvl

      Controlling a ( or some) device(s) via IR
      My Project • • Corvl  

      2
      0
      Votes
      2
      Posts
      2012
      Views

      Dan S.

      Check out comments here: http://forum.mysensors.org/topic/124/ir-remote-control/1
    • Corvl

      Device to remotely turn a thermostat
      My Project • • Corvl  

      7
      5
      Votes
      7
      Posts
      8120
      Views

      Corvl

      Answer to myself: I use now Imperihome , with that you can use your own icons
    • Corvl

      servo on arduino uno works , but not with nano
      Troubleshooting • • Corvl  

      5
      0
      Votes
      5
      Posts
      3353
      Views

      korttoma

      @Corvl your wellcome
    • Corvl

      Servo only does 90 degrees
      Troubleshooting • • Corvl  

      2
      0
      Votes
      2
      Posts
      1956
      Views

      Corvl

      Just recieved a responce via another forum. I ran in the same problem. I fixed it by replacing the line: myservo.write(SERVO_MAX + (SERVO_MIN-SERVO_MAX)/100 * val); // sets the servo position 0-180 by the following 2 lines of code: val = map(val, 0, 100, 0, 180); // scale 0%-100% between 0 and 180) myservo.write(val); // sets the servo position 0-180