Even this is like my fourth time doing it still making the usb stack work with XC8 takes a bit of time.
- Started a c project in MPLAB X, tweaked Microchip's USB stack to come up with a custom HID device. Added a couple of utility methods mainly around USB communication to process commands from pc and reply back.
- Decided to start with shunt monitoring instead of hall-effect sensors for current measurement as it's simpler, cheaper and I am not planing to use any panels more powerful than 3W. Played a while with lm2902 op-amp and 0.01R sense resistor. Tried high side sensing first and continuously failed till the point where I completely understood why this won't happen. Low side seems to be simple and accurate. Hope it won't cause any problems once sensors are hooked up.
- Started development of PC control panel application which will be used for configuration and status. Decided to start with a swing based Java desktop application used Jfreecharts for fancy charting. Once I am happy with the hardware I will probably replace this with some a standalone spring web application decorated with angular js.
Windows' perception of my device
Java application plotting voltage from a 0.5w small solar panel sunset and turning on off rooms light and desk lamp is quite visible