2644 views|11 replies

6

Posts

0

Resources
The OP
 

I want to use an I/O port of the STM32F1 chip to connect an infrared sensor at a distance of 3 meters. I am worried that the transmission distance is too long. How can I achieve this? [Copy link]

 

I want to use an I/O port of the STM32F1 chip to connect an infrared sensor with a distance of 3 meters. I am worried that the transmission distance is too long. How can I achieve this function? Thank you!

This post is from stm32/stm8

Latest reply

3 meters away, as long as the transmission frequency is not too high, there should be no problem. If you are worried about the I/O port driving ability is not enough, you can add a gate circuit chip as a buffer. Isn't this the case with common 232 or 485 communication?   Details Published on 2021-11-22 12:27
 

6

Posts

0

Resources
2
 
The distance is 3 meters, but I am worried that the I/O drive capability is not enough. How can I achieve this? Thank you
This post is from stm32/stm8
 
 

122

Posts

2

Resources
3
 

For long distances, the main consideration is the impact of interference and surge on the microcontroller, so optical coupling can be used.

This post is from stm32/stm8

Comments

Is this how I answer it?  Details Published on 2021-11-17 13:18
 
 

6

Posts

0

Resources
4
 

Hello! How to use optocoupler? How to connect the line?

This post is from stm32/stm8
 
 
 

6818

Posts

11

Resources
5
 

It can be achieved using Bluetooth, WIFI, etc.!

This post is from stm32/stm8

Comments

That would be a bit complicated and the cost would go up.  Details Published on 2021-11-17 13:21
 
 
 

6

Posts

0

Resources
6
 
baopodao published on 2021-11-17 11:27 For long distances, the main consideration is the impact of interference and surges on the microcontroller, and optical couplers can be used.

Is this the way to connect?

This post is from stm32/stm8
 
 
 

6

Posts

0

Resources
7
 
lugl4313820 posted on 2021-11-17 12:58 It can be achieved with Bluetooth, WIFI, etc.

That would be a bit complicated and the cost would go up.

This post is from stm32/stm8
 
 
 

1181

Posts

0

Resources
8
 

I have never encountered such a demand

This post is from stm32/stm8

Comments

oh  Details Published on 2021-11-17 15:17
 
 
 

6

Posts

0

Resources
9
 
zhangdaoyu posted on 2021-11-17 13:35 I have never encountered such a demand

oh

This post is from stm32/stm8
 
 
 

3

Posts

0

Resources
10
 

For long distances, the main consideration is the impact of interference and surge on the microcontroller, so optical coupling can be used.

This post is from stm32/stm8
 
 
 

4005

Posts

0

Resources
11
 

You need to be more specific, why do you need a 3-meter cable, what kind of sensor, and what kind of signal does it transmit?

This post is from stm32/stm8
 
 
 

2w

Posts

0

Resources
12
 

3 meters away, as long as the transmission frequency is not too high, there should be no problem. If you are worried about the I/O port driving ability is not enough, you can add a gate circuit chip as a buffer. Isn't this the case with common 232 or 485 communication?

This post is from stm32/stm8
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list