Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Controlled Relay System with Ultrasonic Sensing and Temperature Monitoring

Image of Arduino-Controlled Relay System with Ultrasonic Sensing and Temperature Monitoring

Circuit Documentation

Summary

This circuit is designed to control various devices, including a relay module, ultrasonic distance sensor, temperature sensor, LED strip, pilot lamps, fans, and a water pump. The central control unit is an Arduino 101 microcontroller, which interfaces with the sensors and controls the relay module to switch the connected devices. The circuit is powered by a switching power supply that converts 220V AC to a DC voltage, which is then stepped down by a DC buck converter to supply the necessary voltage levels to the components.

Component List

Arduino 101

  • Microcontroller board based on the Intel Curie module.
  • Provides various digital I/O pins and analog inputs.
  • Capable of PWM output and I2C communication.

Relay 4 Channel 5v

  • A 4-channel relay module with both normally open (NO) and normally closed (NC) contacts.
  • Controlled by digital signals to switch connected devices on and off.

Switching Power Supply

  • Converts 220V AC power to a DC voltage.
  • Provides a ground reference and positive voltage output.

Power 220V

  • Represents the main AC power input to the circuit.

XL4015 5A DC Buck Step-down

  • A DC-DC step-down (buck) converter module.
  • Steps down the voltage to a lower level suitable for the circuit components.

MKE-S01 Ultrasonic Distance Sensor

  • Measures distances by emitting ultrasonic waves and measuring the time taken for the echo to return.

TEMP (Temperature Sensor)

  • Senses the temperature of the environment.

Pilot Lamp Red

  • An indicator lamp that lights up red when powered.

Pilot Lamp Green

  • An indicator lamp that lights up green when powered.

40 Fan 12V

  • A 12V DC fan used for cooling purposes.

Water Pump

  • A DC water pump used to circulate or move water.

WS2815 LED Strip

  • An LED strip with individually addressable RGB LEDs.

Wiring Details

Arduino 101

  • D13/SCK connected to Ultrasonic Distance Sensor TRIG pin.
  • D12/MISO connected to Ultrasonic Distance Sensor ECHO pin.
  • D11 PWM/MOSI connected to TEMP D3 pin.
  • D4 connected to Relay 4 Channel 5v IN4 pin.
  • D3 PWM connected to Relay 4 Channel 5v IN3 pin.
  • D2 connected to Relay 4 Channel 5v IN2 pin.
  • D1/TX connected to Relay 4 Channel 5v IN1 pin.
  • GND connected to the ground net of the circuit.
  • VIN connected to the positive voltage from the Switching Power Supply.

Relay 4 Channel 5v

  • IN1, IN2, IN3, IN4 controlled by Arduino 101.
  • VCC connected to the positive output from the XL4015 5A DC Buck Step-down.
  • GND connected to the ground net of the circuit.
  • COM1 connected to Water Pump GND.
  • NO1, NO2, NO3, NO4 connected to the negative voltage from the Switching Power Supply.
  • NC4 connected to Pilot Lamp Green X1 pin.

Switching Power Supply

  • AC connected to Power 220V hot and neutral wires.
  • GND connected to the ground net of the circuit.
  • -V connected to the negative voltage net of the circuit.
  • +V connected to the positive voltage net of the circuit.

XL4015 5A DC Buck Step-down

  • Input + connected to the positive voltage from the Switching Power Supply.
  • Input - connected to the negative voltage from the Switching Power Supply.
  • Output + connected to the positive voltage net of the circuit.
  • Output - connected to the ground net of the circuit.

MKE-S01 Ultrasonic Distance Sensor

  • 5V connected to the positive output from the XL4015 5A DC Buck Step-down.
  • GND connected to the ground net of the circuit.
  • TRIG connected to Arduino 101 D13/SCK pin.
  • ECHO connected to Arduino 101 D12/MISO pin.

TEMP (Temperature Sensor)

  • 5V connected to the positive output from the XL4015 5A DC Buck Step-down.
  • D3 connected to Arduino 101 D11 PWM/MOSI pin.
  • GND connected to the ground net of the circuit.

Pilot Lamp Red

  • X1 connected to Relay 4 Channel 5v COM4 pin.
  • X2 connected to the positive voltage net of the circuit.

Pilot Lamp Green

  • X1 connected to Relay 4 Channel 5v NC4 pin.
  • X2 connected to the positive voltage net of the circuit.

40 Fan 12V

  • +12V connected to the positive voltage net of the circuit.
  • -12V connected to Relay 4 Channel 5v NO1 pin.

Water Pump

  • VCC connected to the positive voltage net of the circuit.
  • GND connected to Relay 4 Channel 5v COM1 pin.

WS2815 LED Strip

  • +12V connected to the positive voltage net of the circuit.
  • GND connected to Relay 4 Channel 5v COM3 pin.
  • B0 and D0 not connected in the provided net list.

Documented Code

No code was provided for the microcontrollers in the circuit. The documentation of the code would include descriptions of the functions, initialization routines, main loop, and any interrupt service routines or additional functions used to control the hardware components based on the inputs and sensor data.