Raspberry Pi 4 with Mesa 7c81
- _skinner
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 1
25 Aug 2024 18:18 - 25 Aug 2024 18:26 #308620
by _skinner
Replied by _skinner on topic Raspberry Pi 4 with Mesa 7c81
I'll appreciate it. I'd like to connect via P1 because i leave it for encoders in future and time has come (based on other users experience). I already use P2 and P7 for communication with mx4660.I've tried to add configuration to pncconf but TXEN2 TXDATA2 and RXDATA2 don't want appear, do someone know what I'm doing wrong?
Thats what inside file:
['7c81-Internal Data', '7c81', '7i77 + MX4660X2', '7c81', 'hm2_rpspi',
7,3, 0,0, 1,1, 0,0, 4,2, 1,2,[],0,0,0,0,0,0,0, 1, 57, 100, 200,[1,2,7],
# TAB 1
[S.TXEN2,0],[S.TXDATA2,0],[S.RXDATA2,0],[S.SS7I77M1,0],[S.RXDATA1,0],[S.SS7I77M0,0],[S.RXDATA0,0],[S.MXES,0],[S.MXE0,0],[S.MXE1,0],
[S.MXEI,0],[S.MXE0,1],[S.MXE1,1],[S.MXEI,1],[S.MXE0,2],[S.MXE1,2],[S.MXEI,2],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 2
[S.GPIOI,0],[S.PWMP,0],[S.STEPA,0],[S.GPIOI,0],[S.STEPB,0],[S.STEPA,4],[S.STEPA,1],[S.GPIOI,0],[S.STEPB,1],[S.STEPA,2],
[S.STEPB,2],[S.STEPA,3],[S.STEPB,3],[S.ENCA,7],[S.ENCB,7],[S.ENCI,7],[S.GPIOI,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 7
[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],
[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 5
[S.TXDATA0,0],[S.TXEN0,0],[S.RXDATA0,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 6
[S.TXDATA1,0],[S.TXEN1,0],[S.RXDATA1,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],],
Thats what inside file:
['7c81-Internal Data', '7c81', '7i77 + MX4660X2', '7c81', 'hm2_rpspi',
7,3, 0,0, 1,1, 0,0, 4,2, 1,2,[],0,0,0,0,0,0,0, 1, 57, 100, 200,[1,2,7],
# TAB 1
[S.TXEN2,0],[S.TXDATA2,0],[S.RXDATA2,0],[S.SS7I77M1,0],[S.RXDATA1,0],[S.SS7I77M0,0],[S.RXDATA0,0],[S.MXES,0],[S.MXE0,0],[S.MXE1,0],
[S.MXEI,0],[S.MXE0,1],[S.MXE1,1],[S.MXEI,1],[S.MXE0,2],[S.MXE1,2],[S.MXEI,2],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 2
[S.GPIOI,0],[S.PWMP,0],[S.STEPA,0],[S.GPIOI,0],[S.STEPB,0],[S.STEPA,4],[S.STEPA,1],[S.GPIOI,0],[S.STEPB,1],[S.STEPA,2],
[S.STEPB,2],[S.STEPA,3],[S.STEPB,3],[S.ENCA,7],[S.ENCB,7],[S.ENCI,7],[S.GPIOI,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 7
[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],
[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],[S.GPIOI,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 5
[S.TXDATA0,0],[S.TXEN0,0],[S.RXDATA0,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
# TAB 6
[S.TXDATA1,0],[S.TXEN1,0],[S.RXDATA1,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],
[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0],[S.NUSED,0], [S.NUSED,0],[S.NUSED,0],[S.NUSED,0],],
Attachments:
Last edit: 25 Aug 2024 18:26 by _skinner.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18358
- Thank you received: 5006
25 Aug 2024 19:09 #308628
by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
I'm not sure what you are suggesting
What firmware are you using currently?
I would probably make firmware something like
P1 = MX4660
P2 = 7I77
P7 = GPIO
What firmware are you using currently?
I would probably make firmware something like
P1 = MX4660
P2 = 7I77
P7 = GPIO
Please Log in or Create an account to join the conversation.
- _skinner
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 1
25 Aug 2024 19:29 - 25 Aug 2024 19:38 #308629
by _skinner
Replied by _skinner on topic Raspberry Pi 4 with Mesa 7c81
Currently I'm using that:
freeby.mesanet.com/7c81_mx4660x2d.zip
Can I ask You to make it in way:
P1 = 7i77
P2 = MX4660
P7 = GPIO
if it's not plenty of work?
I'm asking because that will help me with arrange space in cabinet.
Thank You in advance
and in connection with photos above
I manually added config for pncconf for 7c81 and 7i77 and mx4660 but something is wrong in comparision to 5i25 + 7i77:
i cant find where is mistake, everything looks ok, maybe You know?
freeby.mesanet.com/7c81_mx4660x2d.zip
Can I ask You to make it in way:
P1 = 7i77
P2 = MX4660
P7 = GPIO
if it's not plenty of work?
I'm asking because that will help me with arrange space in cabinet.
Thank You in advance
and in connection with photos above
I manually added config for pncconf for 7c81 and 7i77 and mx4660 but something is wrong in comparision to 5i25 + 7i77:
i cant find where is mistake, everything looks ok, maybe You know?
Attachments:
Last edit: 25 Aug 2024 19:38 by _skinner.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18358
- Thank you received: 5006
25 Aug 2024 20:26 #308630
by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
7c81 configuration with 7I77 on P1, MX4660 on P2 and just GPIO on P7:
Attachments:
Please Log in or Create an account to join the conversation.
- _skinner
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 1
26 Aug 2024 03:58 #308649
by _skinner
Replied by _skinner on topic Raspberry Pi 4 with Mesa 7c81
Thank You very much
Please Log in or Create an account to join the conversation.
- aloOha
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
29 Dec 2024 20:18 #317638
by aloOha
Replied by aloOha on topic Raspberry Pi 4 with Mesa 7c81
Hello
I have a question about connecting the encoders in the set:
RPI4 + 7C81 + Mach5 3-axis board.
Since the 7c81 documentation says about a 5V tolerance (inputs), can I connect the encoders directly to the 7c81, or is it better to protect them with an optocoupler?
Will the encoders:
ROD426
ROD420
be suitable?
Thanks in regards,
Michal
I have a question about connecting the encoders in the set:
RPI4 + 7C81 + Mach5 3-axis board.
Since the 7c81 documentation says about a 5V tolerance (inputs), can I connect the encoders directly to the 7c81, or is it better to protect them with an optocoupler?
Will the encoders:
ROD426
ROD420
be suitable?
Thanks in regards,
Michal
Please Log in or Create an account to join the conversation.
- Cant do this anymore bye all
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 420
29 Dec 2024 20:38 #317639
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Raspberry Pi 4 with Mesa 7c81
I'll answer with experience of using Aliexpress Omron type encoders www.aliexpress.com/w/wholesale-omron-rotary-encoder.html , which are about less than a tenth of the price of the ones you mentioned, it's nice if you mention parts you can provide a link, saves time trying to search and ensures the correct component is being discussed.
With an optocoupler you will need to ensure the optocoupler is fast enough and the encoder can drive the optocoupler's led hard enough.
If the encoder is true TTL output or open collector output it should be fine.
Personally I've just used simple buffers, 74hc540/541, as I have a couple of tubes of them.
Another option would be to use the differential output of the encoder and connect that to a differential line receiver, such as www.futurlec.com/Linear/26LS32pr.shtml.
The schematics for the 7c81 are available, forum.linuxcnc.org/media/kunena/attachments/481/7c81sch.zip , one of the sheets shows the input circuitry.
No doubt Pete from Mesa will chime in.
With an optocoupler you will need to ensure the optocoupler is fast enough and the encoder can drive the optocoupler's led hard enough.
If the encoder is true TTL output or open collector output it should be fine.
Personally I've just used simple buffers, 74hc540/541, as I have a couple of tubes of them.
Another option would be to use the differential output of the encoder and connect that to a differential line receiver, such as www.futurlec.com/Linear/26LS32pr.shtml.
The schematics for the 7c81 are available, forum.linuxcnc.org/media/kunena/attachments/481/7c81sch.zip , one of the sheets shows the input circuitry.
No doubt Pete from Mesa will chime in.
The following user(s) said Thank You: aloOha
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18358
- Thank you received: 5006
29 Dec 2024 20:43 #317641
by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
You can connect TTL level encoders directly to 7C81 I/O pins
_but_ I would at the minimum add say 220 Ohm resistors in series
with each signal to protect the inputs from negative input spikes.
(encoder signals tend to pick up motor drive noise so are fairly hard
on unprotected inputs)
_but_ I would at the minimum add say 220 Ohm resistors in series
with each signal to protect the inputs from negative input spikes.
(encoder signals tend to pick up motor drive noise so are fairly hard
on unprotected inputs)
The following user(s) said Thank You: Cant do this anymore bye all, aloOha
Please Log in or Create an account to join the conversation.
- aloOha
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
02 Jan 2025 19:51 #317880
by aloOha
Replied by aloOha on topic Raspberry Pi 4 with Mesa 7c81
Thanks,
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.144 seconds