- There are no more items in your cart
- Shipping
- Total lei0.00
- Electronics
- 3D Printing
- Storage boxes
- CNC
- Stock Clearance
- Fun socks
- Documentation / books
- Gift Cards
Modul conversie analog - digital (ADC) 4 canale 12 biti - I2C - ADS1015
Pick up your orders anytime, hassle-free!
Orders placed by 2:00 PM are shipped the same day. Delivered within 24h!
Reliable products, worry-free!
Unused items? No questions asked!
Descrierea produsului:
Exemplu de conectare:
Pentru realizarea acestui exemplu aveti nevoie de urmatoarele:
1x Modul conversie analog - digital (ADC) 4 canale 12 biti - I2C - ADS1015 || Referinta HEVAEA_ADS1015
1x Placa de dezvoltare UNO || Referinta TXVMOK_DB-UNO-R3
diferite fire necesare pentru realizarea legaturilor electrice
Conexiuni:
Cod arduino:
#include <Wire.h>
#include <Adafruit_ADS1X15.h>
Adafruit_ADS1015 ads;
void setup(void)
{
Serial.begin(9600);
Serial.println("Hello!");
Serial.println("Getting single-ended readings from AIN0..3");
Serial.println("ADC Range: +/- 6.144V (1 bit = 3mV/ADS1015, 0.1875mV/ADS1115)");
ads.begin();
}
void loop(void)
{
int16_t adc0, adc1, adc2, adc3;
adc0 = ads.readADC_SingleEnded(0);
adc1 = ads.readADC_SingleEnded(1);
adc2 = ads.readADC_SingleEnded(2);
adc3 = ads.readADC_SingleEnded(3);
Serial.print("AIN0: ");
Serial.println(adc0);
Serial.print("AIN1: ");
Serial.println(adc1);
Serial.print("AIN2: ");
Serial.println(adc2);
Serial.print("AIN3: ");
Serial.println(adc3);
Serial.println(" ");
delay(1000);
Continutul coletului:
1x Modul conversie analog - digital (ADC) 4 canale 12 biti - I2C - ADS1015
1x Bareta pini tata
Reference: XZLABM_AAA
Brand: GroundStudio