Rotary Encoder

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Rotary Encoder

Post by JohnCrow »

Hi
Just tried to download the datasheet for the EB073 rotary encoder E-Block and its linked to the EB074 slide switch datasheet.
(The link from the slide switch E-Block doesn't work at all )
1 in 10 people understand binary, the other one doesn't !

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Rotary Encoder

Post by Spanish_dude »

Hi,

I checked it out and replacing the "73" by "72" I saw this E-Block : http://www.matrixmultimedia.com/datashe ... 2-30-1.pdf

I haven't seen it before, is it a new one coming out ?
I hope I'm not spoiling new stuff :P .

Anyways, this is something I always wanted !
Those 40 pin microcontrollers are so difficult to put in the socket.

Nicolas

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Rotary Encoder

Post by JohnCrow »

Hi Nicolas

I spotted the ZIF board today, looks good, but its only for programming.(Its in the accessories section)

I have a 40pin ZIF in both my V7 programmers. They are not as important for the smaller chips, but it does mean you loose access to the 28pin socket under the zif socket.

If you get this type it will plug straight into the matrix programmer.

http://www.rapidonline.com/Cables-Conne ... 79908aec1a

(Matrix say in the data sheet it may be nessesary to raise it slightly with a 2nd turned pin socket, though I found this wasnt nessesary)
Personally though would not recommend keeping removing it and plugging it back in, as this is bound to wear the TP socket on the programmer.

Did you notice this complete programmer with zifs as well on the e-blocks section

http://www.matrixmultimedia.com/product ... PHPSESSID=
1 in 10 people understand binary, the other one doesn't !

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Rotary Encoder

Post by Steve »

We will be officially releasing these soon.

One thing to note with the ZIF socket add-on is that this makes the EB006 a programmer only. The connections for the chip i/o lines do not come through to the E-block ports. If you want a ZIF socket and still use the EB006 with other E-blocks, then you should probably just use a 40-pin ZIF socket.

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Rotary Encoder

Post by Spanish_dude »

Steve wrote:The connections for the chip i/o lines do not come through to the E-block ports.
That's a bit inconvenient :? .
I'll see if I can get a 40 pin ZIF socket.
JohnCrow wrote:Did you notice this complete programmer with zifs as well on the e-blocks section.
I do like the design of the case, but that's just for programming. There are no outputs to connect the E-block to.

Nicolas.

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Rotary Encoder

Post by Steve »

Making the connections to E-blocks for all pins on all sizes of microcontroller would have greatly increase the cost of the add-on. You would either need a separate ZIF socket for each size of chip or a complex arrangement of relays or switches to automatically route the pins.

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times
Contact:

Re: Rotary Encoder

Post by dbasnett »

JohnCrow wrote:Hi
Just tried to download the datasheet for the EB073 rotary encoder E-Block and its linked to the EB074 slide switch datasheet.
(The link from the slide switch E-Block doesn't work at all )
Me too. Is the EB073 new?

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Rotary Encoder

Post by JohnCrow »

Hi
Yes the rotory encoder and the slide switch board are both new.
I'm interested in the rotary encoder board, but I want to see the data sheet before I decide to buy one.
Im sure matrix will get the link sorted very soon
1 in 10 people understand binary, the other one doesn't !

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Rotary Encoder

Post by DavidA »

Hmm sorry guys, will try to fix this, looks like a badly named datasheet!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Rotary Encoder

Post by Benj »

Hello,

The rotary encoder datasheet is now available and the switch datasheet is now linked correctly. Thanks for letting us know about this issue.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Rotary Encoder

Post by JohnCrow »

Just ordered the Rotary Encoder, is there a flowcode test program available yet ?
Not able to find one in the test program area of the website.
Thanks
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Rotary Encoder

Post by Benj »

Hi John,

Yes there certainly is a test program but it currently uses a customized version of the custom component. Here it is.
Attachments
EB073-12-1.doc
(24 KiB) Downloaded 483 times
Encoder.fcf
(19.26 KiB) Downloaded 596 times

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Rotary Encoder

Post by JohnCrow »

Thanks Ben

That will at least let me test the board and get started.
1 in 10 people understand binary, the other one doesn't !

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Rotary Encoder

Post by Benj »

Hello All,

Here is a better custom component for the Quadrature encoder plus some better example files.
PIC_Custom.c
(5.95 KiB) Downloaded 415 times
QuadEncoder_IOC.fcf
(9 KiB) Downloaded 500 times
QuadEncoder_Timer.fcf
(9 KiB) Downloaded 474 times
The custom component functions are all pretty straightforward apart from the Check_For_Changes function which has return values.
0 = No movement detected
1 = Valid movement detected
255 = Invalid movement detected, count corruption due to not sampling inputs fast enough.

Note for the IOC example to work the custom component properties must specify IOC enabled pins. On a 16F877A these pins are RB4 - RB7. The timer example can use any I/O but the timer must be interrupting fast enough so as to never miss an edge. This is obviously dependent on the maximum speed that can be applied to the encoders.

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: Rotary Encoder

Post by Walbeek »

Hello to all,

Are there any component macro´s available yet for the Rotary encoder board (EB073)?
I´m working with Flowcode V4.5 at the moment.
Please let me know.

Rinie
Greetings, Rinie
Flowcode V7 user

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Rotary Encoder

Post by Benj »

Hello Rinie,

For v4.5 please use the custom component listed in the previous post. Drop the custom component C file into your "Flowcode v4/Components" directory and then when you open the examples they should work correctly. Please note there is no simulation available for this.

For v5 the component is included by default.

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: Rotary Encoder

Post by Walbeek »

Ok, thaks Ben.
I will use this for now, we are planning on updating to V5 soon.

Rinie
Greetings, Rinie
Flowcode V7 user

Post Reply