Giter Club home page Giter Club logo

pth_powerboard_adc's Introduction

Pth_PowerBoard_ADC

Python code for testing PowerBoard's ADC on Husarion Panther v1.2 devel

The Orign

The idea of a code for testing ADC goes from https://github.com/radeknh/power-board repo. Currently I couldn't find a way to configure two dtoverlays what originaly was made by puting

dtoverlay=ads1015,addr=0x48
dtoverlay=ads1015,addr=0x49 

in /boot/config.txt file. Command ls /sys/bus/iio/devices/ always says that there is only one device. Well, this is consistient to https://forums.raspberrypi.com/viewtopic.php?t=149244

Finally, I came to the conclusion that the fastest way is to write new test code, Python for example, based on the original (C language) using proven libraries.

Python code

This is just simple Python code, strongly commented. Just clone it, run it and enjoy :)

git clone https://github.com/Mikowhy95/Pth_PowerBoard_ADC.git
python Pth_PowerBoard_ADC/read_adc.py

Back to the beginning

Anyway, if there is a solution for using two ADS1015 via dtoverlay here is complited configuration:

dtoverlay=ads1015
dtparam=addr=0x48
dtparam=cha_enable=true
dtparam=chb_enable=true
dtparam=chc_enable=true
dtparam=chd_enable=false
dtparam=cha_gain=2
dtparam=chb_gain=1
dtparam=chc_gain=2

dtoverlay=ads1015
dtparam=addr=0x49
dtparam=cha_enable=true
dtparam=chb_enable=true
dtparam=chc_enable=true
dtparam=chd_enable=true
dtparam=cha_gain=1
dtparam=chb_gain=1
dtparam=chc_gain=1
dtparam=chd_gain=1

pth_powerboard_adc's People

Contributors

mikowhy95 avatar

Watchers

James Cloos avatar  avatar

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.