7c80 install on rpi 4

More
16 Aug 2021 13:21 #217880 by PCW
Replied by PCW on topic 7c80 install on rpi 4
it looks like the pwmgen (and spindle encoder) are disabled in the hal file:

loadrt hm2_rpspi config=" num_encoders=0 num_pwmgens=0 num_stepgens=6"

Please Log in or Create an account to join the conversation.

More
03 Oct 2021 11:26 #222094 by PHILCOAST
Replied by PHILCOAST on topic 7c80 install on rpi 4
when i use this setup for the spindle,
functions (turn spindle CW & CCW) work well
but the functions (turn spindle slower & faster) are reversed.
When I start the spindle I have a voltage of 10 volts between the pins (spindle output) and (spindle -)
When I press on (turn spindle faster) the tension decreases

Please Log in or Create an account to join the conversation.

More
03 Oct 2021 12:39 - 04 Oct 2021 22:32 #222099 by PCW
Replied by PCW on topic 7c80 install on rpi 4
I think the PWM is active low on the 7C80 so try:

setp hm2_7c80.0.pwmgen.00.out0.invert_output true
Last edit: 04 Oct 2021 22:32 by PCW.
The following user(s) said Thank You: PHILCOAST

Please Log in or Create an account to join the conversation.

More
11 Oct 2021 23:25 #222883 by PHILCOAST
Replied by PHILCOAST on topic 7c80 install on rpi 4
I am trying to connect a differential line encoder (amt332d-v) on my spindle with this configuration.
W1,W2 &W3 are down
pins encoder.00.input-a & encoder.00.input-b are always high
and encoder.00.input-index are always low.

Please Log in or Create an account to join the conversation.

More
12 Oct 2021 00:47 #222890 by PCW
Replied by PCW on topic 7c80 install on rpi 4
I would verify that you have sufficient differential voltage
(preferable >2V) across the A,/A B,/B and Z,/Z pairs
and that the differential voltage changes polarity
when you move the spindle shaft to different positions

Please Log in or Create an account to join the conversation.

More
12 Oct 2021 01:55 #222894 by PHILCOAST
Replied by PHILCOAST on topic 7c80 install on rpi 4
i read -4,2 to + 4,2 volt
I will do tests with the signal of my servo motor amp this week.

Please Log in or Create an account to join the conversation.

More
29 Dec 2021 22:59 #230294 by strahlensauger
Hi everybody,
I got a new 7c80 and to play around with it I installed three Nema 23 Steppers with DM542 amplifiers. I followed this thread and installed linuxcnc 2.9 on a SD 64 bit for the pi and compiled mesaflash.
The 7c80 is powered and supplies the pi with energy over the 40 pin ribbon.
I copied the 7c80 bitfiles in the mesaflash directory and tried to flash the 7c80d.bit on the 7c80 with

mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --write 7c80d.bit

I get:

open: no such file or directory
No 7c80 board found

under /dev there is no spidev0.0 device.
I'm stuck.
Help would be appreciated.

Please Log in or Create an account to join the conversation.

More
29 Dec 2021 23:29 - 29 Dec 2021 23:30 #230299 by PCW
Replied by PCW on topic 7c80 install on rpi 4
The 7C80 already has installed firmware (7c80d.bit) so unless you need to
support a specific daughtercard, I would leave in installed firmware alone,
especially when you are not certain of the interface reliability.

AFAIK you need to specifically enable SPI with raspi-config

A safe mesaflash command to test the interface would be:

mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
Last edit: 29 Dec 2021 23:30 by PCW.
The following user(s) said Thank You: strahlensauger

Please Log in or Create an account to join the conversation.

More
30 Dec 2021 06:29 #230321 by strahlensauger
One step forward, after enabling SPI I do a
mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
and I get
unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
00000000 00000000 00000000
No 7C80 board found

Please Log in or Create an account to join the conversation.

More
30 Dec 2021 15:52 #230345 by PCW
Replied by PCW on topic 7c80 install on rpi 4
1. Did the 7C80 successfully self configure at power up? (no red lights on after power up)
2. Are you using a short 40 pin cable (no longer than ~2 inches,~50 mm) ?

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.104 seconds
Powered by Kunena Forum