4.1 Hardware Diagram
This example uses the following hardware configuration to measure the current:
- The DAC0 OUT pin of the device (PD6 on AVR EA) must be connected to the ADC0 IN1 pin of the device (PD0 on AVR EA) via resistor R1
- The sensing resistor RSENSE is connected between the ADC0 inputs IN1 and IN0 (PD0 and PD1 on AVR EA)
- The ADC0 AIN0 pin (PD1 on AVR EA) must be connected to ground via resistor R2
This example uses the following values: