Rotary Encoder Help...
 
Notifications
Clear all

Rotary Encoder Help?

10 Posts
4 Users
0 Reactions
5,321 Views
(@benag)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

Hello All,

I am after some help please. 

I have built a button box with momentary push buttons and 3 rotary encoders. This has been done with an Arduino Micro Pro. 

All of the momentary buttons work perfectly after setting them up with the SIM HUB Matrix. 
 
However, I cannot figure out how to make the rotary encoders work properly?
 
 I did get them to work but it would activate both sides of the encoder at the same time. 
 
I have never used Arduino before or done anything with coding, so have no idea what I am doing.  
 
Any help would be much appreciated.
 
This is how it is wired. 
 
 
 
Thanks in advance,
 
Ben
 

 


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

Hi ! If you are using bare encoders (with no resistors) make sure to enable the pullup option in the sketch setup 😉

Nicolas


   
ReplyQuote
(@benag)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

@admin5435 Thank you for the reply.  Is it really as simple as that?


   
ReplyQuote
(@benag)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

@admin5435 Good Morning,

I enabled the pullup option and they kind of work but not very well. 

They are not very responsive and sometimes it won't work when you turn it one way. You have to turn it the opposite way then back the other way. 

Any Ideas?

 

Thanks,

Ben 

This post was modified 5 years ago by BenAG

   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

@benag

Does simhub is properly connected ? The buttons and encoders won't work correctly when simhub is not connected to the arduino.

Nicolas


   
ReplyQuote
(@benag)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

@admin5435

As far as I can tell? All the momentary push buttons work perfectly and are instant inputs. 

I am using EC11 rotary encoders. 


   
ReplyQuote
(@benag)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

I have found the issue. I had to adjust the millisecond hold. 👍 


   
ReplyQuote
(@boardman310)
New Member
Joined: 4 years ago
Posts: 2
 

Can you us know what you did with the Millisecond hold. I have been trying for a week with 3 different encoders and havr clicked the pull up option but am still not able to get them working. 

I know it has to be full or half turn but have not been able to find the data sheet on any of them. 

Thank you in advance for any guidance you can provide. 

 

 


   
ReplyQuote
(@ebob-nl)
Eminent Member
Joined: 2 years ago
Posts: 12
 

Exactly the same problem here. I can't seem to find the correct adjustment for the rotary. If I disable the pullup resistor it flickers. If I enable the pullup resistor it won't do anything, the hold of millisecond doesn't seem to make any change.

Any advice would be great.

This post was modified 2 years ago by EBob-NL

   
ReplyQuote
(@ebob-nl)
Eminent Member
Joined: 2 years ago
Posts: 12
 

Thanks everyone.

Your input did the trick: enable the pullup option and set millisecond hold at 50 (that worked best for me).


   
ReplyQuote
Share: