@spaghet Thanks for that guide--I wish I would have noticed it earlier today. I've been working on the same thing, but I got stuck this afternoon trying to figure out the right link to use for loading the CouchApp. The trick was to use
.../app/_design/app/_rewrite. Thanks for pointing that out.
Here are my notes:
And here are some photos from when I experimented with adjusting the controls. I've wired up LEDs on a breadboard to the Arduino Mega's pins for:
- Illumination: red, blue, and white LEDs on the breadboard)
- Doser pumps (yellow LEDs): nutrients, pH adjustment, and water
- A couple pins related to the chiller (red LEDs on the breadboard)
Moving sliders and switches on the UI when ROS was running did affect the LEDs, but it wasn't what I expected. The illumination LEDs didn't dim, they turned off when I adjusted the slider past about 40%, then after a few seconds, they turned back on. For the nutrient switches, the LEDs pulsed briefly when I turned the switch on. For the pH and water switches, sometimes the LEDs would flicker off very quickly, but it was inconsistent.
Breadboard LEDs and UI in the initial configuration:
Breadboard LEDs and adjusted UI configuration: