Week 18 - lglik/Portfolio GitHub Wiki
01/07/19 - 01/11/19
Day One:
Absent.
Day Two:
Absent.
Day Three:
Absent.
Day Four:
Absent.
Day Five:
Today I was finally well enough to come to school and continue working on my project. I talked with Mr. Harlow about the battery issue and he suggested that the I should check which mode the board that reads the voltages was in. There is a continuous conversion mode where the board is constantly running and recording the voltages. The other mode is called "single shot" mode where the board only converts the values when it receives a request from the Pi. This second mode is far more power efficient but could lead to some issues if values are requested in quick succession. I wanted to find out what mode I was currently using to see which one I would want to try to change it to. From looking at the documentation, I found that there was a register on the device where one of the bits signified which mode was being used. I tried to directly access this register using the i2cget command but I discovered that this would not work. The device is set up such that a pointer register needs to be written to, so as to put a "read" query to the right register. I was able to write to the pointer register and read from the desired register, but the command I used, i2cget, only returned the one bye, and there were two at the location. Without knowing which byte I had, the bits in it were not particularly helpful.

The config register and the significance of each bit in it.