Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Github Developement branch discussion

Hi all,

Long time lurker and tinkerer since the early days, been rolling my own monitoring system using an rPi and the gpio's on it worked quite well but my skills are lacking so I spend more time fighting code and adapting existing rather than writing it!
I have come back to try and get yieldbuddy working as I want it to, this means editing the code to add sensors and remove others etc.

I see that there is activity in here and there are points of issue that are been fixed since 1.17a. I also think Yieldbuddy has been carrying on with this and still is which is part of why I came back, too many dead projects around!
I can fork it and make my own but then it's fragmenting everything. So I think we need a development branch on Github so we can all push pull share and tweak.

For example I have 5 DS18b20's here I use for temp sensors on my rPi they are ideal, accurate, chainable, addressed and I2c only uses 1 pin for all temp data and I know someone has already coded for one of them by reading the comments! Now, I can't get at the code so I'm  writing my own, then the next person does the same, along comes an update and I have to rewrite it all again.
An idea I have is to select your sensors and assign generic variables for example temp1 temp2
temp3, the Arduino controls the sensor selection similar to how the
Drone autopilot guys are doing it using #ifdef there are loads of arduino libraries for Co2 sensors and allsorts so there is massive scope.

Now I'm not a noob but I'm not an expert either I find some bits easy and some hard, I can't do it on my own I've tried! Maybe we can all pitch in, lighten the load and get this rocking as an Open source project.

Comments

  • Hi monza,

    Yes, I have been working on the next update.  I have been pretty busy - but it's coming along.  I'm adding the ability to add sensors, name them, etc.  I've also been working on adding the ability to create rules, setpoints, etc.  And, of course, updating the install script, and generally making it easier to get setup and running.

    The idea is to make things more modular, and maybe even to be able to load a plugin for doing a certain thing (not just hydroponics either).  So there is lots of work to be done, but it's getting there.  I have a big break in my schedule coming up soon, so I'll be punching code out in no time.

    Since there are some big changes being made, I'll hold off on the github push for now.
  • eager to see the new update!  I still haven't gotten my system up and running yet. awaiting a few more parts/sensors and tweaking a few settings.  Going slow, as work is hectic right now.

    my first major project with this is to create a scheduling system. something that would modify setpoints according to the appropriate week of growth/flower.  I haven't looked into this much yet, but it would seem to take a combination of adding a sqlite3 database, python scripts to modify setpoints and modifying the php pages to input schedule data.

    thoughts?



  • Just to pop in and say that this is an awesome project. I also got the similar idea few months ago and Googled and stumbled upon this, made practically the same way I was thinking of. (But I am a noob in Linux/python/php/sql/javascript/etc so this is a great opportunity to learn the stuff)

    Anyway, I started my own mod of this. My idea is to use the Arduino (nano) as an interface to physical world, with the bulk of the automation done in the python script. So the Arduino will just analyse the command and perform the action - control the actuators or send the sensor data to the python script - nothing else. The inputs and outputs (DI and DO) can be expanded with 74HC165N and 74HC595N, respectively - if needed. This way the code size for the Arduino drastically decreases so using the nano is enough (I bought a chinese nano for $3). The RTC will be on the Raspberry pi.

    One advice for the author (this I read on hackaday the other day) - the use of tmpfs for files which are frequently used (e.g. Command, log etc), this is done easily in fstab.

    Also regarding the GUI, I'm going to use a bootstrap dashboard (devoops), combined with one-page login (php) script (this part I have already combined).

    For developing I'm using Eclipse Arduino IDE, loaded with python and php plugins. I needs a bit of tweaking to make it work perfectly, but when you do it, it's waaaay better than the standard Arduino IDE.

    I have little time to work on this, everyday a few lines of code are written, so maybe at the end of the year first strawberries will be planted :-) !

    Regards!
  • so stoked for the new version. I just got my project pretty much fully working now(lol, only webcam and a dht22 :) but as I am not a programmer and have little training in electronics, I feel pretty damn good about it. I do have 15 years growing experience tho, and I did this project for my physics final, and you have helped me get an A, so much thanks for all your hard work to date!!!
  • Got this running pretty well now with a bit of modification and some endless nights tinkering! I have my DS18b20 sensors working nicely and have modified the code and SQL to accept the values and plot them in the graphs \o/ I also have the serial communication running over usb rather than logic level converters etc.

    I have plumbed in a few new values to a new table and displaying on the front page. All of my schedules seem to vanish on reboot though which is odd.
    Just tidying up and commenting the code then I should be good to upload to Github, probably going to rename it for my usage here at the minute as looking when others can see the screen is an issue with YIELDBUDDY across the screen :P Looking forward to a new version to tinker on but so much time invested in this now and upgrade may break my spirit!! 
    Thanks for the project Buddy of Yield :)
  • Hi monza, that sounds great!

    I'm really interested on how you were able to run it through USB instead of the logic converter.  Awaiting your upload!
Sign In or Register to comment.