Pages: [1]   Go Down
Author Topic: Light Curtain  (Read 284 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey everybody.
I have an issue with programming an Arduino Mega board.
Here's what I have: a light curtain(made of 2 phototransistors and 2 IR beams) and a 3 Degrees of freedom robot.
I want to condition the movements of the robot to the return of a logic "1" of the light curtain.
My question is...how can I create some sort of a sub-program that will return a 1 or 0 from the light curtain to my main program so that I could use it as a condition further in the program.
I have to mention I am a beginner in programming :|
Thanks smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Might have posted it in the wrong place:|
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16486
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think your going to have to explain your task/problem is a more clear manner. Light curtain means little to me and it goes down hill from there. Why don't you try again. Also it's not clear if you are asking a software question or a hardware question, or maybe both?

Lefty
Logged

Pages: [1]   Go Up
Jump to: