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

Arduino-Based Multi-Switch and Sensor Control System with Joystick Integration

View and Edit Project In Cirkit DesignerImage of Arduino-Based Multi-Switch and Sensor Control System with Joystick Integration

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various switches, potentiometers, a joystick module, and multiple microcontrollers (Arduino Leonardo, Arduino Micro, and AS5600 magnetic encoder). The circuit is designed to read inputs from these components and process them using the microcontrollers. The microcontrollers are programmed to handle the inputs and provide outputs accordingly.

Component List

  1. AS5600 Magnetic Encoder

    • Pins: DIR, SCL, SDA, GP0, VCC, OUT, GND
    • Description: Magnetic encoder for precise angle measurement.
  2. Rotary Potentiometer

    • Pins: leg1, wiper, leg2
    • Description: Adjustable resistor for varying resistance.
    • Properties: Resistance: 10,000 Ohms
  3. Potentiometer

    • Pins: GND, Output, VCC
    • Description: Adjustable resistor for varying resistance.
  4. Micro Switch

    • Pins: COM, NO, NC
    • Description: Small switch for detecting mechanical movements.
  5. Toggle Switch

    • Pins: Vcc, Sig, Gnd
    • Description: Switch for toggling between two states.
  6. Toggle Switch SPST

    • Pins: L1, COM
    • Description: Single-pole single-throw switch.
  7. 2Pin Push Switch

    • Pins: Input +, Output +
    • Description: Push-button switch for momentary contact.
  8. Arduino Micro (Rev3)

    • Pins: MISO, 5V, SCK, MOSI, RESET, GND, RXLED/SS, D1/TX, D0/RX, D2/SDA, D3/SCL, D4 PWM/A6, D5 PWM, D6 PWM/A7, D7, D8 PWM/A8, D9 PWM/A9, D10 PWM/A10, D11 PWM, D12 PWM/A11, VIN, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13 PWM
    • Description: Microcontroller board for various applications.
  9. Arduino Leonardo (Rev3b)

    • Pins: D0/RX, D1/TX, D2/SDA, D3 PWM/SCL, D4/A6, D5 PWM, D6 PWM/A7, D7, n.c., IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, D8/A8, D9 PWM/A9, D10 PWM/A10, D11 PWM, D12/A11, D13 PWM, AREF, SDA, SCL
    • Description: Microcontroller board for various applications.
  10. Joystick Module V2

    • Pins: Signal, Ground, VCC, DATA
    • Description: Joystick module for directional input.
  11. Tactile Switch Buttons - 12mm Square

    • Pins: 3, 1, 4, 2
    • Description: Small push-button switch for user input.
  12. Arduino Micro Pro

    • Pins: RAW, RST, VCC, A3, A2, A1, A0, 15, 14, 16, 10, 9, 8, 7, 6, 5, 4, 3, 2, GND, RX, TX
    • Description: Compact microcontroller board for various applications.

Wiring Details

AS5600 Magnetic Encoder

Rotary Potentiometer

Potentiometer

Micro Switch

Toggle Switch

Toggle Switch SPST

2Pin Push Switch

Arduino Micro (Rev3)

Arduino Leonardo (Rev3b)

Joystick Module V2

Tactile Switch Buttons - 12mm Square

Code Documentation

AS5600 Magnetic Encoder Code

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

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

Arduino Micro (Rev3)