First and foremost the Arduino debug capability is primitive, and thats being generous.
The 5LP board has two 5LP chips on it, one for program/debug, the other the target.
Setting of watch points in memory, breakpoints, break and set values, examine HW,
all present in 5LP.
.
This took me ~ 10 min, its drag and drop, wire up to pins (simple mouse click process).
Drop the USBUART and LCD if you dont need them for user interface. I had them in
there so you could present a small QVGA display of the like to show moisture levels
by plant, eg, graph......
So use a scanning comparator (which it has) instead of SAR, if you only care about a
specific 1 level setpoint for all plants, then using the API f() calls in data sheet, no DMA,
everytime you get a trip ISR update the control reg bits to either turn on or off pump.
I used SAR because I thought flex for different plants, rates, might be of interest. So I
think total code needed ~ 25 lines of code as each component APIs simple to use,
you are not spending a lot of time trying to figure out specific bits of how to use a
piece of HW.
If you did the above now looks like :
Drop the output transistors and replace with ULN200x.....
Still on chip, the other 95% of chip resource available to do other stuff. This
you could put into PSOC 4, but I say 5LP because board costs lower and has
10X more HW in it to fool around with.
This is oversimplified but basically shows how fast stuff gets done in designing
in PSOC Creator, the IDE. Note he used the full up board, you do not need that,
the $15 board more than capable.
Regards, Dana.