I need advice with brainstorming my farm project



  • @NeverDie Sorry, forgot to add, don't ignore quad antennae when considering beams, they are much simpler to build than yagi, fairly wideband, all you need do is consider polarisation. A lump of 2x2 cedar, some cross drilled dowels, copper tube or alloy bar for elements, the hardest part is making the bazooka balun and waterproofing it really... Last one I built was a 3 to 1 elliptical which design theory some Japanese guys came up with, pretty amazing performance compared to it's quad original....


  • Hero Member

    @zboblamont
    Well, all this sounds great, but fairly exotic.



  • @NeverDie I suggest some use of Google may dispel any misunderstandings you may hold, it is far from exotic. Most of what is known today is based on professional and amateur experimentation over many decades, little of it is exotic perhaps refined but not beyond anyone with a basic understanding of what is required, it couldn't be else amateurs would be quite incapable of playing with copper and steel wires, aluminium rods, brass, even helium balloons to hoist antennae. R&D on frequencies and antennae preceded much of what is known today in terms of communications, and probably assisted it's progress. Most of antenna theory and development goes back over 100 years, in the supermarket mentality of modern days, the notion of bending a 6mm alloy rod to fulfill your requirements may seem abstract, but radio experimentation preceded your birth, I suggest you might take off the blinkers and look.... 🙂


  • Hero Member

    @zboblamont
    Yes, but not everyone wants to become a quantum mechanic, because for them the more interesting part comes in actually using it. If it's not exotic, it should be easy to buy pre-made.



  • @NeverDie Oh dear, quantum mechanics? Ok, you want to buy, fair enough, others including the OP might prefer to DIY, but fair enough, first hit on Google... http://www.sandpiperaerials.com/product/13-element-zl-special-yagi/



  • @NeverDie DIY, about 10...


  • Hero Member

    You see, this is where your argument falls apart. £74.80 for a Yagi (it's your link) versus around $2.50 for an Ra-01.



  • @NeverDie Not really, there is no argument to fall apart unless you are incapable of some DIY and can do a bit of research, the very foundation of this particular forum.
    I have never met a farmer yet who could not DIY, and even fewer who would shell out good money for a commercial product where they had bits kicking around the yard which could be re-purposed after a little research.
    A Slim-Jim colinear is easily made from some wire and a water pipe, a dipole and reflector from some fence wire and an old bit of tinplate, the sort of material kicking around the average farmyard at no cost at all but with enough gain to easily cover a km or two with an extremely low output power RF unit, sipping by on a couple of AAs.
    The commercial antenna I exampled would be a solution if you required that level of gain (14dBd) to cover long distances such as the ISS, but there are other cheaper antennae from that supplier, the J-pole for instance, 33 quid, but you could build it for 2.
    Each to their own, none of it is rocket science or 'quantum mechanics'...


  • Hero Member

    @zboblamont
    I see. And anyone can properly tune this DIY antenna you're proposing that's made from barnyard scrap without using a network analyzer, right?



  • @NeverDie Jeez, why so negative?
    Why would anybody want to use a network analyser for an antenna?

    If you meant a Grid Dip Oscillator, I made one many moons ago but never used it once. Go figure... Have used a SWR meter to tweak an antenna to 1:1, but usually found it was <1.5 as built which is fine.

    A dipole using straight wire is well documented on these forums and elsewhere, a plate wire or corner reflector spaced correctly forces the lobe in the intended direction with zero effect on SWR, hence making it higher gain, adding reflectors adds to that gain as it narrows the radiated lobe, simple well established science.
    1km should be easy enough on a dipole anyway with line of sight, a reflector or director simply boosts the gain with no hit on consumed power.

    There are a multitude of Ham origin DIY designs for the same band, the commercial J-pole I pointed to was a DIY design, the Slim-Jim a DIY variant on that (from memory a version using the coax only, the commercial ZL again a Ham DIY original, none of this is ground-breaking or difficult to research, but we are talking very long distances with such gain...



  • I have had great success with OpenHAB. If you're not afraid of learning a scripting language, it can be very powerful and flexible.



  • @peterrr
    As a wet-behind-the-ears but reasonably successful novice with MySensors etc., I recommend first thing that you get something, anything, up and running that will cover the whole range of sensor->transport->controller working in a very simple way. This will dramatically help you figure out the parts and pieces. It can be very frustrating and time consuming getting your "hello world" first example of having sensor data appear on some device, as you really don't know which pieces are working and which aren't until you are there.

    Specific suggestions:

    Controller: Start with Domoticz as your controller. Vastly simpler than OpenHAB to get running, and surprisingly useful. Install it on a RPi connected to your LAN.

    Sensor Node: If you have any practical use for wifi as the transport for some of your sensors (i.e. areas with wifi coverage) the simplest sensor/transport is ESP Easy on a ESP8266 such as WeMos Pro Mini or NodeMCU hardware, with any supported temperature sensor such as NRF24L01 or DHT22 (AM2302). These will talk over WiFi directly to Domoticz on a RPi. No code to write or modifiy with ESP Easy.

    In a fraction of a day you can have a controller and working sensor up and running. Knowing your controller actually works is a much easier place to start from with MySensors radios etc.

    Next steps: MySensors sensor nodes can be run on an ESP8266 client gateway without separate radios where Wifi is available, so you can get ahead on how MySensors code works out of the way before tackling radio hardware.

    Finally, for long range/out of wifi scenarios, you can then start messing around with radio transport, which means you need sensors attached to one or many Arduinos which host one or more sensors. To get at the sensor data, you need a controller (Domoticz etc.) to receive the sensor data and make it available on your LAN with a web browser.

    Domoticz is able to forward data to cool things like Grafana/InfluxDB or other dashboards for graphing, consolidating, presentation, etc.

    None of these parts or pieces are too tough for someone with your background. But working on all of them at the same time is a pretty tough learning/debugging process.

    Have fun,

    Tim



  • @Carywin thanks, it's now in the top 3 of my controller options at this stage. So you can see this for managing some sensors and relays on a farm?



  • @Grubstake this is exactly the type of advice I was hoping for, thank you for your response!
    I have Domoticz in my top 3 options for controller, the other 2 OpenHAB and MyController.

    Controller: I will give Domoticz a try. Will one of my older Raspberry Pi's be sufficient?

    Sensor Node: I have some NodeMCU boards with sensors, currently connected to my Wifi. I can try your suggested procedure from simple to more complex, just to get a feel... but yes ultimately I need to make the node network separate from the wifi network with radios etc.

    The Grafana and InfluxDB dashboard sound interesting, I will have a look 🙂



  • @peterrr Yes absolutely. I have it mixing up RFM69 wireless sensors and actuators with MySensors, MQTT sensors on WiFi ESP8266 via PubSubClient and Sonoff-Tasmota, Zigbee lights via Belkin Wemo, and locally-attached sensors on RPi GPIO and RS485 links. It smashes them all together in a very flexible and adaptable way.



  • 0_1503926240560_farm sensors.jpg

    So if this was your farm, what would you do?
    Thus 11 Arduino projects currently and I would like to turn them into nodes. I have a Raspberry Pi to use that I can place of at any one of the Wifi AP's.

    1 sensing when the gate opens
    2 irrigation controller
    3 water level sensor
    4 weather station
    5 hothouse controller
    6 greenhouse controller
    7 - 11 soil and environment sensors

    • all above is Arduinio


  • @peterrr Now that is more interesting but missing one essential, power distribution v battery power... If you can bridge the range with a power supply (with backup) you could relay your nodes to a gateway at that central point, and collate and re-transmit to your controller possibly? 500m is way easier than 1000m... If you have a sheet metal facing to a building at HQ facing the direction of the nodes or can make a reflective facade, perhaps you could dispense with the remote gateway and combine at the receive end ?
    Thoughts ?



  • @peterrr
    My take:
    Put a RFM69-Ethernet MQTT MyS gateway somewhere central like the greenhouse, with a nice 10+db whip up high, and plug the Ethernet into a WiFi AP. Put RFM69s on the other arduino nodes with MyS. Your OpenHAB controller can go anywhere that has a network or WiFi connection, and talk to the sensor net via MQTT. Monitoring and control via the OpenHAB app on a smartphone will work anywhere there's WiFi. Automation is via the Xtend-based rules language which has plenty of examples to work from.



  • @zboblamont
    Power options as follow:
    1 sensing when the gate opens (mains available)
    2 irrigation controller (mains available)
    3 water level sensor (solar/battery power)
    4 weather station (solar/battery power)
    5 hothouse controller (mains available)
    6 greenhouse controller (mains available)
    7 - 11 soil and environment sensors (solar/battery)

    I would say the most central point is the greenhouse (mains available). I have a Wifi AP there that connects with the main Wifi AP and ADSL station. Thus the greenhouse is probably the ideal location for a gateway and controller. This should bring most distances closer, bringing the maximum distances perhaps down to 500-700m.

    The whole farm is pretty much covered with Wifi but I would have liked to keep the nodes -> gateway off our wifi, and only use the wifi for the controller...
    Do you consider the amplified (and slightly optimised) NRF24L01s sufficient for the node network? Or RFM69HW?



  • @peterrr said in I need advice with brainstorming my farm project:

    0_1503926240560_farm sensors.jpg

    So if this was your farm, what would you do?
    Thus 11 Arduino projects currently and I would like to turn them into nodes. I have a Raspberry Pi to use that I can place of at any one of the Wifi AP's.

    What functionality are you looking for when you say "turn them into nodes"? Receiving/logging data from multiple supported sensors for remote display is the simplest and a controller like Domoticz cat be a hub for many types whether DIY or commercial. Controlling remote switches/lights is fairly straightforward. Controlling custom built projects in an interactive way is not so easy. Having a remote node is not like having your Arduino plugged in to your computer (serial monitor, software updates). If you are trying to integrate monitoring and control of multiple devices the controller and its capabilities become the big issue.

    My experience so far is mostly monitoring sensors and simple controllers (DIY thermostat/humidistat). RPi works fine but is somewhat fragile IMHO with write fatigue on the card storage. If you want something a lot faster and more robust an inexpensive headless desktop computer works well. I got up to speed on a single RPi 3 running domoticz, with a MySensors radio gateway, InfluxDB and Grafana. Once I found it would work I moved it to an Intel NUC computer with SSD storage running Ubuntu Server. Way faster and easy to back up on my LAN.

    If you are a software developer type itching to learn a complex system for maximum flexibility OpenHAB has a good reputation (and steep learning curve). If you want to get get something working quickly and get your bearings Domoticz is a lot closer to plug and play, who knows it may suit your needs.

    I like to try to find the simplest/fastest way to get the job done as I'd rather be using this stuff rather than fussing around under the hood all the time...I already have other hobbies.


Log in to reply
 

519
Online

7.0k
Users

7.9k
Topics

84.8k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.