Category: Automation

Anything to do with automation, sensors, controllers, services, web etc

  • Analysing, Designing and Implementing a Core Set of Procedures and Services

    This last month has been us concentrating on analysing what we are going to have in the way of a network, joining up all our microcontrollers and how they will talk to each other including providing a data stream of information to be recorded in our databases.
    This is an ongoing project and it will stretch into Phase 6, which is where we implements and commissioning of the various Utilities throughout the House and Garage. We are getting to a point where we do need to start designing the hardware level for the network subsystems, connecting each microcontroller distributed right around a room, or outside somewhere. There will be a master controller that will monitor this local network and then make a record of the activities plus passing on commands into the from the wider scope.

    We spent this month having a good tidy up of our various computer systems including rebuilding our old file system and creating a much more modular system running an Unix based platform. We got a build from the TrueNAS organisation which actually uses the FreeBSD implementation of Unix. We now have complete separated servers running on the machine, one for the Web side of things, another for the Database engine, a third for the File Storage itself. We will have other servers setup and running like a Plex Server to allow for media streaming too. The File Server makes backups of all our critical data and documents, copying a set completely off-site as well.

    Another area is making a connection to the national Met Office gateway and downloading their hourly prediction dataset for the next 48 hours from the time you request this service. It provides a forecast of temperature, wind speed, rain amount and their generic weather codes indicating those cloudy symbols or bright sunshine etc. This is very useful because we can then make an intelligent decision to whether we need to charge up the battery overnight .. or not as the case maybe. We can programme the Solis Inverter (this handles the Solar Panels and the nighttime charging) and tell it how much energy we wish to put into the batteries. We have written a series of PHP scripts to make the connection to their data gateway and translate their data into our database design. We can now run a query and acting on the information about our Solar Panels (like their elevation and compass direction), we can predict to how much Solar energy we could generate and act accordingly.

    We have also downloaded all the Solis data that has been recorded since we have installed the Solar Panels and also we have transformed this data and loaded this into our database as well. We can now see what our Solar Panels has been generating. We can compare against an average ten year sample of the weather condition at our Roselea location (using the European Space Agency’s satellite weather analyser that scans the entire Planet) – you can see the monthly breakdown below and get some idea of where we are. Amazingly, we are doing quite well against the predicted forecasted we had used and calculated for our 7 year pay-back plan.

    MonthActualPredicted
    September 2022289kWh324kWh
    October 2022460kWh355kWh
    November 2022204kWh251kWh
    December 2022167kWh209kWh
    January 2023207kWh229kWh
    February 202385kWh330kWh
    Totals1712kWh1698kWh
    Solar values from our system

    As you can see, we are actually slightly ahead of schedule .. so far .. it is all down to the weather !!

    As I said before, this is an on-going project and we decided that we will cycle between these two phases, 5 and 6, on a weekly basis. We do need to get on with the house and regain some grounds that we had lost because of all the work we have done on installing the Solar Panels, Batteries and Storage Heater etc.

  • Another order from China

    After buying the valves last week, we started looking for some of the other things needed for automating the house.
    The next things are

    1. Flow sensors – to measure how much water the motorised valve are letting through.
    2. Servo motors – To control how much air is supplied/extracted from each room.
    3. Push button switches – Needed for control panels

    I actually used Alibaba’s request for quote to get prices for the flow sensors and received 10 quotes from $5 to $1.79 each. After looking at a few and asking for shipping costs a settled on a supplier. Luckily they were also able to supply the Servo’s and Samples of  various switches at a good price. This time the order was just under $500 including $160 of shipping.

    We now have to wait for the 2 order to arrive and then we will have to pay import duty and VAT.

  • Taken the Plunge and Ordered Motorised Valves from China

    After a long period of analysis, testing and weighing up the risks, we have placed an order for motorised water control valves from China, directly with the original manufacturer.

    Motorised Valve

    It is just the unknown and sheer distance involved with this venture that is the risk but we had our goals and we wanted to realise them without having to pay a very high price for a similar device sourced in UK or even Europe. China has now proved themselves to be a reliable source of material and devices, or they wouldn’t be where they are now. We have paid about £13 a valve against £35 locally.
    So we have spent nearly $1400 (plus $600 for shipping) on a set of water stop valves that can be controlled by a computer. We love the idea of automation and we always dreamed of having a smart house and hence this is an investment towards that goal. We had bought a sample valve from China a couple of weeks ago and analysed it, tested it and it all seems good and solid. So we are now having well over a hundred motorised valves coming, most of them are 15mm bore size but a couple will be the larger 25mm bore for the main water pipes we have laid out in the house.

  • Creating the Automation Development Environment

    This second stream of work have been tackling the long-term goals of developing the large range of electronic devices, controllers, sub-systems and management services.
    Shaun has been building up a Development Environment to aid us in writing, analysing, implementing, testing and building finished products that will be integrated into the fabric of our house. One of the tool is an editor that will make it so much easier for Shaun to write, compile and test lots of code, without having to rely on the vast majority of the off-the-shelf offerings that uses all visual presentation with mouse controls and hardly no keyboard awareness.
    It is an opportunity to get this process started while we wait for the the glass to come, and the Editor is coming along very nicely, with a highly configurable input control and language layout of the different types of source code that needs to be written and compiled.

    Stephen has also been working on the Electronic designs, by looking at various software to run the microcomputers in these devices.