Stufin
Home Quick Cart Profile

CJMCU-6701 GSR Skin Sensor Module Analog SPI 3.3V/5V

Buy Now on Stufin

Operating Voltage

3.3V or 5V

Operating Current

<10mA

Output Impedance

100

Sensitivity

0.1mV/

Measurement Range

0-100k

SPI Clock Frequency

Up to 1MHz

Package Dimensions

25mm x 15mm

Weight

Approximately 5g

Applications

  • Biofeedback systems
  • Emotional state monitoring
  • Lie detection systems
  • Wearable devices for health monitoring
  • Psychological research
  • Gaming and virtual reality applications

Note

The CJMCU-6701 module requires a power supply, a microcontroller or ADC, and additional circuitry to operate.

Proper setup and calibration are necessary to ensure accurate and reliable measurements.

By providing a detailed description of the CJMCU-6701 GSR Skin Sensor Module, this documentation aims to facilitate the integration and use of this component in various IoT applications, ensuring that developers, engineers, and hobbyists can harness its full potential.

Pin Configuration

  • CJMCU-6701 GSR Skin Sensor Module Analog SPI 3.3V/5V Pinout Explanation
  • The CJMCU-6701 GSR Skin Sensor Module is a popular IoT component used to measure skin conductance or galvanic skin response (GSR). This module features an analog SPI interface and operates at 3.3V or 5V. Here's a detailed explanation of each pin:
  • Pinout Structure:
  • The CJMCU-6701 module has a total of 7 pins, arranged in two rows: 4 pins on one side and 3 pins on the other.
  • Pin Description:
  • Row 1 (4 pins):
  • 1. VCC (Power Supply)
  • Function: Power supply pin for the module
  • Voltage: 3.3V or 5V (depending on the operating mode)
  • Connection: Connect to a suitable power source (e.g., Arduino's 3.3V or 5V pin)
  • 2. GND (Ground)
  • Function: Ground pin for the module
  • Connection: Connect to a suitable ground (e.g., Arduino's GND pin)
  • 3. CS (Chip Select)
  • Function: SPI chip select pin
  • Connection: Connect to the CS pin of your microcontroller (e.g., Arduino's digital pin)
  • 4. SCK (Serial Clock)
  • Function: SPI clock pin
  • Connection: Connect to the SCK pin of your microcontroller (e.g., Arduino's SCK pin)
  • Row 2 (3 pins):
  • 1. MISO (Master In Slave Out)
  • Function: SPI data output pin
  • Connection: Connect to the MISO pin of your microcontroller (e.g., Arduino's MISO pin)
  • 2. MOSI (Master Out Slave In)
  • Function: SPI data input pin
  • Connection: Connect to the MOSI pin of your microcontroller (e.g., Arduino's MOSI pin)
  • 3. OUT (Analog Output)
  • Function: Analog output pin providing the GSR measurement
  • Connection: Connect to an analog-to-digital converter (ADC) input pin on your microcontroller (e.g., Arduino's A0 pin)
  • Important Notes:
  • Make sure to connect the VCC pin to a suitable power source, taking into account the operating voltage of your microcontroller.
  • The CS, SCK, MISO, and MOSI pins are used for SPI communication and should be connected accordingly.
  • The OUT pin provides an analog output, which should be connected to an ADC input pin on your microcontroller.
  • Ensure proper voltage-level shifting if your microcontroller operates at a different voltage level than the CJMCU-6701 module.
  • By following this pinout explanation, you can successfully connect the CJMCU-6701 GSR Skin Sensor Module to your microcontroller and start measuring skin conductance or galvanic skin response.

Code Examples

CJMCU-6701 GSR Skin Sensor Module Analog SPI 3.3V/5V Documentation
Overview
The CJMCU-6701 GSR Skin Sensor Module is an analog SPI-based sensor module designed to measure skin conductance, also known as Galvanic Skin Response (GSR). It's a widely used module in various IoT applications, such as wearable devices, health monitoring systems, and biofeedback systems. This module operates at both 3.3V and 5V, making it compatible with a wide range of microcontrollers.
Technical Specifications
Supply Voltage: 3.3V or 5V
 Interface: Analog SPI
 GSR Measurement Range: 0-100 k
 Sensitivity: 0.1 k
 Response Time: < 10 ms
 Operating Temperature: -20C to 70C
Hardware Connections
To use the CJMCU-6701 GSR Skin Sensor Module, connect it to a microcontroller or development board as follows:
VCC: Connect to 3.3V or 5V power supply
 GND: Connect to ground
 SCK: Connect to SPI clock pin
 MISO: Connect to SPI MISO (Master In Slave Out) pin
 MOSI: Connect to SPI MOSI (Master Out Slave In) pin
 CS: Connect to SPI chip select pin
 OUT: Connect to analog output pin (GSR measurement)
Code Examples
### Example 1: Basic GSR Measurement using Arduino
This example demonstrates how to measure skin conductance using an Arduino Uno board and the CJMCU-6701 GSR Skin Sensor Module.
```c++
const int csPin = 5;  // Chip select pin
const int outPin = A0;  // Analog output pin
void setup() {
  Serial.begin(9600);
  pinMode(csPin, OUTPUT);
  digitalWrite(csPin, HIGH);
}
void loop() {
  digitalWrite(csPin, LOW);
  int gsrValue = analogRead(outPin);
  digitalWrite(csPin, HIGH);
float gsrResistance = (gsrValue  5.0) / 1023.0;
  Serial.print("GSR Resistance: ");
  Serial.print(gsrResistance);
  Serial.println(" k");
delay(500);
}
```
### Example 2: Implementing SPI Communication using Raspberry Pi (Python)
This example illustrates how to communicate with the CJMCU-6701 GSR Skin Sensor Module using a Raspberry Pi and Python.
```python
import spidev
import time
# SPI setup
spi = spidev.SpiDev()
spi.open(0, 0)  # Use SPI bus 0, device 0
spi.max_speed_hz = 1000000
# Define GSR sensor pin connections
cs_pin = 17
out_pin = 0
while True:
    # Select the GSR sensor
    spi.xfer2([0x01, 0x00, 0x00, 0x00])  # Write 0x01 to CS pin
    time.sleep(0.01)
# Read GSR measurement
    gsr_value = spi.xfer2([0x00, 0x00, 0x00, 0x00])[1]
    gsr_resistance = (gsr_value  5.0) / 1023.0
print(f"GSR Resistance: {gsr_resistance:.2f} k")
# Deselect the GSR sensor
    spi.xfer2([0x00, 0x00, 0x00, 0x00])  # Write 0x00 to CS pin
    time.sleep(0.5)
```
Note: In both examples, you need to adjust the pin connections and SPI settings according to your specific microcontroller or development board.