Raspberry Pi 4 with Mesa 7c81

More
2 years 2 months ago #308620 by _skinner
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],],

 

Attachment not found

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #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
 

Please Log in to join the conversation.

More
2 years 2 months ago #308629 by _skinner
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:
 

Attachment not found

i cant find where is mistake, everything looks ok, maybe You know?
 

Please Log in to join the conversation.

More
2 years 2 months ago #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:

 

Attachment not found


 

Please Log in to join the conversation.

More
2 years 2 months ago #308649 by _skinner
Thank You very much

Please Log in to join the conversation.

More
1 year 10 months ago #317638 by aloOha
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

Please Log in to join the conversation.

More
1 year 10 months ago #317639 by Cant do this anymore bye all
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.

Please Log in to join the conversation.

More
1 year 10 months ago #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)

Please Log in to join the conversation.

More
1 year 9 months ago #317880 by aloOha
Thanks,

Please Log in to join the conversation.

More
1 year 3 months ago #331242 by whyme
Replied by whyme on topic Raspberry Pi 4 with Mesa 7c81
Maybe a stupid question, but how do you use the relay on those cheap MACH3 BOBs with the 7c81?

For the inputs to work I need to enable the pullups on the 7C81.
But enabling the pullups makes the relay close as soon as the BOB is powered.

Ideally I would want the relay to be open until linuxcnc is started and I tell linuxcnc to close the relay.

But the relay closing by default due to the pullups makes it unusable, or did I miss something?

Please Log in to join the conversation.

Time to create page: 1.022 seconds
Powered by Kunena Forum