Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
Read the datasheet of the sensor, and the datasheet of the microcontroller.I am going to assume that because it has 4 pin connectors that is needs either regulated 3.3v or regulated 5v on one pin. GND to MCU on another pin, and two pins are for TX and RX for UART.
FeaturesModulated 38KHz receiver555 timer for generating output frequencyRange setting potentiometerUp to 20cm range for white objectCan differentiate between dark and light coloursIR led can be controlled externally though jumper setting (Through microcontroller, PC or any other circuit)3 wire interface for simple obstacle and line sensor4 wire interface for IR Transreceiver
• Pin 1: GND• Pin 2: VCC (Provide +5V)• Pin 3: Output terminal (TTL compatible output, Logic 0: when sensor receives IR modulated light, Logic 1: Normally or reflected light intensity is very less)• Pin 4: Input pin for transmitter Applicable whenever the ext/int selection jumper is put between 2-3 pins. Just provide any digital signal to this pin the sensor will automatically modulate the same in 38KHz IR light signal and transmit. If your signal logic at this pin is logic 1 then the transmitter will transmit nothing. So it is a inverted logic protocol but works fine with UART signals since the level +10V is logic 0 and 10V is logic 1. You can send any digital signals like UART and RC5 etc. You can also create and decode your own protocol of wireless transmission.
Hi,The #1 skill you need to make anything robotics (and almost anything else in this world) is, without doubt, the skill of reading!From the web page you linked to:QuoteFeaturesModulated 38KHz receiver555 timer for generating output frequencyRange setting potentiometerUp to 20cm range for white objectCan differentiate between dark and light coloursIR led can be controlled externally though jumper setting (Through microcontroller, PC or any other circuit)3 wire interface for simple obstacle and line sensor4 wire interface for IR Transreceiver From the manual that can be downloaded from that page:Quote• Pin 1: GND• Pin 2: VCC (Provide +5V)• Pin 3: Output terminal (TTL compatible output, Logic 0: when sensor receives IR modulated light, Logic 1: Normally or reflected light intensity is very less)• Pin 4: Input pin for transmitter Applicable whenever the ext/int selection jumper is put between 2-3 pins. Just provide any digital signal to this pin the sensor will automatically modulate the same in 38KHz IR light signal and transmit. If your signal logic at this pin is logic 1 then the transmitter will transmit nothing. So it is a inverted logic protocol but works fine with UART signals since the level +10V is logic 0 and 10V is logic 1. You can send any digital signals like UART and RC5 etc. You can also create and decode your own protocol of wireless transmission.Under "Pin 4" it should have read "So it is a inverted logic protocol but works fine with UART signals since the level +10V is logic 0 and -10V is logic 1."
[...] and the pin 4 of the sensor to any one the ports like PB 1 on the MC. is this correct??