Editor Version ×
Standard

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

Profession

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

Ongoing

STD 12 WAY

License:

Mode: Editors' pick

  • 1.4k
  • 0
  • 3
Update time: 2022-03-26 07:22:36
Creation time: 2021-02-25 23:18:17
Description

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);

 

}

 

 

Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
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

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn