Navigation

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

    Posts made by Dean

    • RE: disappointed so far in VeraLite... have I chosen poorly?

      I don't have any experience with iPhone, but I can confirm that the Vera app is horribly slow. When my Vera 3 was on UI5, that app was heaps quicker. I've recently took the plunge and upgraded to UI7, but the app for that is just too slow to be useful I reckon. I have an android phone and use Autovera which is instantaneous. I also have Imperihome running on an android tablet and it too is quick.

      My experience too is that it has made very little difference between communicating with a zwave switch or a Mysensors switch with regards to speed.

      posted in Vera
      Dean
      Dean
    • RE: Need a little help to alter my sketch

      @rvendrame thanks for that mate! I will give that a go.

      So that I am clear on the understanding, I have it so that it is waiting for a change, and it needs to equal zero. So by removing the zero bit, it should just be waiting for a change. I suppose the reason for it to be waiting for both is to reduce the chance of it missing a change in value, which I could see happening, but it may not be a big deal, so I'll change the code and try it.

      Thanks again for your help πŸ™‚

      posted in Troubleshooting
      Dean
      Dean
    • Need a little help to alter my sketch

      Hey everyone,

      I have a few on the Mini Rboards working very well for control of a few light switches, using Vera 3 as my controller. What is driving me and the family a little crazy is how the manual light switches have to work so that they operate the Mini Rboard.

      Here is my sketch:

      // Example sketch fΓΆr a "light switch" where you can control light or something 
      // else from both vera and a local physical button (connected between digital
      // pin 14 and GND).
      // This node also works as a repeader for other nodes
      
      #include <MySensor.h>
      #include <SPI.h>
      #include <Bounce2.h>
      
      #define RELAY_PIN  4  // Arduino Digital I/O pin number for relay 
      #define BUTTON_PIN  14  // Arduino Digital I/O pin number for button -A0 which is D14
      #define CHILD_ID 1   // Id of the sensor child
      #define RELAY_ON 1
      #define RELAY_OFF 0
      
      Bounce debouncer = Bounce(); 
      int oldValue=0;
      bool state;
      MySensor gw;
      MyMessage msg(CHILD_ID,V_LIGHT);
      
      void setup()  
      {  
        gw.begin(incomingMessage, AUTO, true);
      
        // Send the sketch version information to the gateway and Controller
        gw.sendSketchInfo("Relay & Button", "1.0");
      
       // Setup the button
        pinMode(BUTTON_PIN,INPUT);
        // Activate internal pull-up
        digitalWrite(BUTTON_PIN,HIGH);
        
        // After setting up the button, setup debouncer
        debouncer.attach(BUTTON_PIN);
        debouncer.interval(5);
      
        // Register all sensors to gw (they will be created as child devices)
        gw.present(CHILD_ID, S_LIGHT);
      
        // Make sure relays are off when starting up
        digitalWrite(RELAY_PIN, RELAY_OFF);
        // Then set relay pins in output mode
        pinMode(RELAY_PIN, OUTPUT);   
            
        // Set relay to last known state (using eeprom storage) 
        state = gw.loadState(CHILD_ID);
        digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
      }
      
      
      /*
      *  Example on how to asynchronously check for new messages from gw
      */
      void loop() 
      {
        gw.process();
        debouncer.update();
        // Get the update value
        int value = debouncer.read();
        if (value != oldValue && value==0) {
            gw.send(msg.set(state?false:true), true); // Send new state and request ack back
        }
        oldValue = value;
      } 
       
      void incomingMessage(const MyMessage &message) {
        // We only expect one type of message from controller. But we better check anyway.
        if (message.isAck()) {
           Serial.println("This is an ack from gateway");
        }
      
        if (message.type == V_LIGHT) {
           // Change relay state
           state = message.getBool();
           digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
           // Store state in eeprom
           gw.saveState(CHILD_ID, state);
          
           // Write some debug info
           Serial.print("Incoming change for sensor:");
           Serial.print(message.sensor);
           Serial.print(", New status: ");
           Serial.println(message.getBool());
         } 
      }
      
      

      So to use mu current light switches, I have to turn them on and then off, for the light to operate. If I only turn the switch on, the light will operate, but to operate it again I have to turn the switch off and then on again.

      I have looked into a momentary switch, but to get the ones to fit are quite expensive...

      Is there a way to alter the sketch to make it work better? IE can I have the sketch open the relay when the binary switch is connected, and then close the relay when it is disconnected?

      thanks for your help πŸ™‚

      posted in Troubleshooting
      Dean
      Dean
    • RE: Sensebender Micro

      Thankyou @tbowmo

      posted in Announcements
      Dean
      Dean
    • RE: Relay Outlet + Button + OpenHab + Tasker + Android Wear = Freaking Awesome!

      @kunall said:

      @mikeones I apologize to get back to you so late. You might already have figured out a way but I wanted to let you know that after many days of testing my relay actuator with OpenHab, I'm very happy to tell you that it's working flawless. No issues with the stuffing inside the gand box whatsoever. I have not seen any other option to power the arduino thru 110V - 240V. Using a cellphone charger seems to be common.

      Please let me know if you have any other solution, I would certainly give it a try.

      Thanks!

      Edit : gang box

      Mate, I like what you have done!

      I have a similar set up as you, with the only big difference being that I use Vera 3 and you use Openhab. I also use Autovoice and have that going all the time on a couple spare phones and tablets, and they are always listening. I have named my automation set up, so when I say its name and then a command, it goes and does it. I was using Ok Google, but I wanted to feel more futuristic lol so instead of asking google to do something for me, the 'person' in my home automation does it lol

      Anyways, I actually have a question about your specific example here... I have the exact same relay, but I was never able to get it to work. I see that for this example you were only using one of the relays, which I admit I never tried, but can you share as to whether you have ever got both relays to work? I would love to know, because the stupid thing almost sent me crazy! I have two of them and could never get either of them to work.

      posted in My Project
      Dean
      Dean
    • RE: Sensebender Micro

      Hope this isn't too silly a question.... The temp/humidity sensing, that works 'out of the box' without requiring me actually connecting these sensors, right?

      And another question, would it be possible to turn the temp/hum function off and just have a motion sensor connected which would never do anything unless it sensed movement and then send a message to the gateway?

      I've been flat out at work for a couple months so I've been away from this for a while... πŸ™‚

      posted in Announcements
      Dean
      Dean
    • RE: Bluetooth Proximity Sensor

      I was thinking about going this route, but until last weekend I was using Tasker and having it tell Vera that I am here when my phone connects to my Wifi. I bought a new phone and I can't get it to stay connected when it hasn't been used in a while, so I have to rethink...

      While a Mysensors option could be good, what I am going to do is use my many Android tablets that I have throughout my home and have them always searching my my mobile. With them all throughout my home, I won't have to worry about bluetooth range.

      Sorry it isn't a Mysensors option, but I thought I would share what I am going to do πŸ™‚

      posted in Development
      Dean
      Dean
    • RE: only 1 device found while including sensor

      What I always do is I keep the sensor connected to my macbook with the serial monitor running. I start the Gateway on the Vera dashboard and I reset the sensor. I watch the serial monitor to see what is "ok" and at the same time watch what the Gateway found in the way of devices.when it goes through the devices in the serial monitor and not all the devices have been found by the Gateway, I then reset the sensor again.

      I keep doing this until all the executed devices are found. This has been working for me πŸ™‚

      posted in Troubleshooting
      Dean
      Dean
    • RE: all the gear, no idea

      I concur with the above... I could never get a serial gateway working on my Vera 3 so I built the Ethernet version and it's been going great.

      Maybe it's just me, but help seemed to be more available when I first started here, but that's not to say you won't learn stuff... like I said, it could just be me πŸ™‚

      What board are you using to make your relay and your gateway? If I remember right, they could only get one type of board to work as a serial gateway...

      And Arduino is for you πŸ™‚ If I can get these little boards to work, then anyone can πŸ™‚

      posted in General Discussion
      Dean
      Dean
    • RE: Humidity/Temp Sensor Issues

      Mine was doing the same thing when I had it plugged into my laptop while viewing the serial monitor. Once I connected it to my Gateway and into Vera, all is working. I got really frustrated at this, but it just seemed like it wanted to be connected to something first.
      Sorry, probably not much help, but thought I would share my experience.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Actioning switch is far from instant

      @hek said:

      Does the repeater send any sensor data itself? The dashboard "last update" only reflect data coming from the repeater.

      No, all it is is a repeater. The only node that could send its signal through it is my doorbell which won't send anything until the doorbell is pressed, so I guess that all makes sense.

      I only have one sensor that is communicating all the time, which is my garage door switch which also sends temp values. The funny thing is that it is this switch that is the most reliable and ALWAYS works the instant I ask it to. the relay switches that I have turning operating some lights, that is the only thing I have them doing and there are times that I am having to repeatedly press there button on the dashboard to finally get the relay to work.

      posted in Vera
      Dean
      Dean
    • RE: Actioning switch is far from instant

      @hek can you have a look at the RepeaterNode sketch just to make sure it's correct, because I have one of them running as it is in the example and it appears to be sleeping; according to the dashboard it hasn't updated for 8 hours...

      posted in Vera
      Dean
      Dean
    • RE: Actioning switch is far from instant

      I've noticed that almost all of my repeater nodes are falling asleep. Only one is staying awake all the time. I am almost certain that all of my sensors were programmed the same way ensuring that they all stayed awake, because they are all mains powered.

      Could this be the issue? The sketch that is staying awake has this : gw.begin(NULL, AUTO, true);

      The ones sleeping say this : gw.begin(incomingMessage, AUTO, true);

      If that isn't the issue, is there some way in Vera that I can change a configuration to stay awake, or do I have to change ands upload new sketches again?

      posted in Vera
      Dean
      Dean
    • RE: Mysensors, Vera and UI7

      Thanks

      I was running UI5 for a while but thought I would take a stab at UI7 again. I'm now back to UI5.

      posted in Vera
      Dean
      Dean
    • RE: Mysensors, Vera and UI7

      I guess there must be something going on with me hardware if I'm the only one with this issue..

      posted in Vera
      Dean
      Dean
    • Mysensors, Vera and UI7

      I'm still having problems with communication between my sensors and my Vera 3. I have no issues with updates coming from the sensor, but when I send a message to a sensor it doesn't always work. The wife is getting a title frustrated when lights won't turn on at night.....

      I seem to be having this issue around the same time i upgraded from UI5 to UI7.. So my question is, do we have anyone here who has actually found UI7 to work just as well for them as UI5?

      posted in Vera
      Dean
      Dean
    • RE: [contest] My 4-in1 LED-dimmer/motion/temp-hum sensor

      Nice work! Thanks for sharing all that you've done.

      posted in My Project
      Dean
      Dean
    • RE: Actioning switch is far from instant

      OK, tried turning on my lights using Vera and one worked pretty quickly, as in the second try, but the other one took about 15 tries.

      None of my sensors or the Ethernet Gateway are using a capacitor across the power input so I might give that a go. It just seems weird because I haven't required these before.

      posted in Vera
      Dean
      Dean
    • Actioning switch is far from instant

      Hi all,

      I have a couple arduino relays which I am using for my lights in my home. They work really well, but if they haven't been used for a while, they won't respond until I try them a couple times. It is like they go to sleep and need a couple messages sent to them before they actually work.

      Is that possible? I am using the Relay with Button Actuator pretty much as it is set up in the example. To me it doesn't look like it sleeps, as they are also repeaters. Am I right?

      Some help as to what the problem might be would be great πŸ™‚

      posted in Vera
      Dean
      Dean
    • RE: Motion Sensing sketch which is also a repeater

      @hek said:

      What does the serial monitor say? Is it spewing out debug prints?

      It crashes. That was my first indication that someone was wrong... I always have my sensors connected to my computer when I put them through their initial inclusion with Vera, and when I did this the monitor brought up a couple lines and then froze. Even after resetting the board nothing would come up. It also only brought up one device on Vera rather than two... I did forget to write "Repeater Node" in line 18 originally, so could that be the whole reason to my issue maybe?

      Anyways, I'm off to work now but will test again when I get home tonight πŸ™‚

      posted in Troubleshooting
      Dean
      Dean
    • Motion Sensing sketch which is also a repeater

      Hey!

      I continue to have fun playing around with these sensors πŸ™‚ I have built a wall plug which is powered by 240V and then reduced to 5v to power my motion sensor. I think I have a problem though... I have never had any issues with my Vera 3, but about an hour after powering up this sensor I had my first issue with Vera and I had to reboot it. I think it might be my sketch sending too much info, and I was wondering if someone could review it for me?

      https://codebender.cc/sketch:76040

      One thing I did forget is to add the "Repeater Node" on line 18, so now that it is added I haven't tested it yet, but something tells me that it is not the issue.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Arduino 220V AC wattmeter

      @axillent looks like there are a few people like me who are interested in your set up... Would you mind sharing more details one what you did, actual hardware setup, sketch, issues, etc?

      posted in My Project
      Dean
      Dean
    • RE: Current Monitoring - How?

      @boozz Thanks so much for your advice and guidance, very much appreciated! πŸ™‚

      I have two of these ordered, so while waiting for them I will do a little more research. Right now I am building a door bell which includes a mobile phone so I can use it as a video intercom πŸ™‚ Having some issues with Vera on UI7 so am downgrading right now back to UI5. But all that is a little off topic lol

      But thanks again for your help!

      posted in Hardware
      Dean
      Dean
    • RE: Current Monitoring - How?

      Yes that was my plan. I might have to do a little more research, because from what I have read, it should work fine... Anyone else have any opinions regarding this sensor? Would also appreciate some sharing on how others have created current monitoring sensors πŸ™‚

      posted in Hardware
      Dean
      Dean
    • Current Monitoring - How?

      I've just bought a couple of these : http://www.ebay.com.au/itm/191286280578?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

      The plan is to create a smart switch which my washing machine and dryer will plug into, and using these sensors I am hoping to receive a notification through my Vera 3 to tell me that the appliance has finished. The problem is that even though I have read some stuff on here about current monitoring, there isn't a great deal of info detailing examples of sketches and the like.

      So I was wondering if anyone here has actually created a mysensor which does similar to what I am after?
      thanks
      dean

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      @gadu said:

      Cool, this one is also interesting!

      http://imall.iteadstudio.com/im120618001.html

      I agree... I placed an order with them last and it arrived yesterday. I bought a few items including a couple more Mini Rboards, but I also bought what you linked. Not sure what I will do with it, but at that price I couldn't say no. πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      @ServiceXp said:

      @Dean Does the build make it difficult to swap out the rboard, and demote that temperamental rboard to say controlling a light? For me, I consider the garage door to be one of those more important functions.. πŸ™‚

      You will wire one side of the switch to the pin you want to use on the rboard and the other switch to GND. When you initialize the pin, you need to use INPUT_PULLUP eg: pinMode(buttonPin, INPUT_PULLUP)

      http://arduino.cc/en/Reference/pinMode

      Hope that helps...

      Hi @ServiceXp , that is the exact info I was after! Thank you very much πŸ™‚

      At present the build is just the board, radio and motion sensor all just wired up and sitting above the lightswitch in the garage. For me it was kind of a test to see if I could do this. Like I said, my wife is home all the time so there is no way the garage door will open without someone knowing. If the board keeps working as it is presently, then I'll feel more confident in using the board again somewhere else. But so far it is working very well, which I am very pleased about πŸ™‚ But you're right, keeping a garage secure is something that is usually pretty important, the other thing is that there is no internal access into our home, so between that and my wife being home, personally I am ok with the present arrangement.

      Thanks again for your help!

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      @gregl thanks for your suggestion, that thought actually did come to mind when I was trying to troubleshoot what was going on. I had been using 4 AA batteries to power it, and they had been used for quite some time, so I ended up locating an old mobile phone charger and used that to power it. The board has been working reliably every since, but I am reluctant to use the board for anything important.

      @ServiceXp yes you heard me right πŸ™‚ the board is currently doing all those things, but I'm not depending on it. My wife is home all the time, so if for some reason the relay decides to open the garage, she will hear it and close out back up. It is my first sensor, and even though it hasn't come together as well as all of you, in still proud of myself for building it, and even though it's reliability is debatable, I like the idea of keeping it running at this stage because it gives me a smile every time I open the Vera dashboard πŸ™‚

      So can anyone give me a little hand with how the actual switch part is supposed to work? Thanks in advance πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      lol I ended up with a board that now malfunctions sometimes πŸ™‚ For some reason the relay began to turn on and off repeatedly, then it stopped working altogether, and now it seems to be working as it should... when my son was running past me the other day which lead to the board falling on the ground, it must have fixed whatever the problem is! In any case, I won't be using that relay for anything too important. I have it in my garage now; it opens and closes the garage door, has a motion sensor and tells me if someone goes into the garage, and it is also sending me the temperature outside. I am happy πŸ™‚

      So now I want to use another one of these boards to turn a light on, but I want to also have a separate switch which will operate through the board. So basically I am going to use the Garagedoor sketch mentioned above, which is the same as the "Relay with button actuator". I understand what pins I need to assign, but I am a little confused as to how I need to wire up the switch. Am I just completing a circuit, or am I supplying power as the trigger?

      posted in Hardware
      Dean
      Dean
    • RE: $8 Lamp (Outlet) "Smart Plug" Module

      Thanks for sharing your video! I just finished watching it and I feel like I just learned more in that time than I have in months! If you can't tell, I am a bit of a visual learner πŸ™‚ It was really helpful to be able to watch the whole project come together from beginning to end.

      posted in My Project
      Dean
      Dean
    • RE: 3-in-1 Humidity Temp and Motion

      Nice set up!

      posted in My Project
      Dean
      Dean
    • RE: Embed code in forum using CodeBender

      My username over there is bajaguy75

      It would be a bummer if others are having issues too, because being able to use Codebender certainly got me excited to work on these, because it was just so easy. But if I am the only one with the issue, then that's fine, because at the moment I am trying to learn to do this on my computer anyways.

      posted in Announcements
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      Ok what I have done is uploaded the sketch that is exampled above which has the temp sensor. Instead of the motion sensor, I will use a switch, and I'll connect the two wires to the 433 module spot; one wire to GND, and the other to DATA. I am hoping that this will mean that when the switch is activated it will operate.

      Gonna go test πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: Embed code in forum using CodeBender

      @hek said:

      I just deleted all personal libraries and re-cloned them from mysensors. Still works fine for me when verifying an example.

      Does the cloned libraries pop up under "Personal Libraries"?

      Yep it does. Maybe it is my browser, because I still can't get it to work...

      Anyways, I now do it all on my computer, and if no one else if having issues with Codebender, then let's not worry about it, coz it must be an issue on my end... I do wish though that I knew what was wrong...

      posted in Announcements
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      lol scratch that last comment.... I have been looking at that PDF and I have no idea how the A0 pin is D14.

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      I just worked out where you get the info regarding what pin is what πŸ™‚ you have a link in the sketch πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      Thanks for the tips @gregl!

      I am trying to see if I can build this with the sensors that I have, so I can keep my wife happy. So far I am not doing a very good job lol

      One of my problems is not knowing which pin is what on this board. I see that you stated above that A0 is D14; how do you find this out?

      The other thing I was wondering about is this: If I set up this sensor and garage door to only ever open/close using either my controller sending the message or me pressing a button, then do I even need a reed switch to determine what state the door is in? Can the sketch keep count of the state?

      I like your suggested sketch above; in fact I like both examples, and would like to merge the two. The one above with the motion sensor- I don't need that bit, but I like having a temp sensor. What I would like to do is have the temp sensor and instead of the motion sensor I have a switch. Does that sound possible?

      My wife has given me the rest of the night off, so I'll see what I can come up with πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: Embed code in forum using CodeBender

      Try creating a new personal account and then give it another go.

      Just quickly, I have tried these sketches and none will compile:

      • Motion sensor
      • Relay Actuator
      • Dallas Temperature Sensor
      • Light Sensor

      Out of 4 sketches, none of them worked. My guess is that if I had the time and tested them all, that I would have the same problem.

      Each time I try to verify the sketch, I get 62 errors.

      posted in Announcements
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      I've decided to try and do a little more with this board. I initially programmed it to only operate the relay on and off to activate the garage door opener, but it's time for me to push myself lol and do more πŸ™‚

      The problem with how I have it now, is that my Vera 3 doesn't know if the door is open or closed. I was going to add a tilt sensor to the board and have that mounted to the actual door, which I think would mean that it could send a message reporting if it is closed or not. But then I started thinking about the example above which included a switch.

      So using the relay and the switch to operate the garage door, would that then work to keep Vera 3 in the loop as to whether or not the door is open or closed?

      If I don't get a response soon, I'll just build it and see what happens πŸ™‚

      Thanks in advance for everyones help! I have already learnt a lot from this site πŸ™‚

      posted in Hardware
      Dean
      Dean
    • RE: Embed code in forum using CodeBender

      @hek said:

      @Dean

      Have you cloned the libraries to your local repository when testing a sketch?

      This is what I do....

      I go to one of the pages which gives instructions on how to make a sensor. Here is one: http://mysensors.org/build/ethernet_gateway

      For this example, I then scroll to the sketch example and I chose to clone and edit.

      A new tab opens and this message comes up:
      Heads up! This sketch uses the following personal libraries:
      DigitalIO
      MySensors

      It asks me what I want to do: Clone sketch and libraries, clone just the sketch or leave. I choose clone sketch and libraries.

      From here I chose the board and ask it to verify, and it fails, telling me that there are 62 errors.

      When I hover the mouse over #include <stdarg.h> it says "File not detected"

      When I first found this site a long time ago, and Codebender was just impliemented, it was always working. My guess is that libraries aren't being kept updated?? I am now just building the sketches on my computer without using Codebender, but when I first started playing with the fact that Codebender was so easy and user-friendly helped heaps.

      posted in Announcements
      Dean
      Dean
    • RE: Embed code in forum using CodeBender

      Codebender doesn't seem to be working as it was planned. I have tried a few of the sketches, but when I try to compile them I get around 62 errors. Looks to me like libraries have been edited and then never updated. It is a pity, because this whole site made it look so simple to make your own sensors and stuff, and when Codebender started and I started looking to give this ago, it really did look really easy to play around with these things and give it a go. Now though it just isn't as easy as it used to be.

      I'll keep trying though πŸ™‚

      posted in Announcements
      Dean
      Dean
    • RE: rboard - Cheap relay/radio/arduino board ~$10

      Woohoo! After stuffing around with a sketch for my Ethernet Gateway that was never complete to begin with, I have got that working and then made my first sensor using this board!!! L-)

      posted in Hardware
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      Look like the problem all along was the sketch that I copied from Codebender. In the end it appears that I wasn't the only problem with the issue, and this is where I found the fix : http://forum.mysensors.org/topic/737/uno-w5100-shield-not-pinging

      posted in Troubleshooting
      Dean
      Dean
    • RE: Problem with ethernet gateway

      I had the same problem, I asked for help but no one seemed to know what the problem was. After following the above link and changing the sketch as suggested, it looks like it all is working!

      posted in Troubleshooting
      Dean
      Dean
    • RE: UNO W5100 Shield not pinging.

      @MatrixIII thank you so much for sharing this solution!!! You may have seen my posts a couple months or so ago, and I just couldn't get this to work, but after making the change that you did, it seems to be working. thanks!

      posted in Controllers
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      Sorry it looks like a mess. It is the same as the example on this site.

      I will see if I can work out how to post it in a more readable way.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(
      • Copyright (C) 2013 Henrik Ekblad henrik.ekblad@gmail.com
      • Contribution by a-lurker
      • 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
      • The EthernetGateway sends data received from sensors to the ethernet link.
      • The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
      • The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program.
      • COMPILING WIZNET (W5100) ETHERNET MODULE
      • Edit RF24_config.h in (libraries\MySensors\utility) to enable softspi (remove // before "#define SOFTSPI").

      • VERA CONFIGURATION:
      • Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin.
      • E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003
      • LED purposes:
        • RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
        • TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
        • ERR (red) - fast blink on error during transmission error or recieve crc error
      • See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.

      */

      #include <DigitalIO.h> // This include can be removed when using UIPEthernet module
      #include <SPI.h>
      #include <MySensor.h>
      #include <MyGateway.h>
      #include <stdarg.h>

      // Use this if you have attached a Ethernet ENC28J60 shields
      //#include <UIPEthernet.h>

      // Use this fo WizNET W5100 module and Arduino Ethernet Shield
      #include <Ethernet.h>

      #define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
      #define INCLUSION_MODE_PIN 3 // Digital pin used for inclusion mode button

      #define RADIO_CE_PIN 5 // radio chip enable
      #define RADIO_SPI_SS_PIN 6 // radio SPI serial select
      #define RADIO_ERROR_LED_PIN 7 // Error led pin
      #define RADIO_RX_LED_PIN 8 // Receive led pin
      #define RADIO_TX_LED_PIN 9 // the PCB, on board LED

      #define IP_PORT 5003 // The port you want to open
      IPAddress myIp (192, 168, 178, 66); // Configure your static ip-address here COMPILE ERROR HERE? Use Arduino IDE 1.5.7 or later!

      // The MAC address can be anything you want but should be unique on your network.
      // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
      // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
      byte mac[] = { 0xDE, 0xED, 0xBE, 0xEF, 0xFE, 0xED }; // DEED BEEF FEED

      // a R/W server on the port
      EthernetServer server = EthernetServer(IP_PORT);

      // No blink or button functionality. Use the vanilla constructor.
      MyGateway gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN, INCLUSION_MODE_TIME);

      // Uncomment this constructor if you have leds and include button attached to your gateway
      //MyGateway gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);

      char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
      int inputPos = 0;

      void setup()
      {
      // Initialize gateway at maximum PA level, channel 70 and callback for write operations
      gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);

      Ethernet.begin(mac, myIp);

      // give the Ethernet interface a second to initialize
      delay(1000);

      // start listening for clients
      server.begin();
      }

      // This will be called when data should be written to ethernet
      void writeEthernet(char *writeBuffer) {
      server.write(writeBuffer);
      }

      void loop()
      {
      // if an incoming client connects, there will be
      // bytes available to read via the client object
      EthernetClient client = server.available();

      if (client) {
      // if got 1 or more bytes
      if (client.available()) {
      // read the bytes incoming from the client
      char inChar = client.read();

           if (inputPos<MAX_RECEIVE_LENGTH-1) { 
             // if newline then command is complete
             if (inChar == '\n') {  
                // a command was issued by the client
                // we will now try to send it to the actuator
                inputString[inputPos] = 0;
      
                // echo the string to the serial port
                Serial.print(inputString);
      
                gw.parseAndSend(inputString);
      
                // clear the string:
                inputPos = 0;
             } else {  
               // add it to the inputString:
               inputString[inputPos] = inChar;
               inputPos++;
             }
          } else {
             // Incoming message too long. Throw away 
             inputPos = 0;
          }
        }
      

      }
      gw.processRadioMessage();
      }

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      @hek said:

      This only looks like warnings .. Which IDE version?

      1.0.6.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      OK, I am trying again on my computer, and I get a lot further than using Codebender. Again, the message I am getting is this:

      In file included from /Users//Documents/Arduino/libraries/DigitalIO/DigitalIO.h:34,
      from EthernetGateway.ino:34:
      /Users/
      /Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h: In member function 'bool SoftI2cMaster::writeScl(bool)':
      /Users//Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h:143: warning: no return statement in function returning non-void
      /Users/
      /Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h: In member function 'bool SoftI2cMaster::writeSda(bool)':
      /Users/***/Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h:156: warning: no return statement in function returning non-void

      Can anyone point me in the right direction as to how to fix this?

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      I don't think there is any point continuing to try and sort this out using Codebender. My guess is that the libraries attached to the sketches don't match anymore or something like that, because I have tried both types of gateways, as well as a couple sensors, and I'm getting errors all the time.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      It's annoying me that I can't get this to work lol

      As a test, I tried verifying the code using Codebender for the serial gateway, and I get the same result. 62 errors.

      When I hover the mouse over this : #include <stdarg.h> it says "file not detected"

      😞

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      Time to give up for a while. Already lost a day trying to get this to work....

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      I'm still trying.... Now I am using Firefox and the errors have gone back up to a total of 62 errors. I just tried it again with Chrome, and it too is reporting the same number of errors.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      OK I really am going mad..... still trying to get this to work, and now I am getting the same error as I did in the first post. What's going on????

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      OK, I think there is a fault, because I even tried to verify an old sketch that did once work, and I get the same number of errors and it tells me there are missing libraries. 😞 😞

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      This is funny..... when I posted the screenshot of the error in my first post, there was only one error; now it looks like there are 62, and I didn't change a thing... Anyone know what's going on?

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      OK, I am starting to feel really dumb... Many months ago I had the Ethernet Gateway working great, but I left it to pursue other stuff until now. I figure I would update stuff, but I should have left it all alone...

      Anyways, I am tired of trying to do this on my computer and not getting anywhere, so I am trying again using Codebender. For everyones info, this is what Codebender tells me:

      Looks like your project uses header files or libraries that do not exist in our system, in your personal libraries or in your sketch. More info

      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.cpp:12:
      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.h:15:
      In file included from libraries/16221_cb_personal_lib_MySensors/Sensor.h:18:
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:47:3: error: unknown type name 'uint8_t'
      uint8_t ce_pin; /< "Chip Enable" pin, activates the RX or TX role */
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:48:3: error: unknown type name 'uint8_t'
      uint8_t csn_pin; /
      < SPI Chip select /
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:51:3: error: unknown type name 'uint8_t'
      uint8_t payload_size; /< Fixed size of payloads */
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:53:3: error: unknown type name 'uint64_t'
      uint64_t pipe0_reading_address; /
      < Last address set on pipe 0 for reading. /
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:73:8: error: unknown type name 'uint8_t'
      RF24(uint8_t _cepin, uint8_t _cspin);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:73:24: error: unknown type name 'uint8_t'
      RF24(uint8_t _cepin, uint8_t _cspin);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:139:25: error: unknown type name 'uint8_t'
      void read( void
      buf, uint8_t len );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:162:32: error: unknown type name 'uint8_t'
      bool write( const void
      buf, uint8_t len );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:182:24: error: unknown type name 'uint64_t'
      void openWritingPipe(uint64_t address);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:208:24: error: unknown type name 'uint8_t'
      void openReadingPipe(uint8_t number, uint64_t address);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:208:40: error: unknown type name 'uint64_t'
      void openReadingPipe(uint8_t number, uint64_t address);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:217:26: error: unknown type name 'uint8_t'
      void closeReadingPipe( uint8_t pipe ) ;
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:245:18: error: unknown type name 'uint8_t'
      bool available(uint8_t* pipe_num);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:279:32: error: unknown type name 'uint8_t'
      bool write( const void* buf, uint8_t len, const bool multicast );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:312:36: error: unknown type name 'uint8_t'
      bool writeFast( const void* buf, uint8_t len );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:325:36: error: unknown type name 'uint8_t'
      bool writeFast( const void* buf, uint8_t len, const bool multicast );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:355:40: error: unknown type name 'uint8_t'
      bool writeBlocking( const void* buf, uint8_t len, uint32_t timeout );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:355:53: error: unknown type name 'uint32_t'
      bool writeBlocking( const void* buf, uint8_t len, uint32_t timeout );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:403:19: error: unknown type name 'uint32_t'
      bool txStandBy(uint32_t timeout);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:419:24: error: unknown type name 'uint8_t'
      void writeAckPayload(uint8_t pipe, const void* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:419:55: error: unknown type name 'uint8_t'
      void writeAckPayload(uint8_t pipe, const void* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:485:41: error: unknown type name 'uint8_t'
      void startFastWrite( const void* buf, uint8_t len, const bool multicast );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:511:37: error: unknown type name 'uint8_t'
      void startWrite( const void* buf, uint8_t len, const bool multicast );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:537:3: error: unknown type name 'uint8_t'
      uint8_t flush_tx(void);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:607:19: error: unknown type name 'uint8_t'
      void setRetries(uint8_t delay, uint8_t count);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:607:34: error: unknown type name 'uint8_t'
      void setRetries(uint8_t delay, uint8_t count);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:614:19: error: unknown type name 'uint8_t'
      void setChannel(uint8_t channel);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:628:23: error: unknown type name 'uint8_t'
      void setPayloadSize(uint8_t size);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:637:3: error: unknown type name 'uint8_t'
      uint8_t getPayloadSize(void);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:650:3: error: unknown type name 'uint8_t'
      uint8_t getDynamicPayloadSize(void);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:699:20: error: unknown type name 'uint8_t'
      void setAutoAck( uint8_t pipe, bool enable ) ;
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:712:21: error: unknown type name 'uint8_t'
      void setPALevel ( uint8_t level );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:722:4: error: unknown type name 'uint8_t'
      uint8_t getPALevel( void );
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:802:3: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg, uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:802:25: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg, uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:802:38: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg, uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:802:52: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg, uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:810:3: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:810:25: error: unknown type name 'uint8_t'
      uint8_t read_register(uint8_t reg);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:820:3: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, const uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:820:26: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, const uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:820:45: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, const uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:820:59: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, const uint8_t* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:829:3: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, uint8_t value);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:829:26: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, uint8_t value);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:829:39: error: unknown type name 'uint8_t'
      uint8_t write_register(uint8_t reg, uint8_t value);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:840:3: error: unknown type name 'uint8_t'
      uint8_t write_payload(const void* buf, uint8_t len, const uint8_t writeType);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:840:42: error: unknown type name 'uint8_t'
      uint8_t write_payload(const void* buf, uint8_t len, const uint8_t writeType);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:840:61: error: unknown type name 'uint8_t'
      uint8_t write_payload(const void* buf, uint8_t len, const uint8_t writeType);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:851:3: error: unknown type name 'uint8_t'
      uint8_t read_payload(void* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:851:35: error: unknown type name 'uint8_t'
      uint8_t read_payload(void* buf, uint8_t len);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:858:3: error: unknown type name 'uint8_t'
      uint8_t flush_rx(void);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:865:3: error: unknown type name 'uint8_t'
      uint8_t get_status(void);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:874:21: error: unknown type name 'uint8_t'
      void print_status(uint8_t status);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:883:25: error: unknown type name 'uint8_t'
      void print_observe_tx(uint8_t value);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:896:46: error: unknown type name 'uint8_t'
      void print_byte_register(const char* name, uint8_t reg, uint8_t qty = 1);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:896:59: error: unknown type name 'uint8_t'
      void print_byte_register(const char* name, uint8_t reg, uint8_t qty = 1);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:909:49: error: unknown type name 'uint8_t'
      void print_address_register(const char* name, uint8_t reg, uint8_t qty = 1);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:909:62: error: unknown type name 'uint8_t'
      void print_address_register(const char* name, uint8_t reg, uint8_t qty = 1);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:923:3: error: unknown type name 'uint8_t'
      uint8_t spiTrans(uint8_t cmd);
      ^
      libraries/16221_cb_personal_lib_MySensors/utility/RF24.h:923:20: error: unknown type name 'uint8_t'
      uint8_t spiTrans(uint8_t cmd);
      ^
      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.cpp:12:
      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.h:15:
      libraries/16221_cb_personal_lib_MySensors/Sensor.h:23:10: fatal error: 'EEPROM.h' file not found
      #include <EEPROM.h>
      ^
      62 errors generated.

      Looks to me like the issue is maybe the linked libraries aren't accessable to everyone, which is why it repports that they are missing??

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      Nope, can't work out what is wrong..... 😞 I have no idea why I am getting this error.

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      Nope, looks like I celebrated too early....Vera can't communicate with the gateway, and I can't ping it. After uploading the sketch again I dug a little more and a find this:

      n file included from /Users//Documents/Arduino/libraries/DigitalIO/DigitalIO.h:34,
      from EthernetGateway.ino:35:
      /Users/
      /Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h: In member function 'bool SoftI2cMaster::writeScl(bool)':
      /Users//Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h:146: warning: no return statement in function returning non-void
      /Users/
      /Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h: In member function 'bool SoftI2cMaster::writeSda(bool)':
      /Users/*/Documents/Arduino/libraries/DigitalIO/SoftI2cMaster.h:159: warning: no return statement in function returning non-void

      At this stage I have no idea what I need to do to fix this, but I'll look and see what I find. Fingers crossed...

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      I think I have fixed it!!!

      It tells me that it is done compiling, so I hope that means it worked!! πŸ™‚

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      I just did what the output suggested. Here is what I get:

      Arduino: 1.0.6 (Mac OS X), Board: "Arduino Uno"
      /Users//Desktop/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/Users//Desktop/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Users//Desktop/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Users//Desktop/Arduino.app/Contents/Resources/Java/libraries/SPI -I/Users/*****/Desktop/Arduino.app/Contents/Resources/Java/libraries/Ethernet /var/folders/b6/mgvw5s257pd5pyz73nwwt4_r0000gn/T/build8097901850594856372.tmp/EthernetGateway.cpp -o /var/folders/b6/mgvw5s257pd5pyz73nwwt4_r0000gn/T/build8097901850594856372.tmp/EthernetGateway.cpp.o
      EthernetGateway.ino:41:90: warning: DigitalIO.h: No such file or directory
      EthernetGateway.ino:43:22: warning: MySensor.h: No such file or directory
      EthernetGateway.ino:44:25: warning: MyGateway.h: No such file or directory
      EthernetGateway:75: error: 'MyGateway' does not name a type
      EthernetGateway:81: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
      EthernetGateway.ino: In function 'void setup()':
      EthernetGateway:87: error: 'gw' was not declared in this scope
      EthernetGateway:87: error: 'RF24_PA_LEVEL_GW' was not declared in this scope
      EthernetGateway:87: error: 'RF24_CHANNEL' was not declared in this scope
      EthernetGateway:87: error: 'RF24_DATARATE' was not declared in this scope
      EthernetGateway.ino: In function 'void loop()':
      EthernetGateway:116: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
      EthernetGateway:121: error: 'inputString' was not declared in this scope
      EthernetGateway:126: error: 'gw' was not declared in this scope
      EthernetGateway:132: error: 'inputString' was not declared in this scope
      EthernetGateway:141: error: 'gw' was not declared in this scope

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      😞 I'm hopeless..... I had this working months ago with the same parts, but it won't work. Last time I used the Codebender plugin, because it just wouldn't work on the computer. Now that I have to edit stuff, i am trying to do it on the computer, but it won't work. This is what I get:
      This report would have more information with
      "Show verbose output during compilation"
      enabled in File > Preferences.
      Arduino: 1.0.6 (Mac OS X), Board: "Arduino Uno"
      EthernetGateway:75: error: 'MyGateway' does not name a type
      EthernetGateway:81: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
      EthernetGateway.ino: In function 'void setup()':
      EthernetGateway:87: error: 'gw' was not declared in this scope
      EthernetGateway:87: error: 'RF24_PA_LEVEL_GW' was not declared in this scope
      EthernetGateway:87: error: 'RF24_CHANNEL' was not declared in this scope
      EthernetGateway:87: error: 'RF24_DATARATE' was not declared in this scope
      EthernetGateway.ino: In function 'void loop()':
      EthernetGateway:116: error: 'MAX_RECEIVE_LENGTH' was not declared in this scope
      EthernetGateway:121: error: 'inputString' was not declared in this scope
      EthernetGateway:126: error: 'gw' was not declared in this scope
      EthernetGateway:132: error: 'inputString' was not declared in this scope
      EthernetGateway:141: error: 'gw' was not declared in this scope

      posted in Troubleshooting
      Dean
      Dean
    • RE: Help with setup

      @CaptainZap said:

      I've tried flashing the gateway with IDE and I get a compilation error on line:
      MyGateway gw(DEFAULT_CE_PIN, DEFAULT_CS_PIN, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
      saying that 'MyGateway' does not name a type. Any ideeas ?

      Thanks.

      LE: Figured it out... my bad, compiling now.
      LLE: Still doesn't work 😐
      LLLE: Tried using these chinese nano ripoffs but they are not detected at all by Vera. These CH340G chips suck so bad... My only way of getting this to work is with my Uno. Will appreciate any help anyone can provide.

      I have the same problem, can you share what you did to resolve the issue?

      posted in Vera
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      @hek said:

      @daulagari said:

      http://www.mysensors.org/build/ethernet_gateway

      I can clone and verify sketch without any problems on my mac with chrome (just tested).

      But if you want to use the Ethernet sketch with the W5100 you still have to use the download Arduino IDE and modify things in sourcecode according to instructions.

      Ok cool, thanks for checking this for me πŸ™‚

      I am trying to use the W5100. I am having troubles trying to understand how to follow the instructions on how to edit. Can I edit and then still use the Codebender Plugin?

      posted in Troubleshooting
      Dean
      Dean
    • RE: Can't load from Codebender :-(

      I'm using Chrome on my Mac, and it should be working.

      And yes, I used the code from the link you provided.

      I'd say someone has changed the libraries.

      posted in Troubleshooting
      Dean
      Dean
    • Can't load from Codebender :-(

      Hi,
      My first go in a long while at making sensors and playing with Arduino. I have build the Ethernet Gateway, and am trying to upload the sketch using my Chrome browser and the Codebender Plugin. I Clone and edit the sketch, and it asked me if I want to use the libraries, and I say yes. I ask it to verify the code, and I get this message:

      Looks like your project uses header files or libraries that do not exist in our system, in your personal libraries or in your sketch. More info

      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.cpp:12:
      In file included from libraries/16221_cb_personal_lib_MySensors/Relay.h:15:
      libraries/16221_cb_personal_lib_MySensors/Sensor.h:23:10: fatal error: 'EEPROM.h' file not found
      #include <EEPROM.h>
      ^
      1 error generated.

      Can someone tell me what the problem is?

      posted in Troubleshooting
      Dean
      Dean