Skip to main content
added 956 characters in body
Source Link

I'm using an STM32F103 to measure water flow through a pipe using Hall flow sensorsHall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and I'm counting the number of ticks per second to determine the flow.

What I've noticed is that even when there is no flow, the sensor gives out random values. To the same PS I also have connected an LCD display, 2x Hall flow sensors, a 555 timer, and 2x STM32s. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of these devices have a common ground there is a lot of noise in the system, but maybe the issue is something else?

I'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and I'm counting the number of ticks per second to determine the flow.

What I've noticed is that even when there is no flow, the sensor gives out random values. To the same PS I also have connected an LCD display, 2x Hall flow sensors, a 555 timer, and 2x STM32s. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of these devices have a common ground there is a lot of noise in the system, but maybe the issue is something else?

I'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and I'm counting the number of ticks per second to determine the flow.

What I've noticed is that even when there is no flow, the sensor gives out random values. To the same PS I also have connected an LCD display, 2x Hall flow sensors, a 555 timer, and 2x STM32s. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of these devices have a common ground there is a lot of noise in the system, but maybe the issue is something else?

Capitalization; broke into two paragraphs
Source Link
JYelton
  • 34.9k
  • 34
  • 147
  • 272

Does Hall flow sensor requiresrequire an optocoupler when using STM32 MCU?

i'mI'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and i'mI'm counting the number of ticks per second to determine the flow. 

What i'veI've noticed is that even when there is no flow, the sensor gives out random values. To the same PS iI also have connected anan LCD display, 2x Hall flow sensors, ic555a 555 timer, and 2x stm32'sSTM32s. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of theesethese devices have a common ground there is alota lot of noise in the system, but maybe the issue is something else? Every advice on the subject is much oblidged.

Does Hall flow sensor requires an optocoupler when using STM32 MCU?

i'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and i'm counting the number of ticks per second to determine the flow. What i've noticed is that even when there is no flow the sensor gives out random values. To the same PS i also have connected an LCD display, 2x Hall flow sensors, ic555 timer and 2x stm32's. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of theese devices have a common ground there is alot of noise in the system, but maybe the issue is something else? Every advice on the subject is much oblidged.

Does Hall flow sensor require an optocoupler when using STM32 MCU?

I'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and I'm counting the number of ticks per second to determine the flow. 

What I've noticed is that even when there is no flow, the sensor gives out random values. To the same PS I also have connected an LCD display, 2x Hall flow sensors, a 555 timer, and 2x STM32s. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of these devices have a common ground there is a lot of noise in the system, but maybe the issue is something else?

Source Link

Does Hall flow sensor requires an optocoupler when using STM32 MCU?

i'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the TIM4 as Input Capture and connected it directly to the flow sensor output and i'm counting the number of ticks per second to determine the flow. What i've noticed is that even when there is no flow the sensor gives out random values. To the same PS i also have connected an LCD display, 2x Hall flow sensors, ic555 timer and 2x stm32's. What I want to know is will this issue be solved by just using optocouplers on every input from Hall sensor to the GPIO pin? I'm thinking since all of theese devices have a common ground there is alot of noise in the system, but maybe the issue is something else? Every advice on the subject is much oblidged.