7i43-4 firmware

More
18 Jan 2024 13:51 #291024 by PCW
Replied by PCW on topic 7i43-4 firmware
I did mention it's a bit tricky....

This should get further:

 

File Attachment:

File Name: 7i43-4-svs...1-18.zip
File Size:67 KB
Attachments:

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

More
18 Jan 2024 17:31 #291044 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
thanks so much for the file...it works now
I tried to connect to some pyvcp slides to do some tests and following what is written on the hostmot2 page I get some strange results. if I put:
offset= 1.5
scale= 90
I have to put width = 1530 to have a pulse of 1.5ms
with width=1570 the pulse is 1ms and with width=1480 the pulse is 2ms
so it is certainly inversely proportional but it is also a little off scale and not very linear
to have a 1:1 ratio (always inversely proportional) I have to put:
scale=1
offset=17
at that point with:
width=0.25 => 2.75ms
width=1 => 2ms
width=1.5 => 1.5ms
width=2 => 1ms
width=2.75 => 0.25ms

2.75 and 0.25 are the limits foreseen by the RC servo and are used only for a few special actuators

Could you confirm that I saw correctly? or did I make a mess as usual?

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

More
18 Jan 2024 17:47 - 18 Jan 2024 17:48 #291045 by PCW
Replied by PCW on topic 7i43-4 firmware
Not right at all...

What width  do you get with scale = 1, offset=0 and width=1?

Also does the rate = the specified rate?
Last edit: 18 Jan 2024 17:48 by PCW.

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

More
18 Jan 2024 18:16 #291048 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
the pin rate I looked at the rcpwmgen file and it gave me an error because it must be written without the instance this is the line:
rtapi_snprintf(name, sizeof(name), "%s.rcpwmgen.rate", hm2->llio->name);

if as you ask I put:
scales=1
offset=0
width=1
I get a period that oscillates between 19ms and 19.4ms (0.6-1ms low period)
keep in mind that I have an old analog oscilloscope... but in any case the order of magnitude is the same

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

More
18 Jan 2024 18:43 #291050 by PCW
Replied by PCW on topic 7i43-4 firmware
Well I cannot duplicate that here, but I do not have a 7I43 to test with

This is what I get with a  RCPMMGen 5 ms pulse width set at 50 Hz:

 

 
Attachments:

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

More
18 Jan 2024 19:07 #291051 by PCW
Replied by PCW on topic 7i43-4 firmware
~ 19ms sound like you have the output inverted.

Notice the expected active high 5 ms pulse on halscope

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

More
18 Jan 2024 19:16 #291052 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
me too, halscope, gives the same result... it's easy that I'm a donkey and I made a big mistake... here where I come from it's dinner time... tomorrow morning I'll let you know what I did

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

More
19 Jan 2024 08:18 #291102 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
as I imagined, and as you said in the last post, the physical output of the pin is inverted... I didn't realize that the previous user of that pin had inverted logic and I went ahead without thinking...
I feel really stupid... I just wasted your time... sorry
The following user(s) said Thank You: tommylight

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

More
19 Jan 2024 12:10 #291109 by PCW
Replied by PCW on topic 7i43-4 firmware
Easy to forget some obscure setting  in the hal file...
 
The following user(s) said Thank You: bobwolf

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

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