Navigation

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

    Grubstake

    @Grubstake

    16
    Reputation
    41
    Posts
    630
    Profile views
    1
    Followers
    1
    Following
    Joined Last Online

    Grubstake Follow

    Best posts made by Grubstake

    • RE: I'm the Definition of a Newbie...

      @joedirt16
      A lot depends on your background and how much of this is completely new to you. MySensors website assumes you have a certain level of knowledge and experience. To build something with MySensors you will need background in several broad areas:

      1. Electronics hardware in general. Wiring together various electronic components. Selecting and buying parts and pieces. Soldering. Testing and troubleshooting.

      2. Software/coding/programming. Much of what you will do with this is more about hooking together different existing software code, but usually some level of code writing to glue together the different pieces is needed.

      If you have some experience & skills in either one of these two areas, you can probably learn what you need in the other one. If you don't have any experience in either of these areas, you will likely have a lot to learn before you will be able to build something you have in mind.

      1. Specific platform knowledge. You need to know how to work with Arduino hardware and the IDE (development environment). You need to have a basic understanding of programming Arduino such as writing "C" language code.

      2. Mechanical fabrication. You can do desktop prototyping without this, but to make a real-world device you need to be handy enough to put your electronics in an appropriate enclosure. Simple workshop fabrication, fasteners, adhesives, connectors, cables, etc.

      Where to start:
      There is a lot of information available for beginners. A starting point would be to focus on learning Arduino. It was designed for beginners. You will find a lot of beginner tutorials on the internet, one good place to check out is Adafruit. There are many others.

      I would not start out focusing on MySensors. After you learn basics of Arduino and build some simple projects, it will still be quite challenging to jump directly to MySensors. MySensors is one part of a larger system - it lets you build sensor nodes but relies entirely on you having one of many separate Controllers to collect and work with that sensor data.

      I have been building hobby electronics for many years, and it still took me many days of work to get my first MySensors device to operate and send data to a controller. (You need to get a working controller, too!)

      I took this path, doing the easy work first and the hard stuff later:

      1. Bought Raspberry Pi model 3, got it running.
      2. Install "Domoticz" controller on Raspberry Pi. (Domoticz is I think one of the easiest controllers to get running and works well with MySensors).
      3. Built "ESP Easy" sensor node on Adafruit Huzzah Feather hardware on a prototype board. ESP Easy does many of the things MySensors does, but with no programming. You will have to learn all about the Arduino IDE to do this, which is also required later with ESP Easy. ESP Easy does not require working with the radios that are central to MySensors, it uses small ESP8266 boards that use your wifi network instead. It's not better, just different and simpler.
      4. With a working controller and a working sensor node, you have the minimum needed to add a MySensors sensor node. It's pretty much impossible to get MySensors running otherwise. Depending on your project you may not require the additional complexity of a radio based MySensors network.

      Good Luck!

      Tim

      posted in General Discussion
      Grubstake
      Grubstake
    • RE: πŸ’¬ Building a Raspberry Pi Gateway

      @ccy Look at the chart below "NRF24L01+ Radio". That shows the PIN numbers on the Pi and the pin labels on the radio to interconnect. Pay no attention to the labels on the RPi generic pinout diagram except the PIN numbers. The RPi SPIO labels are not what you are looking for. And be sure to use the chart for the correct RPi model.

      posted in Announcements
      Grubstake
      Grubstake
    • RE: Irrigation Controller (up to 16 valves with Shift Registers)

      @tbowmo said in Irrigation Controller (up to 16 valves with Shift Registers):

      It seems that you have not read up on how mysensors works.. The purpose of mysensors is to create wireless sensors. To do this, we normally have a gateway connected to a computer running some kind of controller software.

      Then we have sensor nodes that transmit (wireless) sensor data to the gateway which sends this to the controller software.

      Again, please read up on how mysensors are designed, find more here https://www.mysensors.org/about

      Hi Thomas,

      You have hit on a point that I see over and over here, and that I shared with @tombstone for a long time before I was able to get a successful MySensors node working. (And I've worked with electronics and tech much of my life.)

      Understanding the key components and how they fit together is essential for newcomers to MySensors, and is not very complex, but the information is widely scattered and completely missing from the the top level of the website. This discourages newcomers and creates endless questions on the forums as it is quite difficult to get anything working without many hours of reading and experimenting.

      There is no obvious place on the website that explains the big picture as well as your last message! Newcomers to MySensors do not benefit from a clear simple picture of sensor nodes, gateways, and controllers and how they fit together.

      • The Getting Started page does not mention controllers at all. And it's NOT as easy as 1, 2, 3!
      • The Controller page does not describe the basic purpose of a controller, or how it connects to gateways and nodes. It's a useful advanced comparison of controller details, not beginner content.
      • The Build page mentions some of the key components but again not how they fit together. (Nor is it about 'building'.)
      • The Hardware doesn't really talk about the hardware.

      (I'm sure there is much of this elsewhere on the website, but its not easy to find from the obvious links.)

      It would be hugely helpful if Getting Started was an actual detailed overview of MySensors diagramming examples of complete end-to-end systems.

      • sensor->arduino+radio node---->arduino+radio gateway->controller (Domoticz etc).
      • sensor->gateware/node software->ESP8266 wifi->controller (no 'radio')
      • etc.

      Gateways are difficult to understand at the beginning as there are so many different ones and the Gateway names don't help...some are named by a single transport protocol (i.e. MQTT) some for an interface (Serial) some for a hardware platform (ESP8266), etc. I'm sure this seems obvious to lifelong engineers/developers but not so much for regular hobby geeks like many hobbyists.

      I'm impressed with the work that has gone into MySensors and am grateful for all the hard work by the many developers and users who have contributed to it. I don't mean my comments to be a complaint. Presenting technical systems to often less technical newcomer/users is a challenging area. Improving the first impression of the big picture to newcomers would be a huge move forward.

      Tim

      posted in My Project
      Grubstake
      Grubstake
    • RE: Running out of ground pins

      @Osch Kind of hard to splice small gauge wires without soldering or terminals. A step towards wire splicing without soldering is to buy a wire stripper suitable for small ~20-28 gauge wires like this:

      β€’ Small wire nuts (probably the purple ones for 20-28 gauge or so). Requires wire stripper. Just cut jumper wires in half, strip, and twist up 3 or more for more grounds. Wire nuts make excellent connections, maybe use electrical tape to wrap them if there is any concern of tugging on the wires.

      β€’ No-strip insulation-displacement connectors aren't likely to work with the tiny stranded wire in your jumpers.

      alt text
      β€’ Crimp splice connectors like used for telephone wire splices might work but then you need a decent crimper, although a pliers may do. May be too big for smaller wires.

      β€’ Screw terminal blocks can work well for wiring to sensors if you have a place to anchor the block.

      Tim

      posted in General Discussion
      Grubstake
      Grubstake
    • RE: πŸ’¬ Building a Raspberry Pi Gateway

      @gohan I beat you to it! πŸ˜ƒ

      posted in Announcements
      Grubstake
      Grubstake
    • RE: Doubt about a concept in GatewayESP8266

      I have been using Domoticz with MySensors nodes in several different configurations.

      The closest I have done to what you are asking is to use the GatewayESP8266MQTTClient version, with one or more sensors connected directly to the ESP8266 running the above client software, so there is no separate Arduino. This is of course wifi only transport from the sensor node via the LAN to Domoticz controller, and it requires a MQTT broker (server).

      Similarly I also use Domoticz with ESP8266 running ESPEasy which also transports by wifi, no Arduino. I strongly recommend this combination to get started as the only hardware is a ESP8266 like NodeMCU, Wemos Mini, etc. and your controller host (Linux computer or RPi), and the only software is Domoticz and ESPEasy, both of which require configuration but no customizing code. Of course you can as many sensor nodes as you like.

      From reading on this site I got the impression that the ESP8266 is NOT an ideal choice for a general purpose MySensors gateway-to-LAN solution using radio-equipped Arduino sensor nodes, and the W5100 Ethernet Gateway is far better. But I am not using this myself.

      Finally I also use MySensors with Arduino and attached radio link to a radio-equipped gateway on a RaspBerry Pi. This is a more complicated solution as you are now dealing with two radios, and both sensor node and gateway software you must configure/customize. It works well, however, and there is the opportunity to wire custom code at the sensor node if you require this.

      If you do not have an existing working Domoticz or Mysensors installation, and you simply need data from common sensors, I strongly recommend trying Domoticz + ESPEasy. It is MUCH easier to set up and get running with supported software, as you simply install it on the ESP and configure via a webpage. It is a great help to learn Domoticz without too much complication.

      Domoticz is a pretty easy package to get working compared to the others I looked at.

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: I need advice with brainstorming my farm project

      @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

      posted in General Discussion
      Grubstake
      Grubstake
    • RE: why no one uses latching relays ?

      @rozpruwacz
      Late to this but for anyone who finds this thread (like I did) with the same thing in mind...here's a relay that looks like it might work for some. (I have not received it yet.)

      https://www.ebay.com/p/5v-Flip-flop-Latch-Relay-Module-Bistable-Self-locking-Switch-Low-Trigger-Board/14005978712

      Specifications:
      Working voltage: DC 5V
      Working current: 70MA
      Standby current: 1UA
      Load current: AC 250V / 10A, DC 30V / 10A
      Trigger mode: Low pulse trigger
      alt text

      There are 10 more listings for what looks like the same product...most about $2 US.

      This seems useful for any sort of battery powered node that is to trigger opening or closing a circuit. I certainly would not use it for house lighting in general due to the toggle/uncertain state, storing the state at the node, detecting the relay state when switching, and synchronizing to correct an error seems possible if needed.

      My use case is to provide remote control to outdoor landscape lights that use AC line power and a transfer to feed low voltage lighting common in the USA. I have a large yard with 4 different transformers that currently mechanical timer, light sensor, or electrical timer. I'm usually happy to NOT automate dedicated independent simple systems that just work. In this case, my equipment needs fixing after a power outage (mechanical timer), doesn't work well in winter when photo sensors don't get enough light, and I can't turn on the lighting manually very easily. I want to keep these transformers in place as a fallback (in manual 'on' mode), so I could use remote controlled relay to switch the 12 volt AC output to the lighting circuit. I prefer to use battery powered nodes even though line power is available because everything is outdoors and weatherproofing an AC power supply to power a node might be more work.

      posted in Hardware
      Grubstake
      Grubstake
    • RE: Multiple Dallas Temperatuur sensors at one sensor node

      @wallyllama

      I have had good luck with 1 wire but only after careful attention to the wiring itself. Star topology can work fine for several sensors, but daisy chain is important for less trouble, as mentioned.

      Wiring comments: wiring is the most important thing.

      1. Use a twisted pair cable (or twist your single conductor wires). Cat5 or telephone wire or similar works well. Solder all connections in the daisy chains or use wire nuts or terminal blocks, or other connectors. Do not just hand twist.

      2. Your ground and + wires to the sensors should be connected directly to the board terminal closest to the power supply. Don't use skinny jumper wires or connect to a different convenient spot on the board, or to some other ground or +5 device connected to the board. (Yes, all +5 and ground terminals are not 'the same' when it comes to analog circuits.)

      3. Don't run the wires in a bundle or nearby other wiring.

      4. A lower value pull-up resistor is easy to try and may help. Another trick is adding a 100 ohm resistor in series where the 1-wire signal line connects to the board. (Disconnect wire from board, connect resistor to board, connect wire to resistor.)

      Tim

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Irrigation Controller ... how to achieve controll from smartphone?

      @adiculiniute
      Of course commercial controllers from Rain Bird, Orbit, and others are only $90-150 that will do exactly what you are asking about. A dedicated device will always have fewer points of failure. You can build this as others are suggesting but it will take an investment of time and money, not the easiest solution.

      I love building projects but usually stick to those that have functional benefits I can’t get with inexpensive commercial products. Your priorities may be different of course.

      Tim

      posted in Development
      Grubstake
      Grubstake

    Latest posts made by Grubstake

    • RE: PCB verification request for latching valve controller

      @wrendral
      For the valve & driver I used a off-the-shelf battery-powered irrigation timer/valve (without the timer). Similar unit, US $24 here: and a $5.00 US TB6612FNG polarity-reversing motor drive board, all running from 9v battery.

      Original idea & code: here

      Beware of possible failure mode if power fails while valve is open. πŸ˜‰

      (Sorry I cannot help verifying your board, not an engineer, sometimes manage to get things to work anyway. )

      posted in Hardware
      Grubstake
      Grubstake
    • RE: RFM69 Range issues

      @bjornhallberg said in RFM69 Range issues:

      Gateway (rfm69hw) initialization:
      #define MY_IS_RFM69HW
      #define MY_RFM69_FREQUENCY RFM69_868MHZ
      #define MY_RFM69_NEW_DRIVER

      Maybe I missed someone pointing this out, but the original poster's gateway initialization looks like it's missing something. These defines are not at all obvious, especially with the HW version. Strange things can happen, including unexpectedly low power. Check the API docs and also another thread.

      With the HW version of the RFM69 on the gateway, and the RFM69 new driver, in addition to what you list, you need to also include:
      #define MY_RADIO_RFM69
      #define MY_RFM69HW true

      https://www.mysensors.org/apidocs/group__RFM69SettingGrpPub.html#gaf1455cd3427c9dc4c4564542c3dafc16

      https://forum.mysensors.org/topic/11316/rfm69hw-atc-not-working

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Sensebender micro failing with funny characters

      @flix said in Sensebender micro failing with funny characters:

      I don't think it is a power supply or radio issue, given it was working fine previously

      "It was working just fine before" is pretty much the case with 100% of failures! It sure looks like you covered all the likely culprits EXCEPT the power supply. Software seems unlikely. Are you testing while powering the Sensebender from a USB cable to your computer? Try different USB cable and/or a different USB port directly on your computer (not a hub). A bad USB cable could have trouble with either power or data. You might also test with battery power directly to the board if external usb power is the usual mode.

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Temperature serial sketch

      @Olaf-Jacobs I've run DS18B20s and learned that with "1-wire" the wiring details and are important unless wire runs are short. Also, parasitic mode (2 wires only) is less stable than using three wires. The type of wire, capacitance of the cable run, interference from nearby electrical, especially high voltage AC, and the topology (with star topology being the worst). I have no idea if this could be an issue for you, but if you want to test it you could try testing with the same number of sensors with very short runs and see if that improves the instability you are seeing.

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Battery powered latching relay node

      @iancu said in Battery powered latching relay node:

      The last part would be to have it run in smartSleep and wake up when state change request is sent by gateway (as far as I read this is not possible).

      As Electric pointed out, when it is sleeping the radio is turned off and it's not possible to listen for communication. How quickly do you need to be changing the relay state? Unless you can be sleeping almost all the time, you may have a problem. If you can wake up for a second or two every 5 or 15 minutes and check, that's much different than if you need to respond to a light switch within one second. You need to know how much power is used while sleeping, then how much is used to wake and check if a change is needed, then go back to sleep. Do the math based on how often you need to be checking.

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Best choise for a controller

      I have been using Domoticz (currently 4.10717) for a few years and it has always very stable except sometimes when the trouble is introduced by my mistakes. If you are satisfied with Domoticz, except for the current stability, I suggest it is something you can correct. Changing to another controller will be a lot of work.

      I have had very good stability with Domoticz on rPI first, now on a basic Intel NUC running Ubuntu with SDD drive which is of course much faster.

      Of course hardware trouble on the device running Domoticz is possible. I suggest using fastest, best quality hardware & SD card for your controller. Other software running on the same Pi might be causing your problem rather than Domoticz.

      You can probably get better help debugging Domoticz on their forum.

      A few ideas:

      • Have you reviewed the Domoticz logs to identify any issues?
      • I wonder why you are running two separate Domoticz controllers, and if a conflict could be causing problems? It may be easy for you to test by removing your second controller for a while.

      Good luck!

      posted in Controllers
      Grubstake
      Grubstake
    • RE: Improving RFM69 radio range by adding an external LNA

      It sounds like you are getting excellent range.

      If you haven't spent a lot of time with locating, orienting, tuning/optimizing the antennas (and feed line) on your gateway and your nodes, this can make a big difference. I noticed you mentioned 8db omni antenna. Of course a true omnidirectional antenna would radiate in a sphere, and gain above 0db means directionality.

      Good antenna info at Low Power Labs. A few notes from reading there and other places :

      • No antenna is omnidirectional in 3 dimensions. Radiation patterns either give OR take. Vertical or horizontal orientation impact is not intuitive and varies by antenna type and desired directionality both horizontal and vertical.

      • Use feed line in half-wavelength multiples to minimize RF going back to the transmitter

      I only mention this because it sounds like it might be much easier than working on the radios. Of course, maybe you have already done these things.

      Good luck!

      Tim

      posted in Troubleshooting
      Grubstake
      Grubstake
    • RE: Help for an irrigation system with a few inconveniences

      Hello,

      I have worked with a lot of home irrigation equipment including both AC line-powered relays and a little with battery-powered 9vDC latching relays. I understand you are interested in learning MySensors, Arduino, etc. It appears that you could easily get a reliable wired commercial irrigation controller and valves working quickly and at low cost. The main reason to use this approach in my opinion is your major requirement - reliability. But also, speed and cost.

      I have worked with hobby electronics for many years, and many hundreds of hours with MySensors and related electronics, and thousands of hours of software development. I use commercial irrigation controllers because I would never be able to build one as reliable even if I had unlimited time to do it. Even if building, writing code, and testing was done, something designed and built wll not have controls, display, and functions anything like a commercial unit.

      I suggest you make your first MySensors/etc. project only for the sensors you want. This is challenging enough for your first project since you mention you are not experienced with electronics. It is better to learn to walk before you learn to run!

      One example of this difficulty: have you bench-tested using an Arduino to activate/deactivate a latching 9vDC irrigation valve? They are not at all like an ordinary relay. If you can do this, I am impressed at what you have learned.

      In your situation suggest you put a commercial AC mains to 24vAC powered irrigation controller (USA $50-$100) at your house with a cable to your valve box, and use non-latching 24vAC valves. If you must use 9vDC battery-powered valves, or must locate the controller underground (no way to use buried cable) you can buy commercial battery powered valves with built-in control for each valve (USA $25-$50 each), or a commercial battery powered controller for multiple valves. (brands: DIG, Orbit, Rain Bird, Hunter).

      I apologize if it sounds like I am trying to discourage you. I am not! But I encourage you to start with a simpler project as it is hard enough to get your first working project even if you are only building one sensor or relay!

      Good luck!

      posted in My Project
      Grubstake
      Grubstake
    • RE: Hypothetical Project question

      @mrhutchinsonmn
      I agree with the previous responses.

      I know you said wireless, but if feasible I would strongly favor 100 feet of direct-burial irrigation cable and a relay for pump, and a hardware float switch, for simplicity and reliability.

      posted in General Discussion
      Grubstake
      Grubstake
    • RE: RFM69 custom frequency

      @mfalkvidd said in RFM69 custom frequency:

      Welcome to the MySensors forum @olka
      Use
      #define MY_RFM69_NETWORKID number
      where number = 0-255

      MY_RFM69_FREQUENCY is also available, but is only used to select different bands (433 and 868 for example).

      Is this current info? I haven't tried it, but the API doc (RFM69 new driver) refers to "Custom frequency in Hz":

      #define MY_RFM69_FREQUENCY (RFM69_868MHZ)
      The frequency to use.

      RFM69_315MHZ
      RFM69_433MHZ
      RFM69_865MHZ
      RFM69_868MHZ
      RFM69_915MHZ
      Custom frequency in Hz (new RFM69 driver only). <------------------------ NOTE
      See also
      MY_RFM69_NEW_DRIVER

      posted in General Discussion
      Grubstake
      Grubstake