-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADC] Pick external ADC, and develop communication #110
Comments
For i2c something like this could be implemented in C++ https://raspberry-projects.com/pi/programming-in-c/i2c/using-the-i2c-interface |
It may be worthwhile to clone ADCManager and make two versions--ExternalADCManager and BuiltInADCManager. If they are accessing two different components, they should be on separate refresh loops. |
We are using the ADS1115: https://www.adafruit.com/product/1085 On the BBB, use command
|
More debug information: kelly/node-i2c#27 |
The the TI site as well: http://www.ti.com/lit/ds/symlink/ads1115.pdf |
Now that the low-level structure is developed on the branch Our goal: Read all 4 of the analog ports from each of ADCs that we have connected over i2c. Since each read takes about 3 milliseconds, we are only going to read one port per
First thing to do is to modify the For the refresh loop we want to read one value at a time, while still traversing all of the different ports, while keeping code size small. Look at how For the So, in a way similar to how
|
What values are being used through the external ADC? Just the accelerometers? |
Internal ADCs handle Accelerometers |
Once we have a new ADC, we will need to communicate with it over SPI or I2C (likely). How do we do this communication reliably?
The text was updated successfully, but these errors were encountered: