RDL 4-20ma module with Raspberry pi
Step1: Initially do all I2C settings in raspberry pi and
check address where module is connected
Command: I2cdetect –y 1
By default ADS115 is detected in address48
Step2: Install Adafruit ads1115 library in raspberry pi
Commands:
1. sudo
apt-get install build-essential python-dev python-smbus git
2. cd ~
4. cd Adafruit_Python_ADS1x15
5. sudo python
setup.py install
Step3: Next installing python packages for asd1115
Commands:
1. sudo
apt-get install build-essential python-dev python-smbus python-pip
2. sudo pip
install adafruit-ads1x15
Step4: Executing simple example program
1. cd
~/Adafruit_Python_ADS1x15/examples
2. nano
simpletest.py // This program reads
vales from all the channels
3. sudo python
simpletest.py // this command runs the
code
No comments:
Post a Comment