I’d like to use the Thing to control a motor driver at a particular time of day every day. Details:
-
Thing will be connected to a LAN as a simple client. Not in P2P mode.
-
Thing will occasionally get the current time from a public NTP server
-
Thing will host a simple web form that I can connect to from another client on the LAN, say my phone. From this other client, I’d like to submit the time/day that I’d like the Thing to rotate the motor, so I’m envisioning a simple form with a few textboxes and a submit button that the Thing presents to my phone, and which my phone uses to send data to the Thing.
-
The thing will store the data it’s given either in a local nonvolatile storage (unclear to me whether this exists), or store it on the web somewhere and retrieve it when it needs it.
-
To control the motor driver I need a minimum of 3 GPIOs (which should be available already, I believe)
-
Lastly, to keep things simple, I’d like to use Sparkfun’s Arduino library and program it as I would an Arduino. I’d really prefer not to have to flash custom firmware.
The reasons/questions for #6 is:
-
If I install a problematic firmware, can I roll back to the default one?
-
Do different firmwares mean different methods for controlling/configuring GPIOs, I2C, etc.?
-
Just concerned this adds avoidable complexity to this project
So my questions:
-
Any holes in my plot?
-
Hoping someone can help with the web form/HTTP/server side of things, i.e. Step #3. Any code examples out there that do this, using the Arduino lib? Present a form to another client on the LAN, and get data back from the client.