Rotary encoders wor...
 
Notifications
Clear all

Rotary encoders work but just activate 1 button push

3 Posts
2 Users
0 Reactions
1,595 Views
(@hillstars01)
New Member
Joined: 4 years ago
Posts: 2
Topic starter  

Hello,

As already stated in the title i have 2 rotary encoders that work but both activate only one button push no matter wich way and how far I spin them.

Did i wire them wrong or did i forget something int the arduino setup?


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

Hi ! Not sure if you browsed the few advice about encoders here ? https://github.com/SHWotever/SimHub/wiki/Arduino-Rotary-Encoders#read-before
Basically 3 main possibilities 
- It could be an issue about missing resistors (in this case you need the enable "pullup" option)
- Incompatible "timing", only half steps full steps are supported
- Or incompatible pins : a few pins on arduino can't support them.

Are you using a board with included resistors as shown on the wiki ? The pinout suggested by the setup tool is made for these.

Nicolas


   
ReplyQuote
(@hillstars01)
New Member
Joined: 4 years ago
Posts: 2
Topic starter  

Thank you for the fast response. I'm using a pro micro and think I have have figured the issue.

As you said i probably wired them to the wrong pins on the arduino (i have them connected to the a ports and 14 15).

Should i rewire them to the otheside? (the 2 till 8 ports)


   
ReplyQuote
Share: