Go Down

Topic: Simple IR barrier sensor for arduino (Read 2 times) previous topic - next topic

asuryan

Hi!

I would like to build a simple IR barrier
sensor and wondered how to wire it.

Any simple ciruits out there?

Thanks!

asuryan

#1
Aug 15, 2011, 01:27 am Last Edit: Aug 15, 2011, 01:32 am by asuryan Reason: 1
Thank you for your reply!

I would like to avoid environmental interferences so
how to modulate a IR signal?

What I want to do is:
1. Understand how to build a sensor like this
in general for future projects.

2. Maybe I want to build a machine to sort
coins so I would like to detect the size of
a coin and if a coin has reached a physical
place in the machine.

I have this IR phototransistor (BP 103B-2)
http://www.reichelt.de/index.html?;ACTION=7;LA=3;OPEN=0;INDEX=0;FILENAME=A500%252FBP103B-2%25231-SIA.pdf;SID=10TYSDAn8AAAIAAFkvFsI32c230ac46baf28788bb49e3707c7d18

And this IR LED (LD 274-3):
http://www.reichelt.de/index.html?;ACTION=7;LA=3;OPEN=0;INDEX=0;FILENAME=X100%252Fld_274-3.pdf;SID=10TYSDAn8AAAIAAFkvFsI32c230ac46baf28788bb49e3707c7d18

I also have a BPW 42 phototransistor As well As a SFH 409 IR LED.

Thank you very much!! :)

retrolefty

Links work for me, opens into pdf docs.

Lefty

asuryan

#3
Aug 15, 2011, 09:45 am Last Edit: Aug 15, 2011, 10:14 am by asuryan Reason: 1
Sorry if the links didnt work for you. Here are some better ones of the
components I have here:

My phototransistors:
http://www.datasheetcatalog.org/datasheet/siemens/BP103BF-2.pdf
http://pdf1.alldatasheet.com/datasheet-pdf/view/143177/ETC1/BPW42.html

My IR LED:
http://www.datasheetcatalog.org/datasheet/siemens/LD274.pdf
http://www.datasheetcatalog.org/datasheets/37/486544_DS.pdf


1. Is it possible to build a barrier sensor just with these components without external
ICs etc. (Of course resistors)?

2. Is it possible to modulate a beam just with eg. PWM of the arduino?
Could someone provide a very small code example just as a hint? It would be nice to read
the state of the IR barrier sensor as simple as this little sample:

Code: [Select]
if(digitalRead(IRSensorPin) == LOW){
      Serial.Print("Alarm!!!")
}


3.  The link you provided needed some other components too. Is it because the serial data
transfer (btw thats really cool... ;))? I just want to detect if the beam is disconnected
because of an object so can it be simpler?


Thanks you so much! :)

asuryan

Thanks for your input and help.

I will have closer look on the modules which allready send at
a certain modulation. Thanks for your advice! :)

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview