Ask HN: Is it possible to make a DIY watering system using an old iPad? How?

2 points by fakedang ↗ HN
I have an old iPad (iOS 12.5.5) which I don't use for any purpose currently due to slight screen issues. I was wondering if I could repurpose it into a control hub for some sort of watering system which I could use, possibly with even remote control support - basically replacing the Arduino/R Pi component in most DIY kits. Would this be an idea that's possible without significant effort?

8 comments

[ 4.6 ms ] story [ 22.9 ms ] thread
You'd be better off with an older Raspberry Pi, using the iPad solely as a browser.
This increasingly seems to be the case. The thing is, I already have made a DIY system with an R Pi, and I've used Android to run Python code, so I thought I would be able to skip the RPi and do without it.
Maybe install Android on the tablet?
Like watering your lawn, your garden?
A small apartment garden, in a balcony maybe 50 Sq ft.
It probably wouldn't be too hard to write an iOS program to send commands via USB or WiFi, but you need to control water valves and I'm not sure if you'll find any/many with USB interfaces. If not you would need to build some circuitry to convert USB signals to whatever kind of control signals your valves need.

It could be a fun project, but I wouldn't call it "without significant effort".

By IOS program, do you mean some app-like interface? Or is there a way to run something like Python or C++ code as there is in Android?
What I meant was a program written in one of the languages Apple supports for iOS development. I'm no iOS expert and it's been years since I've developed an app for it so I'm not sure exactly what is available these days.

For me the electronics would be a larger consideration than the software, but then I have a lot more experience developing software than I do building circuits.

EDIT: I missed that you mentioned C++. The app I wrote for iOS did use some C++ code but it was still necessary to have code in Objective-C/C++ to provide a UI and interact with the OS.

As for Python a quick google search turned up a couple of possibilities which are linked from this page:

https://www.python.org/download/other/