Dear all,
I am new to ioio-otg, I would like to get your advice on one thing.
I would like to read analog input (light sensor) and depending on the voltage level I would like to trigger an digital output. It seems to be possible to do that with JAVA API and all these can be done with an android app.
However, having this computation on the phone in java environment results in delay (delay between sensing analog input and triggering digital output). Therefore, I would like to do this task on PIC.
My questions are the following:
1. I would like to write a piece of code that continuously listens analog input and when a certain voltage level is detected it triggers digital output. Is this theoretically possible to program within PIC ?
2. I also would like to make use of the firmware that sits in PIC of the ioio-otg (which is explained in this page:
https://github.com/ytai/ioio/wiki/IOIO-FW-and-Theory-of-operation) to communicate with my android application to do some other tasks. Would it be possible to bundle both firmware into PIC (application firmware + my custom firmware ) ?
3. Do we know how much of the programmer memory of the PIC is occupied by application firmware ? I am asking this because I would like know how much space I have in program memory for my custom firmware.
I would appreciate if I can get some answers to above questions.
Thank you in advance,
All the bests,
Lumi