4-20ma / i2c_adc_ads7828 Goto Github PK
View Code? Open in Web Editor NEWArduino library for the Texas Instruments ADS7828 12-bit, 8-channel I2C A/D converter
Home Page: http://4-20ma.io/i2c_adc_ads7828/
License: Apache License 2.0
Arduino library for the Texas Instruments ADS7828 12-bit, 8-channel I2C A/D converter
Home Page: http://4-20ma.io/i2c_adc_ads7828/
License: Apache License 2.0
Add Code of Conduct to project
Use standard file list from GitHub
Use https instead of ssh
Hi,
I have been working with the 7828 for about a month. I have it operational and have been using code within GitHub (specifically this set of libs) and have trouble incrementing the address for successive voltage reads.
Here is the init.
#include <Wire.h>
#include <ADS7828.h>
#include <time.h>
ADS7828 adc(0x48);
And then the value should be incremented from 0x48 to 0x49 (below), however, this does not work! Can anyone please send a pointer for me ????
CTC911CTC
//Process Votages
int x;
time_t rawtime;
unsigned int read_value = 0;
adc.init(0x49);
for( int y = 0; y < 1; y++){
Serial.print ("Time=");
Serial.println (time(0));
for(int x = 0; x < 8; x++){ // Loops from 0 to 7
read_value = adc.read(x, SD); // Read value of ADC channel x (0 to 7) in Single-ended mode
i2c_adc_ads7828.h
header file already has #include <Wire.h>
; remove from example sketches.
Hello,
I would like to change the sampling frequency. For example, I would like to use the maximum frequency of 50khz per input of the ADC.
Thank you
Match style/content of ModbusMaster
.md
extensioni2c_adc_ads7828
Optimization in Arduino code create reverse order of reading 16 bits values as two 8 bits value (like Big/Little Endian error)
Need a temp value to correct this order
// ___________________________________________ STATIC PRIVATE MEMBER FUNCTIONS
/// Request and receive data from most-recent A/D conversion from device.
/// \param address device address (0..3)
/// \return 16-bit zero-padded word (12 data bits D11..D0)
uint16_t ADS7828::read(uint8_t address)
{
uint8_t tempa;
Wire.requestFrom(BASE_ADDRESS_ | (address & 0x03), 2);
tempa = Wire.read();
return word(tempa, Wire.read());
// return word(Wire.read(), Wire.read()); // doesn't work on some configuration
}
Rakefile
CHANGELOG.md
datesA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.