Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use My comp: Examples, Pinouts, and Specs

Image of My compDesign with My comp in Cirkit Designer

Introduction

Explore Projects Built with My comp

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM: A project utilizing My comp in a practical application
Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM

This circuit features a Beelink MINI S12 N95 computer connected to a 7-inch display via HDMI for video output and two USB connections for power and touch screen functionality. An Arduino UNO is interfaced with a fingerprint scanner for biometric input. The Beelink MINI S12 N95 is powered by a PC power supply, which in turn is connected to a 240V power source. Additionally, an ESP32 CAM module is powered and programmed via a USB plug and an FTDI programmer, respectively, for wireless camera capabilities.

Open Project in Cirkit Designer
Image of Arduino Mega 2560 Controlled LCD Display with Adjustable Contrast: A project utilizing My comp in a practical application
Arduino Mega 2560 Controlled LCD Display with Adjustable Contrast

This circuit features an Arduino Mega 2560 microcontroller connected to a 16x2 LCD display, with a trimmer potentiometer to adjust the LCD contrast and a resistor for backlight current limiting. The Arduino is programmed to initialize the LCD and display the message 'Hello, World!'. The circuit is powered through the Arduino's 5V pin, which is connected to a voltage regulator (verter_usb), and is designed for displaying simple text messages with adjustable visibility.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Parameter Value
Manufacturer Arduino
Part ID AHT20+BMP280
Operating Voltage 3.3V to 5V
Communication Protocol I2C
Temperature Range -40°C to 85°C (AHT20)
Humidity Range 0% to 100% RH (AHT20)
Pressure Range 300 hPa to 1100 hPa (BMP280)
Temperature Accuracy ±0.3°C (AHT20), ±1°C (BMP280)
Humidity Accuracy ±2% RH (AHT20)
Pressure Accuracy ±1 hPa (BMP280)
Power Consumption Low power consumption for battery use

Pin Configuration and Descriptions

Pin Name Description Notes
VCC Power supply (3.3V to 5V) Connect to the power source
GND Ground Connect to the circuit ground
SDA I2C Data Line Connect to Arduino SDA pin
SCL I2C Clock Line Connect to Arduino SCL pin

Usage Instructions

How to Use the Component in a Circuit

  1. Wiring the Component:

    • Connect the VCC pin to a 3.3V or 5V power source.
    • Connect the GND pin to the ground of your circuit.
    • Connect the SDA pin to the SDA pin on your Arduino (A4 on Arduino UNO).
    • Connect the SCL pin to the SCL pin on your Arduino (A5 on Arduino UNO).
  2. Install Required Libraries:

    • Install the Adafruit_AHTX0 and Adafruit_BMP280 libraries from the Arduino Library Manager.
  3. Upload Example Code:

    • Use the following code to read temperature, humidity, and pressure data:
#include <Wire.h>
#include <Adafruit_AHTX0.h> // Library for AHT20 sensor
#include <Adafruit_BMP280.h> // Library for BMP280 sensor

// Create sensor objects
Adafruit_AHTX0 aht;
Adafruit_BMP280 bmp;

void setup() {
  Serial.begin(9600);
  while (!Serial); // Wait for Serial Monitor to open

  // Initialize AHT20 sensor
  if (!aht.begin()) {
    Serial.println("Failed to initialize AHT20 sensor!");
    while (1);
  }
  Serial.println("AHT20 sensor initialized.");

  // Initialize BMP280 sensor
  if (!bmp.begin(0x76)) { // Default I2C address for BMP280
    Serial.println("Failed to initialize BMP280 sensor!");
    while (1);
  }
  Serial.println("BMP280 sensor initialized.");
}

void loop() {
  // Read data from AHT20
  sensors_event_t humidity, temp;
  aht.getEvent(&humidity, &temp);

  // Read data from BMP280
  float pressure = bmp.readPressure() / 100.0F; // Convert to hPa

  // Print sensor data
  Serial.print("Temperature (AHT20): ");
  Serial.print(temp.temperature);
  Serial.println(" °C");

  Serial.print("Humidity (AHT20): ");
  Serial.print(humidity.relative_humidity);
  Serial.println(" %");

  Serial.print("Pressure (BMP280): ");
  Serial.print(pressure);
  Serial.println(" hPa");

  delay(2000); // Wait 2 seconds before next reading
}

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detected:

    • Ensure the wiring is correct and matches the pin configuration.
    • Verify that the I2C address (default: 0x76 for BMP280) is correct in the code.
  2. Inaccurate Readings:

    • Check for environmental factors like condensation or dust on the sensor.
    • Calibrate the sensor if necessary using reference equipment.
  3. Arduino Freezes or Crashes:

    • Ensure the power supply is stable and sufficient for the Arduino and sensors.
    • Check for loose connections or short circuits.

FAQs

This concludes the documentation for the My Comp module.