Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

T1452_ROTARY ENCODER SWITCH

2 posters

Go down  Message [Page 1 of 1]

1T1452_ROTARY ENCODER SWITCH Empty T1452_ROTARY ENCODER SWITCH Thu Jan 05, 2023 11:24 am

Defran

Defran

T1452_ROTARY ENCODER SWITCH Ky_04010

If I press the external button, the voltage is 0v; but if I press rotary sw, the voltage is 0.74v (same electrical circuit), why?
Attachments
T1452_ROTARY ENCODER SWITCH AttachmentROTARY ENCODER.zip
You don't have permission to download attachments.
(15 Kb) Downloaded 0 times



Last edited by Defran on Sun May 21, 2023 11:32 pm; edited 1 time in total

2T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Thu Jan 05, 2023 1:06 pm

arcachofo

arcachofo

If I press the external button, the voltage is 0v; but if I press rotary sw, the voltage is 0.74v (same electrical circuit), why?
Maybe because these switches we got are old and rusty...

But mos probably because it is not the same circuit.
This component is a rough approximation, some day it will get a renovation.

3T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Thu Jan 05, 2023 11:54 pm

Defran

Defran

The problem is the internal switch that pressed does not offer zero ohms. It behaves as it had a series resistor.

Tell me, please.

4T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Fri Jan 06, 2023 1:26 am

arcachofo

arcachofo

This component is a rough approximation, some day it will get a renovation.

5T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Sun Jan 08, 2023 1:33 pm

Defran

Defran

Project #194. Press SW, output 0, release... 5v. SW in D17.

Conect sw to D4. Press SW, output 2,5V, release... 5V.


????????

6T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Sun Jan 08, 2023 1:45 pm

arcachofo

arcachofo

D4 is an output at High state.

7T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Sun Jan 08, 2023 3:04 pm

Defran

Defran

Wiring to D4 and changing the pin of SW to 4 in the program, of corse.

The idea is to observe the different behavior of the rotary encoder in these 2 pins, D17 and D4.

8T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Sun Jan 08, 2023 3:34 pm

arcachofo

arcachofo

Seems that D4 is used by Adafruit_SSD1306:
Adafruit_SSD1306 display(128, 64, &Wire, 4);

9T1452_ROTARY ENCODER SWITCH Empty Re: T1452_ROTARY ENCODER SWITCH Sun Jan 08, 2023 6:45 pm

Defran

Defran

Correct, this is the reason, thanks for your help.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum