© 2024 EasyEDA Some rights reserved ISO/IEC
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 5,000 devices or 10,000 pads
3.More rigorous design constraints, more standardized processes
4.For enterprises, more professional users
STD 12 WAY
Mode: Editors' pick
PCB to be mounted on a 12-way single pole rotary switch, to make it work like a stepped voltage divider. Connected to an MCU analog pin, you can read out different values depending on switch position.
It is designed in a way that you will have room for the wires between the PCB and the switch, meaning it will not add any volume to the original switch size.
It is designed for the following switch: https://no.mouser.com/ProductDetail/611-A10005RNCQ
Example sketch (using arduino IDE and joystick library):
#include Joystick.h
#define rotPin A1
void setup () {
pinMode (rotPin, input);
Joystick.begin();
}
void loop() {
uint16_t rot = analogRead(rotPin);
rot = map (rot, 0, 1015, 0, 11);
for (int i = 0; i < 12, i++) {
if (i != rot) {
Joystick.releaseButton(i);
}
}
Joystick.pressButton(rot);
}
ID | Name | Designator | Footprint | Quantity | BOM_Supplier |
---|---|---|---|---|---|
1 | 100nF | C1 | C0402 | 1 | LCSC |
2 | 10K | R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11 | R0402 | 11 | LCSC |
3 | 1K | R12 | R0402 | 1 | LCSC |
4 | 1kΩ | R13,R14 | R0402 | 2 | LCSC |
5 | 12 POSITION STEPPED RESISTOR | ROT | 12 POSITION STEPPED RESISTOR | 1 | LCSC |
Unfold
Loading...
Do you need to add this project to the album?