0

CountIO on Clue nRF52840?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CountIO on Clue nRF52840?

by swb1701 on Sun Apr 11, 2021 4:06 pm

I'm trying to read a simple (one wire) encoder (on a tt motor) with Circuit Python on the Clue. It would appear
that countio is what would be needed but it's apparently not implemented for the Clue. Are
there plans to add it? Is there a work around for accurately reading the encoder? Thanks.

swb1701
 
Posts: 9
Joined: Mon May 30, 2011 11:02 pm

Re: CountIO on Clue nRF52840?

by tannewt on Sun Apr 11, 2021 8:42 pm

I don't see an existing issue. Please file one here: https://github.com/adafruit/circuitpyth ... new/choose

tannewt
 
Posts: 2571
Joined: Thu Oct 06, 2016 8:48 pm

Re: CountIO on Clue nRF52840?

by swb1701 on Mon Apr 12, 2021 9:52 am

I opened an issue (for enhancement).

swb1701
 
Posts: 9
Joined: Mon May 30, 2011 11:02 pm

Re: CountIO on Clue nRF52840?

by kevinjwalters on Wed Aug 04, 2021 7:14 pm

Is there a description somewhere of countio's capabilities? I'm curious about maximum frequency, minimum pulse width and which pins can be used? I'll give the 7 alpha a try tomorrow...

kevinjwalters
 
Posts: 975
Joined: Sun Oct 01, 2017 3:15 pm

Re: CountIO on Clue nRF52840?

by kevinjwalters on Thu Aug 05, 2021 4:57 pm

I tried it with D2, D13 and A5 on 7.0.0-alpha.5 on a Feather nRF52840 Express and it seems to work well. It picks up a lot of switch bounce which may not be useful for everyone.

Is there scope for putting the pin in pull-up/pull-down mode?

kevinjwalters
 
Posts: 975
Joined: Sun Oct 01, 2017 3:15 pm

Re: CountIO on Clue nRF52840?

by kevinjwalters on Sun Aug 08, 2021 10:34 am

Original question was about CLUE but for any Feather users of the nRF52840 range, I've discovered that using D2 as an input can be confusing and not work.

kevinjwalters
 
Posts: 975
Joined: Sun Oct 01, 2017 3:15 pm

Re: CountIO on Clue nRF52840?

by kevinjwalters on Sun Aug 08, 2021 12:11 pm

Would also be useful to know if the count property of countio.Counter has any maximum value and unfortunate issues if that's exceeded.

kevinjwalters
 
Posts: 975
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.