Navigation

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

    Stuart Middleton

    @Stuart Middleton

    8
    Reputation
    54
    Posts
    681
    Profile views
    2
    Followers
    1
    Following
    Joined Last Online

    Stuart Middleton Follow

    Best posts made by Stuart Middleton

    • Stand alone lighting control system

      Hi all,

      I've been playing with MySensors for a while now but have finally gotten around to ordering some boards and components en masse. My plan is to automate my lighting for my entire house by replacing all of the light switches with nodes and placing a relay / dimmer node on each light fitting. I also want this to be independent to my home control system. I.e. I don’t want all my lights to stop working when I reboot my Pi for instance.

      The way I see it is, either I write custom switch and light nodes, each of which can receive a command to tie light to switch and they then talk directly to each other, or I write software on the gateway to manage these connections and turn light A on when switch Q is switched etc. Either way I’d like to be able to re-assign things without dismantling the network and re-programming each device. I'd also like to monitor and record every switch event and be able to send light control messages via the gateway from external software when needed.

      I was thinking the easiest way would be to put software on the gateway to map switches to lights which could be set up with external software but would be stand alone once set up. This option would be the simpler to write. However, a direct node-to-node system may be advantageous in the case of communication problems, with the proximity of the switch to light being an advantage. I don’t know how reliable larger networks are (I’m estimating 25-30 lights and 15-20 light switch nodes).

      Also, would it be sensible to have this network completely separate to any other networks I may want in the house (temperature sensors for instance) in order to limit traffic?

      I’m going to start work on this and I guess I’ll see how it evolves, but I would be interested in hearing other people’s opinions.

      Thanks,
      Stu

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: Boiler control from MAX! Cube to Drayton Boiler via Raspberry Pi/Vera/Mysensors.

      It depends on how much of a beginner you are. If you're OK with very basic electronics, happy to install some software on a Raspberry Pi and can connect a mains voltage wire to your boiler without killing yourself, then it's pretty simple.

      At a minimum, you'll need a Raspberry Pi PC, a mains relay board controllable from the Pi (very cheap on eBay) and some cable.

      posted in My Project
      Stuart Middleton
      Stuart Middleton
    • RE: Booting sensors without Gateway connection?

      I was just about to ask this very question!

      So, assuming I don't get a connection on startup and drop into my main loop, what do I call periodically to try to connect?

      I have a similar system that can operate autonomously. I do, however, need the main loop to be pretty much real-time, which means I can't afford a 3-second stall every X seconds while it tries to establish a connection with the gateway. Is there an asynchronous way to attempt a connection?

      Thanks,

      posted in Development
      Stuart Middleton
      Stuart Middleton
    • RE: Stand alone lighting control system

      Thanks for the info. Regarding the rebooting of the controller. I was thinking if the controller held the logic to rough switches to lights, then rebooting (or having it crash) would mean the system would fail. Doing node-to-node or building the logic into the gateway means the lighting would always work with no controller attached. Hope that makes sense.

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: Booting sensors without Gateway connection?

      Excellent, thanks. Just what I need.

      posted in Development
      Stuart Middleton
      Stuart Middleton
    • RE: OTA without EEPROM

      Awesome! That has saved me a lot of work 😉

      I knew I should have spent some time doing the research before emptying my ideas into the forum! 🙂

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: OTA without EEPROM

      The project where I had to write to flash?

      This was a network connected temperature and humidity sensor for a store room which had a built-in OLED display but was also network connected and hosted a website for graphing data output and displaying historical and real-time data. I wrote to flash so I could update the web page and other data OTA which was too big to fit in RAM or EEPROM and I didn't want to store on the SD card in case it was removed for any reason. It wasn't MySensors connected, unfortunately 🙂

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton

    Latest posts made by Stuart Middleton

    • RE: Boiler control from MAX! Cube to Drayton Boiler via Raspberry Pi/Vera/Mysensors.

      Hey, Anthony.

      Yeah, the cube is the temperamental bit. It forgets the sensors every few weeks/months.

      I have opened up the python web page to the web, secured behind a password, and it's OK to use. I mainly use it to monitor the system and look at the pretty graphs. I think the CC1101 with OpenHAB or custom software is the way to go.

      Let me know if you get the Pi and CC1101 installed. I can't recall exactly what was wrong but I think it may be one of the packages that it tries to download no longer exists. It's something I really want to get fully working the way I want it, but to be honest it does a good job anyway.

      Stu

      posted in My Project
      Stuart Middleton
      Stuart Middleton
    • RE: Boiler control from MAX! Cube to Drayton Boiler via Raspberry Pi/Vera/Mysensors.

      Hey, @demusss. I'm still using the python script talking to the MAX! Cube. It's a little temperamental but works most of the time. I finally got my hardware (CC1101) but, if I remember right, the homegear instructions listed above don't seem to work anymore. There's a missing module? I can't recall now. I'm sure I could sort it out but I just haven't had time.

      Ideally, I'd like to talk to the system myself via the CC1101 and write the software myself instead of relying on OpenHAB but time is the limiting factor, unfortunately.

      Maybe I'll pick it up again this weekend and try and get the CC1101 comms working.

      Stu

      posted in My Project
      Stuart Middleton
      Stuart Middleton
    • RE: Amazon Echo (Alexa) and Google Home control of MySensors

      @Pigsy I've gone back to this in an attempt to get it working with Google Home. However, it isn't as simple as it first seemed. I can't get it working with the ESP MAC address so don't know what it's doing. I suspect the WeMo app would need to register it first which isn't possible since it doesn't emulate that part of the setup.

      If I had an actual real device I could probably sniff the network and emulate this part too, then (assuming the WeMo servers don't require a WeMo reserved MAC) it may work. Unfortunately I don't have a WeMo device or the time to reverse engineer the app setup so for now it's just Alexa compatible 😞

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: 💬 OH MySensors RGBW Controller

      @Sergio-Rius Oh well, it doesn't look too hard to adapt for the error.

      posted in OpenHardware.io
      Stuart Middleton
      Stuart Middleton
    • RE: 💬 OH MySensors RGBW Controller

      Thanks, @LastSamurai, I went and compared the DIrty PCB files with the v1.3 ones on OpenHardware.IO and they are indeed different. It looks like the DIrtyPCB link is out of date and still has the error on them.
      @Sergio-Rius would be very grateful if you could update those files 🙂

      posted in OpenHardware.io
      Stuart Middleton
      Stuart Middleton
    • present() not sending or being received?

      I've been running a small test setup for some time with just 1 node and 1 gateway. For some reason, in the past week or so, I've noticed that the "present" doesn't either send or get to the gateway. I'm using MYSController to look at the messages but if I delete the node and let it re-register itself, it only gets its name and sometimes 1 of the 4 sensors presented. It once got 2 of them. I don't think it's a transmission problem as the node can happily send hundreds of quick fire messages without dropout.

      Has anyone encountered this? Can anyone think of a reason this would happen before I start debugging the code?

      Thanks,

      posted in Development
      Stuart Middleton
      Stuart Middleton
    • RE: OTA without EEPROM

      The project where I had to write to flash?

      This was a network connected temperature and humidity sensor for a store room which had a built-in OLED display but was also network connected and hosted a website for graphing data output and displaying historical and real-time data. I wrote to flash so I could update the web page and other data OTA which was too big to fit in RAM or EEPROM and I didn't want to store on the SD card in case it was removed for any reason. It wasn't MySensors connected, unfortunately 🙂

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: OTA without EEPROM

      Awesome! That has saved me a lot of work 😉

      I knew I should have spent some time doing the research before emptying my ideas into the forum! 🙂

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • OTA without EEPROM

      I've been involved in a project recently that needed to write to FLASH memory at runtime. This made me think about OTA updates of MySensor nodes. As I understand it, MySensors uses an external EEPROM to store the update in then rewrites the FLASH from this EEPROM. I'm thinking, would it be possible to do this without the EEPROM?

      This is what I'm thinking... Let's say your sketch takes up 55% of atmega328 FLASH (based on a recent sketch of mine). You can write an independent sketch that could handle comms, downloading and flashing that can sit at top of memory. Assuming it is small enough to fit in with your existing sketch and any replacement sketch you may upload. It would obviously have to be a little more intelligent than a dumb flash bootloader. For instance, it would need to know if a download has failed or is partial and be able to communicate this back to the controller and only reboot when the entire new sketch is flashed.

      I think it would be a pain to write and be very limited in flexibility regarding the size of the sketches you can upload, but it would mean you could make nodes without having custom boards with EEPROM built-in or adding EEPROMs to your simple designs.

      Am I crazy, or is this something that would be useful to some? I'd certainly find it useful.

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton
    • RE: Amazon Echo (Alexa) and Google Home control of MySensors

      It is indeed. But I've designed a home lighting control system that is completely stand alone so needs no controller. You can still add a controller if you want, but the actual messages and switching are all contained either in the nodes or on the gateway. I wanted a robust system that didn't rely on a separate PC to function when there was no real need for one.

      So for me, being able to add Alexa into the lighting system without relying on a controller is useful.

      posted in General Discussion
      Stuart Middleton
      Stuart Middleton