7i73 input 0-7 i cant'use

More
07 Feb 2025 17:26 #320928 by andreabonuc
7i73 input 0-7 i cant'use was created by andreabonuc
Hi everyone, I have a 7i96s and a 7i73, until now I have used the 3 analog inputs of the 7i73 (in 0,1,2,3- pin 3,4,5,6) to use them with 3 potentiometers but they are not stable and I have not continued to use them. I would like to understand if they can be used as standard inputs because I have to move 4 external buttons to recover the 6 encoder inputs for the potentiometers. My problem is that I see them as inputs in halshow but I can't use them, I can use from in8 up. I certainly wrote something in the HAL to enable the analog inputs but I haven't solved anything for 2 days to get them working as standard inputs again. It's been more than 1 year since I changed the hal file and being a beginner I don't remember... Can anyone help me? Thanks.

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

More
07 Feb 2025 18:23 - 07 Feb 2025 18:24 #320931 by PCW
Replied by PCW on topic 7i73 input 0-7 i cant'use
Inputs 0..7 on the 7I73 have no pullups/pulldowns
so these must be added externally if used with
single throw switches.
Last edit: 07 Feb 2025 18:24 by PCW.

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

More
07 Feb 2025 18:56 #320934 by andreabonuc
Replied by andreabonuc on topic 7i73 input 0-7 i cant'use
sorry but I'm not very expert, what do you mean by added externally? Can you explain it to me practically? Thank you

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

More
07 Feb 2025 21:25 - 07 Feb 2025 21:25 #320941 by PCW
Replied by PCW on topic 7i73 input 0-7 i cant'use
You would need to add an external resistor from 3.3V to each input (0 through 7)
connected to a switch, assuming the switch switches to ground (a 4.7K resistor is a reasonable value)

If the switch/button has NO and NC contacts you can do without the resistor, but a normal
SPST switch needs the resistors.
Last edit: 07 Feb 2025 21:25 by PCW.
The following user(s) said Thank You: andreabonuc

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

More
07 Feb 2025 22:04 #320942 by andreabonuc
Replied by andreabonuc on topic 7i73 input 0-7 i cant'use
I use a momentary switch and will insert a 4.7 k ohm resistor. Thanks for your help!

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

Time to create page: 0.054 seconds
Powered by Kunena Forum