Git Product home page Git Product logo

i2c_adc_ads7828's People

Contributors

2-718 avatar 4-20ma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

i2c_adc_ads7828's Issues

Automate CHANGELOG

  • remove HISTORY.markdown
  • add .ruby-{gemset, version}
  • add Rakefile comment re: doxygen requirements
  • add github_changelog_generator
  • update Rakefile

After Init I cannot reset the address of the IC2 commands

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

Change project license to Apache 2.0

  • add LICENSE
  • remove COPYING
  • README badge, boilerplate footer
  • examples (2)
  • i2c_adc_ads7828.cpp
  • i2c_adc_ads7828.h (include \par License)
  • Rakefile
  • clean up whitespace
  • update copyright year, format
    • examples (2)
    • i2c_adc_ads7828.cpp
    • i2c_adc_ads7828.h
    • Rakefile

change sample rate

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

Update README

Match style/content of ModbusMaster

  • use .md extension
  • add standard title
  • add badges
  • 2 spaces before ##
  • update sections:
    • Overview
    • Features (add device address: 0x20)
    • Installation (update)
    • Schematic (combine with Hardware)
    • Example
    • Caveats (add)
    • Support (update, remove Questions/Feedback)
  • convert backtick block language to cpp
  • superscript i2c
  • backtick i2c_adc_ads7828
  • remove deprecated INSTALL
    • The README provide 3 installation methods, including links to arduino.cc.

Bad optimization code by Arduino on reading value

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
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.