A couple years ago, I built with an arduino, a peristaltic pump, an LCD display and an H-Bridge motor controller, a watering machine for the orchid I keep at the office.
The other day I pressed a button I had put in place to be able to configure the timing for the watering and I must have pressed the sequence wrong (was it push, hold, push, push? or was it push ,push, hold, push…) so now instead of watering for 10 minutes in order to fill the pot and empty it, it just waters for 1 minute. To avoid my orchid from drying up I’ve reverted to the manual workaround of taking it to the kitchen by hand, but this is no way to water a plant…
I could take the whole system home, connect it to my computer and test it out of course, but it would be much cooler to go to the office with a raspberry pi-wifi hotspot, connect to it with my iphone and reload the (simplified) program.
To do it I’ve prepared my raspberry pi the following way:
- set up the wifi hotspot
- Install arduino
- sudo apt-get update
- sudo apt-get install arduino
- sudo apt-get install python-dev
- sudo apt-get install python-setuptools
- git clone git://github.com/amperka/ino.git
- cd ino
- sudo python setup.py install
- sudo apt-get install picocom
-
to exit picocom serial [CTRL + A] followed by [CTRL + X]
-
- Connect the arduino to the raspberry pi via usb
- Load the program
- mkdir blink && cd blink #we must work on an empty directory
- ino init -t blink # initiates a project using “blink” as a template, copy libraries into
- ino build # compiles the sketch, creating .hex file (default Arduino uno -m atmega328 for duemilanove)
- ino upload # uploads the .hex file