Thank you, I’ll have a look immediately and start prototyping.
When I register measurements from my devices, I want them to report directly to a cloud service, and not some server I have running at home. I want my worker threads up in the cloud to decide and to act upon these readings, and trigger switches, actuators, lights etc from the cloud to my home. I am thinking an SD card reader can supply the required configuration in a config file of sorts.
For this to happen,the boards need to be WiFi as well as internet-aware in that they can be configured to connect via DHCP to some WiFi, and also have the ability to use RESTful services/JSON objects OR even better; SOAP messages over TCP/IP directly to the web service that I have ready for it on the other end.
I already have a Hydra board that is not compatible with the premium devices required for WiFi- which is why I am trying to make sure I get the right products this time.
PROJECT
For my first project, I need to control two valves that are defaulted to closed, so basically, somewhere in code, I will be writing something like this:
public void OnWateringInstructionReceived(Object sender, WateringInstructionEvent e)
{
// Calculate the number of times to fill
var preciseTimesToFill = e.AmountToFill / MEASUREMENT_CHAMBER_CAPACITY;
var roundedTimesToFill = (int) Math.Ceiling(preciseTimesToFill);
for(int i = 0; i < roundedTimesToFill; i++)
{
// Fill the measurement chamber
OpenFirstValve(MEASUREMENT_CHAMBER_TIME_TO_FILL);
CloseFirstValve();
// Now empty it
OpenSecondValve(MEASUREMENT_CHAMBER_TIME_TO_EMPTY);
CloseSecondValve();
}
}
This is just off the top of my head, I haven’t actually written this yet, as I am ordering the Cobra2 as we speak
My problem:
I have no clue how to operate a valve from the cobra. What hardware do I need inbetween? What if I were to operate a servo motor, how do I do that from gadgeteer, and again, what kind of hardware needs to go between the servo motor and the Cobra2?
The valves that I’ve been looking at are these:
http://www.seeedstudio.com/depot/g12-electric-solenoid-valve-normally-closed-p-636.html?cPath=39_43
And the servo:
http://www.seeedstudio.com/depot/rb421-servo-2-pcs-pack-p-652.html?cPath=73
All input is appreciated!
Pedro