Arduino Micro-Based Multi-Channel Analog Input System with Potentiometers and Toggle Switches
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Micro (Rev3) microcontroller interfacing with multiple CD74HC4067 multiplexers, potentiometers, and toggle switches. The Arduino Micro controls the multiplexers and reads analog signals from the potentiometers. The toggle switches are used to control specific channels on the multiplexers.
Component List
Arduino Micro (Rev3)
- Description: A microcontroller board based on the ATmega32U4.
- 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
CD74HC4067
- Description: A 16-channel analog multiplexer/demultiplexer.
- Pins: C15, C14, C13, C12, C11, C10, C9, C8, C7, C6, C5, C4, C3, C2, C1, C0, GND, VCC, EN, S0, S1, S2, Analog out, S3
Potentiometer
- Description: A variable resistor used to adjust levels of analog signals.
- Pins: GND, Output, VCC
Toggle Switch SPST
- Description: A single-pole single-throw switch used to control the flow of current.
- Pins: L1, COM
Wiring Details
Arduino Micro (Rev3)
- D1/TX connected to S1 of CD74HC4067
- D0/RX connected to S0 of CD74HC4067
- D2/SDA connected to S2 of CD74HC4067
- D3/SCL connected to S3 of CD74HC4067
- D4 PWM/A6 connected to S0 of CD74HC4067
- D5 PWM connected to S1 of CD74HC4067
- D6 PWM/A7 connected to S2 of CD74HC4067
- D7 connected to S3 of CD74HC4067
- D8 PWM/A8 connected to S0 of CD74HC4067
- D9 PWM/A9 connected to S1 of CD74HC4067
- D10 PWM/A10 connected to S2 of CD74HC4067
- D11 PWM connected to S3 of CD74HC4067
- A2 connected to Analog out of CD74HC4067
- A1 connected to Analog out of CD74HC4067
- A0 connected to Analog out of CD74HC4067
- GND connected to GND of multiple components
- 5V connected to VCC of multiple components
CD74HC4067
- S1 connected to D1/TX of Arduino Micro
- S0 connected to D0/RX of Arduino Micro
- S2 connected to D2/SDA of Arduino Micro
- S3 connected to D3/SCL of Arduino Micro
- S0 connected to D4 PWM/A6 of Arduino Micro
- S1 connected to D5 PWM of Arduino Micro
- S2 connected to D6 PWM/A7 of Arduino Micro
- S3 connected to D7 of Arduino Micro
- S0 connected to D8 PWM/A8 of Arduino Micro
- S1 connected to D9 PWM/A9 of Arduino Micro
- S2 connected to D10 PWM/A10 of Arduino Micro
- S3 connected to D11 PWM of Arduino Micro
- Analog out connected to A2 of Arduino Micro
- Analog out connected to A1 of Arduino Micro
- Analog out connected to A0 of Arduino Micro
- GND connected to GND of multiple components
- VCC connected to VCC of multiple components
- EN connected to GND of multiple components
Potentiometer
- GND connected to GND of multiple components
- Output connected to various C pins of CD74HC4067
- VCC connected to VCC of multiple components
Toggle Switch SPST
- L1 connected to various C pins of CD74HC4067
- COM connected to GND of multiple components
Documented Code
Arduino Micro (Rev3) Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
// No additional documentation provided.
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.