niekb
Posts: 6
Joined: Sat Dec 07, 2013 2:33 pm

High resolution rotary encoder: Raspberry Pi or Arduino?

Sat Dec 07, 2013 2:47 pm

Hi!

I would like to read a very high resolution rotary encoder (16bit, i.e. 65536 counts per revolution), rotating at 10rpm. Then, I would like to send the encoder position to another computer using Ethernet or WiFi (as fast as possible, I would like to send the position via UDP at least 600x per second).

1. What would be my best option? (I am a beginner) Raspberry Pi, or Arduino ( I am concerned Arduino is not fast enough)
2. Does anyone have experience with high resolution encoders? What would be a good place to find such rotary encoders?
3. I found a couple of encoders, but they use a SSI interface, or a BiSS interface. Can I use these interfaces with Raspberry Pi?

Any help is greatly appreciated!

Thanks!!

Niek

User avatar
joan
Posts: 14959
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: High resolution rotary encoder: Raspberry Pi or Arduino?

Sat Dec 07, 2013 4:05 pm

I'm not sure about an Arduino.

It should be within a Pi's capabilities.

10923 encoder transitions per second, say 50000 edges per second, should be OK.

No problem sending 600 UDP updates per second over wifi, I routinely send circa 100,000 messages per second over TCP.

niekb
Posts: 6
Joined: Sat Dec 07, 2013 2:33 pm

Re: High resolution rotary encoder: Raspberry Pi or Arduino?

Sat Dec 07, 2013 4:17 pm

Hi Joan,

Awesome, thanks!

I noticed that I made a mistake regarding the rotation rate, it should be around 2 rotations per second, so 131072 encoder transitions per second. Is that still possible?

Also, can I use SSi or BiSS interfaces with Raspberry Pi for the encoder? I tried to google it, but no luck so far.

What is your experience with the 'reliability' and performance of the wifi connection with Raspberry Pi at one end (for instance lag)? I realize that the answer is probably highly depending on the amount of data, quality of the network (I am using a dedicated network for this), but any ideas would be appreciated.

Niek

User avatar
joan
Posts: 14959
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: High resolution rotary encoder: Raspberry Pi or Arduino?

Sat Dec 07, 2013 5:16 pm

I think at 2 rotations per second you are getting into a doubtful region for the Pi. My own feeling is that it would probably work, but without much spare margin.

I hadn't heard of BiSS/SSI before now.

I only use wireless in a home situation and don't suffer any problems.

I guess you might be in an industrial environment and that is outside my experience.

maxplex
Posts: 1
Joined: Wed Apr 13, 2016 1:34 am

Re: High resolution rotary encoder: Raspberry Pi or Arduino?

Wed Apr 13, 2016 1:37 am

Hi,
I need to read a rotary encoder using SSI or BiSS. Just wondering if you got this up and running Neik

User avatar
DougieLawson
Posts: 39296
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: High resolution rotary encoder: Raspberry Pi or Arduino?

Thu Apr 14, 2016 1:36 pm

maxplex wrote:Hi,
I need to read a rotary encoder using SSI or BiSS. Just wondering if you got this up and running Neik

Don't hold your breath waiting for a reply. Neik hasn't visited the forum since "Tue 17 Dec 2013, 23:16".
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”