LED control through 7i96S board
- vkhargwanshi
- Offline
- Senior Member
-
Less
More
- Posts: 72
- Thank you received: 5
02 Aug 2022 11:31 #248830
by vkhargwanshi
LED control through 7i96S board was created by vkhargwanshi
I am trying to switch on and off a simple LED to test how IO control works.
To check LED, I connected to 5v, it was working.
I presume that SSR OUTPUT can be used for the same.
I configured through PncConf the SSR output 3 to have as output pin.
I could see the entry in HAL file as
net dout-00 => hm2_7i96s.0.ssr.00.out-03
net dout-00 <= motion.digital-out-00
Now I though I can use M62-64 commands to control this pin with value of P as 03. But it doesn't seems to be working.
Then I checked in HALSHOW, I observed, except this pin, its allowing me to set and clear.
I am now clueless, looks like I am making some basic mistake, but unable to understand. Looking forward for the help.
To check LED, I connected to 5v, it was working.
I presume that SSR OUTPUT can be used for the same.
I configured through PncConf the SSR output 3 to have as output pin.
I could see the entry in HAL file as
net dout-00 => hm2_7i96s.0.ssr.00.out-03
net dout-00 <= motion.digital-out-00
Now I though I can use M62-64 commands to control this pin with value of P as 03. But it doesn't seems to be working.
Then I checked in HALSHOW, I observed, except this pin, its allowing me to set and clear.
I am now clueless, looks like I am making some basic mistake, but unable to understand. Looking forward for the help.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
02 Aug 2022 11:58 #248831
by phillc54
Replied by phillc54 on topic LED control through 7i96S board
motion.digital-out-00 would require P0
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23320
- Thank you received: 4946
02 Aug 2022 22:30 #248874
by andypugh
Replied by andypugh on topic LED control through 7i96S board
The SSR outputs are switches, how do you have it wired?
Please Log in or Create an account to join the conversation.
- vkhargwanshi
- Offline
- Senior Member
-
Less
More
- Posts: 72
- Thank you received: 5
03 Aug 2022 01:52 #248892
by vkhargwanshi
Replied by vkhargwanshi on topic LED control through 7i96S board
I am basically from software background and have little knowledge about electronics. I thought I can use it as simple GPIO out pin as mentioned in manual page.
I thought to use LED of a 5V relay to check if logic is working. Basically I need to connect a 12 V solenoid valve with 5V relay.
I am expecting that IN pin of relay can be controlled using GPIO out pin of 7i96S, which are numbered from 13-20.
So when I have following in HAL file, so I believed I should be able to control Pin 20 using command M64 P00. In HAL show, its showing me correct as per expectation. But the relay is not working.
net dout-00 => hm2_7i96s.0.ssr.00.out-03
net dout-00 <= motion.digital-out-00
I thought to use LED of a 5V relay to check if logic is working. Basically I need to connect a 12 V solenoid valve with 5V relay.
I am expecting that IN pin of relay can be controlled using GPIO out pin of 7i96S, which are numbered from 13-20.
So when I have following in HAL file, so I believed I should be able to control Pin 20 using command M64 P00. In HAL show, its showing me correct as per expectation. But the relay is not working.
net dout-00 => hm2_7i96s.0.ssr.00.out-03
net dout-00 <= motion.digital-out-00
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18553
- Thank you received: 5097
03 Aug 2022 03:51 - 03 Aug 2022 03:52 #248897
by PCW
Replied by PCW on topic LED control through 7i96S board
As andypugh said, the SSR outputs are switches, the do not supply voltage by
themselves.
When hm2_7i96s.0.ssr.00.out-03 is true, 7I96S TB3 pins 19 and 20 are connected, and
when hm2_7i96s.0.ssr.00.out-03 is false, 7I96S TB3 pins 19 and 20 are disconnected.
There is no voltage output from these pins. If you want to drive a 5V load, you would
connect:
+5V ==> TB3 pin 20 (Out3+)
TB3 pin 19 (Out3-) ==> 5V Relay+
5V Relay- ==> GND
themselves.
When hm2_7i96s.0.ssr.00.out-03 is true, 7I96S TB3 pins 19 and 20 are connected, and
when hm2_7i96s.0.ssr.00.out-03 is false, 7I96S TB3 pins 19 and 20 are disconnected.
There is no voltage output from these pins. If you want to drive a 5V load, you would
connect:
+5V ==> TB3 pin 20 (Out3+)
TB3 pin 19 (Out3-) ==> 5V Relay+
5V Relay- ==> GND
Last edit: 03 Aug 2022 03:52 by PCW.
The following user(s) said Thank You: vkhargwanshi
Please Log in or Create an account to join the conversation.
- vkhargwanshi
- Offline
- Senior Member
-
Less
More
- Posts: 72
- Thank you received: 5
03 Aug 2022 04:10 #248898
by vkhargwanshi
Replied by vkhargwanshi on topic LED control through 7i96S board
Thanks a lot PCW, as always your answers are crisp and clear...
I will try this and get back in case I get stuck.
I will try this and get back in case I get stuck.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.073 seconds