MESA 7i76e PWM Pin needed on Expansion Connector

More
01 Sep 2020 08:12 #180272 by Xpertmill
Dear all,

For a scientific project on our university we are using Linuxcnc for controlling a 3D-printer. However, to complete our work we would need a single PWM Pin on the 7i76e to control UV-LEDs. At the moment we are already using 5 stepgens and several I/O pins on the board.

I ve found out, that its possilbe to get a PWM Pin by using a custom bitfile. Are there already custom bitfiles out there which we could use - or do we need to write our own?

Greetings,
Michael

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

More
01 Sep 2020 09:56 #180286 by tommylight
Moved to "driver boards".

Not sure about a ready made firmware, but 7i76 can do fast PWM of the 2 expansion headers, and it should be possible to use the normal 8-28V outputs for low speed PWM.
What frequency does the PWM have to be ?

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

More
01 Sep 2020 11:51 #180317 by Xpertmill
Hi tommylight,

thank you for the fast response. According the datasheet of my led driver there is a PWM frequency range from 100 Hz to 1 Khz.

I think i still would prefer the pins on the expansion header since they re 5V which already suits to the driver.

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

More
01 Sep 2020 11:54 #180318 by tommylight

Hi tommylight,

thank you for the fast response. According the datasheet of my led driver there is a PWM frequency range from 100 Hz to 1 Khz.

I think i still would prefer the pins on the expansion header since they re 5V which already suits to the driver.

That should be doable from the normal outputs and making a voltage divider is easy by using 2 resistors.
Using expansion pins requires a firmware change, again easily done using the mesa flash utility, but i am not sure if such firmware exists, i think i saw something similar here , but not sure where.

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

More
01 Sep 2020 12:10 #180323 by Xpertmill
Ah okay sure. Can you tell me how I can use PWM on the normal outputs? in the PNPconf I can not choose a PWMgen.

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

More
01 Sep 2020 12:14 #180324 by PCW
The 7i76e_7i76x1_5abobD.bit config has a PWMGen on pin 1 of expansion connector P1 and
7i76e_7i76x1_5abobpD.bit has 3 PWMGens on P1 pins 1,3,5 (DB25 pins 1,2,3)

Note that if you use the expansion pins directly, its best to use a series resistor of
say 220 Ohms to prevent negative inputs from damaging the input clamp diodes.

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

More
01 Sep 2020 19:43 #180348 by Xpertmill
It works! I flashed the new firmware with the PWM Pin 1 on P1 and I could add an PWMgen in hal.

Thank you for your help!

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

More
19 Oct 2022 12:10 #254514 by Bidul
Hi Xpertmill
I am very interested b
y PWM on expansion ports of 7i76e, do you have any description of what you did?
Which firmware did you load? where did you get it?
Regards

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

More
19 Oct 2022 14:30 #254527 by PCW
Firmware for the 7I76E is available from Mesa in the 7i76e.zip file:

www.mesanet.com/software/parallel/7i76e.zip

If you don't need all 5 stepgens, its probably more convenient to use
7i76e_7i76x1pD.bit which replaces the fifth stepgen with a PWMgen.
so you have a buffered 5V signal.

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

More
19 Oct 2022 14:43 #254530 by Bidul
Hi PCW! Thank you so much for this quick answer.
Yes I need 5 stepgens.
Sorry I am rather new in linuxcnc world, I still have a lot to learn.
I thought that there are many different firmware for 7i76e depending on which resource we want to use on this board. Am I right? If yes, can you please tell me where can I read about different versions?

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

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