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

Arduino UNO-Based RS485 Communication System with Potentiometer-Controlled LEDs

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based RS485 Communication System with Potentiometer-Controlled LEDs

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with multiple components including rotary potentiometers, LEDs, resistors, a UART TTL to RS485 converter, an RS485 to USB converter, and a 5V power supply unit (PSU). The circuit is designed to read analog inputs from potentiometers, control LEDs, and facilitate communication between the Arduino and a computer via RS485 and USB.

Component List

  1. Arduino UNO

    • Description: Microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. UART TTL to RS485 Two-way Converter

    • Description: Converts UART TTL signals to RS485 signals.
    • Pins: VCC, TXD, RXD, GND, A, B
  3. RS485 to USB Converter

    • Description: Converts RS485 signals to USB signals.
    • Pins: A/TX, B/RX
  4. 5V PSU

    • Description: 5V power supply unit.
    • Pins: 5V+, GND, 5V OK, PE, N, L
  5. Power 220V

    • Description: 220V AC power source.
    • Pins: hot wire, neutral wire
  6. Rotary Potentiometer

    • Description: Variable resistor with a resistance of 10k Ohms.
    • Pins: leg1, wiper, leg2
  7. LED: Two Pin (red)

    • Description: Red LED.
    • Pins: cathode, anode
  8. Resistor

    • Description: Fixed resistor with a resistance of 100 Ohms.
    • Pins: pin1, pin2

Wiring Details

Arduino UNO

UART TTL to RS485 Two-way Converter

RS485 to USB Converter

5V PSU

Power 220V

Rotary Potentiometer

Rotary Potentiometer

Rotary Potentiometer

LED: Two Pin (red)

LED: Two Pin (red)

LED: Two Pin (red)

Resistor

Resistor

Resistor

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Documentation (documentation.txt)

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.