MMjoy - Page 36 - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 03-27-2018, 06:47 PM   #351
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

Hello! I have a problem with mmjoy2. My joy consist from 88 buttons, and worcking propperly. I use diode matrix 10X10 an Arduino NANO.
Recently, I separated 25 buttons into remote module and connected them with a 4-wire FTP cable with a matrix. I got the problem. If the cable is more than 2 meters (3 metres for example) then the spontaneous button presses begin.
Did someone meet with such a problem and how to solve it? I put timers on the buttons - it's better, but still the problem remains. There may be restrictions on the length of the cable?
jazzymanserg is offline   Reply With Quote
Old 03-28-2018, 06:41 AM   #352
rel4y
Member
 
rel4y's Avatar
 
Join Date: Dec 2015
Posts: 624
Default

Your button state is floating. You either need to add a pullup or or pulldown resistor. Best use around 10k Ohms.

Last edited by rel4y; 03-28-2018 at 06:45 AM.
rel4y is offline   Reply With Quote
Old 03-28-2018, 08:09 AM   #353
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

Quote:
Originally Posted by rel4y View Post
Your button state is floating. You either need to add a pullup or or pulldown resistor. Best use around 10k Ohms.
Thx for advice! Where I need to setup them. I thought about this, but i have no variant. I use matrix, If i need pullup resistor for each button - it`s very many resistors. May be I can Pullup each collumns, and pulldown each row ? Have you advice ?
And Are you shure, that Mega_mozg not include internal Arduino pullup and pulldown resistors ?

Last edited by jazzymanserg; 03-28-2018 at 09:03 AM.
jazzymanserg is offline   Reply With Quote
Old 03-28-2018, 10:30 AM   #354
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

Am I right?
Attached Thumbnails
Click image for larger version

Name:	mm.jpg
Views:	223
Size:	30.3 KB
ID:	181692  

Last edited by jazzymanserg; 03-28-2018 at 11:04 AM.
jazzymanserg is offline   Reply With Quote
Old 04-06-2018, 04:41 PM   #355
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

Oh , Boys, Thnx for answer. ))))))
Theme is alive )))
I founded ! Its working On 5 meters wire
Attached Thumbnails
Click image for larger version

Name:	mm1.jpg
Views:	200
Size:	34.7 KB
ID:	182133  
jazzymanserg is offline   Reply With Quote
Old 04-13-2018, 09:56 PM   #356
rel4y
Member
 
rel4y's Avatar
 
Join Date: Dec 2015
Posts: 624
Default

Sorry, I was on vacation. 10K pullup is the way to go, glad you got it sorted out.

Btw does anyone know if I need to hardware debounce encoders or if MMJoy2 does that in software?

Last edited by rel4y; 04-13-2018 at 10:19 PM.
rel4y is offline   Reply With Quote
Old 04-14-2018, 06:48 PM   #357
rel4y
Member
 
rel4y's Avatar
 
Join Date: Dec 2015
Posts: 624
Default

Here is my version of an encoder PCB for these abundant EC11 type encoders from Aliexpress. (link) It is hardware debounced and pullups can be added for A, B and push button.

Here is the Osh Park link:
https://oshpark.com/shared_projects/4gvesbVp






Last edited by rel4y; 06-01-2018 at 07:17 PM.
rel4y is offline   Reply With Quote
Old 04-16-2018, 09:51 AM   #358
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

I have 6 encoders and 80 buttons and I setup Capacity betwen + and - of the buttons, but encoders clean. MMJOY2 Let input soft timers for first 12 buttton, and 20 buttons.
So I use timer (for debouncing) for first 32 buttons, and hardware debounce for 60. - its simple R-C filter R 10K C 0.1mF/ If your buttons are very bouncer, so change R or C.
jazzymanserg is offline   Reply With Quote
Old 04-16-2018, 09:52 AM   #359
jazzymanserg
Member
 
jazzymanserg's Avatar
 
Join Date: Oct 2016
Location: Odessa
Posts: 211
Default

Osh Park - cool !
jazzymanserg is offline   Reply With Quote
Old 04-16-2018, 10:57 PM   #360
rel4y
Member
 
rel4y's Avatar
 
Join Date: Dec 2015
Posts: 624
Default

Quote:
Originally Posted by jazzymanserg View Post
I have 6 encoders and 80 buttons and I setup Capacity betwen + and - of the buttons, but encoders clean. MMJOY2 Let input soft timers for first 12 buttton, and 20 buttons.
So I use timer (for debouncing) for first 32 buttons, and hardware debounce for 60. - its simple R-C filter R 10K C 0.1mF/ If your buttons are very bouncer, so change R or C.
Thanks for the info mate!

But isnt 0.1 mF a bit high? That should give you a pretty large slope of like 1 second. The 100 nF cap should theoretically provide a 1 ms slope in the PCB I posted above.
rel4y is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:39 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.