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

Arduino Nano 33 BLE IR Sensor Interface

View and Edit Project In Cirkit DesignerImage of Arduino Nano 33 BLE IR Sensor Interface

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino Nano 33 BLE microcontroller board interfaced with an infrared (IR) sensor. The IR sensor is used to detect the presence of objects or motion based on the infrared radiation they emit. The sensor's output is connected to one of the digital pins of the Arduino Nano 33 BLE, allowing the microcontroller to read the sensor's signal. The sensor is powered by the 3.3V output from the Arduino board, and the ground is shared between the two components to complete the circuit.

Component List

Arduino Nano 33 BLE with pinout

IR Sensor

Wiring Details

Arduino Nano 33 BLE with pinout

IR Sensor

Documented Code

No code has been provided for the microcontroller. To fully utilize the circuit, embedded code should be written and uploaded to the Arduino Nano 33 BLE. The code should initialize the digital pin connected to the IR sensor as an input and continuously read its value in the main loop. When the sensor detects infrared radiation, the output pin will change state, and this change can be detected by the microcontroller to trigger an event or action.

// Example code snippet for Arduino Nano 33 BLE to read IR sensor data
void setup() {
  pinMode(7, INPUT); // Initialize D7 as an input
}

void loop() {
  int sensorValue = digitalRead(7); // Read the value from the IR sensor
  if (sensorValue == HIGH) {
    // Infrared radiation detected, perform an action
  } else {
    // No infrared radiation detected, perform another action or do nothing
  }
  // Add a small delay to prevent reading too frequently
  delay(100);
}

Please note that the above code is a basic example and should be adapted to the specific requirements of the application. Additional functionality such as debouncing, event handling, and communication over BLE can be implemented as needed.