meta data for this page
Differences
This shows you the differences between two versions of the page.
| sensor:cjmcu_8221 [2026/02/12 18:55] – created - external edit 127.0.0.1 | sensor:cjmcu_8221 [2026/02/12 19:10] (current) – vamsan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LamaPLC: CJMCU-8221 Analog Devices Precision instrumentation amplifier module ====== | ====== LamaPLC: CJMCU-8221 Analog Devices Precision instrumentation amplifier module ====== | ||
| + | {{ : | ||
| + | The **CJMCU-8221** is a high-performance, | ||
| - | The CJMCU-8221 is a high-performance, | + | === Key Technical Specifications === |
| + | * **Core Chip: | ||
| + | * **Programmable Gain:** Set via a single external resistor from 1 to 1000. | ||
| + | * **Supply Voltage:** Supports single or dual supplies from ±2.3 V to ±18 V. | ||
| + | * **High CMRR:** Minimum Common-Mode Rejection Ratio (CMRR) of 80 dB to 90 dB (at G=1), enabling rejection of wideband interference and line harmonics. | ||
| + | * **Low Noise:** Input voltage noise of approximately 8 nV/√Hz at 1 kHz. | ||
| + | * **Form Factor:** Compact MSOP package on a breakout board for easy prototyping. | ||
| - | Key Technical Specifications | + | === CJMCU-8221 Pinout === |
| + | ^Pin # | ||
| + | |1|-IN|Negative Input Terminal for the differential signal.| | ||
| + | |2|RG|Gain Setting Terminal. Connect one end of the gain resistor here.| | ||
| + | |3|RG|Gain Setting Terminal. Connect the other end of the resistor here.| | ||
| + | |4|+IN|Positive Input Terminal for the differential signal.| | ||
| + | |5|-VS|Negative Power Supply. Connect to negative rail (e.g., -5V) or Ground for a single supply.| | ||
| + | |6|REF|Reference Voltage. Sets the output " | ||
| + | |7|VOUT|Output Signal. The amplified result of (+IN) - (-IN).| | ||
| + | |8|+VS|Positive Power Supply. Connect to positive rail (e.g., +5V to +18V).| | ||
| - | Core Chip: Analog Devices AD8221. | + | * **Dual vs. Single Supply:** While it can operate on a single |
| - | Programmable Gain: Set via a single | + | * **REF Pin:** Do not leave this pin floating. Tie it to GND for a 0V reference or to a specific |
| - | Supply Voltage: Supports single or dual supplies ranging from ±2.3 V to ±18 V. | + | * **Decoupling:** Always place bypass capacitors (e.g., 0.1µF) between the supply pins and ground to minimize noise. |
| - | High CMRR: Minimum Common-Mode Rejection Ratio (CMRR) of 80 dB to 90 dB (at G=1), allowing it to reject wideband interference and line harmonics. | + | |
| - | Low Noise: Input voltage | + | |
| - | Form Factor: Compact MSOP package on a breakout board for easy prototyping. | + | |
| - | Gain Calculation | + | === Gain Calculation |
| + | The gain (G) of the module is determined by the external resistor (R< | ||
| - | The gain (G) of the module is determined by the external resistor (RG) connected across the RG pins. Use the following formula: | + | ^Target Gain^Resistor (R< |
| - | + | ||
| - | ^Target Gain^Resistor (RG)| | + | |
| |1|Open (No resistor)| | |1|Open (No resistor)| | ||
| - | |10|| | + | |10|5.49 kΩ| |
| - | |100|| | + | |100|499 Ω| |
| - | |1000|| | + | |1000|49.4 Ω| |
| + | |||
| + | //Many breakout boards come with a pre-soldered 499 Ω resistor, setting the default gain to approximately 100.// | ||
| + | |||
| + | === Arduino Code Example === | ||
| + | <code c> | ||
| + | void setup() { | ||
| + | Serial.begin(9600); | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | int sensorValue = analogRead(A0); | ||
| + | // OUT Pin: Connect to an Arduino Analog Input (e.g., A0) | ||
| + | float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage | ||
| + | Serial.println(voltage); | ||
| + | delay(100); | ||
| + | } | ||
| + | </ | ||
| {{tag> | {{tag> | ||