I’ve built a PFC, hooked up all the sensors, and uploaded the latest gro-microcontroller code to the Arduino Mega 2560. So far, all except the DHT22 are talking and getting pretty decent results. I’ve debugged the harness by hooking up an arduino uno with sample code (a la adafruit) to make sure it was good (it was) and also hooked up an oscilloscope to the analog 0 pin to make sure there were signals going through (there was, and it looked like it was operating according to specification). Unless I’m missing something, I’m just going to call it good because the cozir also gets temp and humidity and the DHT22 is therefore redundant temp/humidity. Also got all the relays tested and working.
What I really would like some aid in is getting the software setup on the Raspberry Pi 3 model B. So far, I have:
- Updated the RPI
- git cloned gro-api repository https://github.com/OpenAgInitiative/gro-api and followed all the steps in the github readme, got it running locally.
- Downloaded gro-daemon to a host computer
- Looks like there are several repositories for the RPi/client, am I trying to use a workable version? I see that there is openag_brain/ros/ui, but looks to be in development and not released.
- Looks like when I run “sudo gro_api_call_command loaddata pfc_data”, it looks like it runs a development build of django, which to my knowledge does not allow connections from other computers on the network. I tried to connect to it with gro-daemon on another computer but was not able to.
- Shouldn’t the api be setup and started automatically upon RPi bootup?
- I noticed that JSkinykin mentioned to edit server_ip.txt, but can’t find it on the RPi. Where is it/where do I create it?
- What is the robusto board? don’t see it used anywhere atm.
- I’ve found it hard to locate documentation about the software. Sometimes even none (i.e gro-daemon, would of been nice if it mentioned where the compiled binaries were).
- Unsure at this point what software is required where (i.e. Arduino (I have experience with it so it was not too bad, but still had to hunt for the .ino), RPi (looks like at least 3 repositories right now), and host (gro-daemon to my knowledge, but not sure if it is compatible with all versions)) and what works with what.
- Have not found any gro software for the little touchscreen, where is the documentation for it?
- Build guides were good. Not sure if anyone has a shop bot normally, but I got away building most of it with a knife, a drill, a circular saw, a carpenters square, a ratchet set, a jigsaw, and an angle grinder.
- An arduino pinout map is really helpful for debugging where the sensors go. I made a spreadsheet of each sensor and actuator, added information about what they do and where to get them, how to use them, and which pins they go to on the Arduino. Made debugging really easy
- The gro-hardware ElectronicsSchematicLarge wiring for the AC outlet is wrong. AC outlet 1 goes to relay 1, AC Outlet 2 goes to relay 2, etc. Right now it shows AC outlet 1 going to 4 AC outlet 2 going to relay 3, etc…
- The pH sensor, according to https://www.dfrobot.com/index.php?route=product/product&product_id=1025, is not meant for continuous operation. Probably should use https://www.dfrobot.com/index.php?route=product/product&path=36_68&product_id=1110 for continuous operation.
So I’d be grateful for your help in getting my PFC to be a fully operational (battlestation. ha, Star Wars joke)! Looks like all of the wiki pages are immutable right now, but If I get the PFC working I’d be happy to put more information in the wiki about getting the software setup and auto-running. Same for V1.1 software.