VMA344 A/D D/A CONVERTER MODULE PCF8591 USER MANUAL
VMA344 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
VMA344 5. Overview The VMA344 - PCF8591 is a monolithically integrated, low-power, 8-bit CMOS data acquisition device. The PCF8591 has four analogue inputs, one analogue output and a serial I2C bus interface. For testing purposes, the VMA344 contains a LDR, NTC and a trimmer, which are connected to the PCF8591 by 3 jumpers. single power supply operating supply voltage........................................................................................ 2.5-6.
VMA344 1 light sensor 9 AIN0 2 3 VCC 10 AIN1 GND 11 AIN2 4 SDA 12 AIN3 5 SCL 13 potentiometer 6 power LED 14 temperature sensor 7 signal LED 15 jumpers P4, P5, P6 8 AOUT 7. Test Example 1: Reading the 4 Analogue Inputs 1. Make the connections as mentioned before. You will not need the A0 connection for this example. 2. Click here to download and extract VMA344 Test file from our website. 3. Run the Arduino® IDE and load the VMA344 test software. 4.
VMA344 9. Software Example #include "Wire.h" #define PCF8591 (0x90 >> 1) byte adcvalue0, adcvalue1, adcvalue2, adcvalue3; void setup() { Wire.begin(); Serial.begin(9600); } void loop() { Wire.beginTransmission(PCF8591); Wire.write(0x04); Wire.endTransmission(); Wire.requestFrom(PCF8591, 5); adcvalue0=Wire.read(); adcvalue0=Wire.read(); adcvalue1=Wire.read(); adcvalue2=Wire.read(); adcvalue3=Wire.read(); Serial.print(adcvalue0); Serial.print(" ,"); Serial.print(adcvalue1); Serial.print(" ,"); Serial.
VMA344 Serial.begin(9600); } void loop() { for (int i = 0; i < 256; i++) { Wire.beginTransmission(PCF8591); Wire.write(0x40); // sets the PCF8591 into a DA mode Wire.write(i); // sets the outputn Wire.endTransmission(); delay(500); DACout = i; RawValue0 = analogRead(Ain); Voltage = (RawValue0 * 5.0 ) / 1024.0; DACoutVolt = (DACout * 5.0)/256.0; Serial.print("DAC Out = "); Serial.print(DACout); Serial.print("\tDAC Target Voltage = "); Serial.print(DACoutVolt, 3); Serial.print("\tRaw ADC Value = "); Serial.
Velleman® Service and Quality Warranty Since its foundation in 1972, Velleman® acquired extensive experience in the electronics world and currently distributes its products in over 85 countries. All our products fulfil strict quality requirements and legal stipulations in the EU. In order to ensure the quality, our products regularly go through an extra quality check, both by an internal quality department and by specialized external organisations.