Hey Guys
I like to know how i could connect a light barrier with Arduino Leonardos Input/Output with a cable or somethink like that . I have absolutly no idea how i works. ![]()
Please answer the question soon
Informatik98
Hey Guys
I like to know how i could connect a light barrier with Arduino Leonardos Input/Output with a cable or somethink like that . I have absolutly no idea how i works. ![]()
Please answer the question soon
Informatik98
fOR YOUR REFERENCE
'http://arduino.cc/en/Guide/ArduinoLeonardoMicro?from=Guide.ArduinoLeonardo
http://arduino.cc/en/Main/arduinoBoardLeonardo
connect a light barrier with Arduino Leonardo`s Input/Output
There are sensors available that would allow you to create the equivalent of a light-barrier so that if the beam is broken, the Arduino would recognize that event in software and could do something: light a LED, close a relay, sound a buzzer. These kinds o things are fairly normal uses of a microcontroller.
The sensor you get will dictate how the software must work, but many companies give examples of using their products which make the integration with Arduino simple.
This sensor will work from 4 inches to 32 inches:
If you need a very wide beam of light, those sensors used for garage doors work great.
The downside is you have to write the code from scratch... with some Googling, you may find a sketch (code) that is already pretty close to what you want.
Ray
This may not be of any help, but...
I have found the best way to work with the Leonardo is the first smack it with a large hammer, throw it in the trash, then buy an UNO and proceed from there.
I have found the best way to work with the Leonardo is the first smack it with a large hammer, throw it in the trash, then buy an UNO and proceed from there.
Please, please, please tell me that you recorded this and put it up on YouTube for us all to watch when we get frustrated. I'd rather see you beating your Leo into submission than to actually perform the same on mine! Like, stress release vicariously through your destructive actions! I love it.
So, the darn things can be temperamental but I love them once you finally get over the connect-disconnect-reconnect Windows driver issues. Essentially they work. LUFA is great if you need USB HID. I just purchased 15 32U4 clones for Spring/Summer projects... NY Platform had them for 5/$20... I could not resist... seems they were dumping some that had been mislabeled from China... their lost, my gain. Having the USB directly on the board is nice for software refresh once the darn little things are crammed into a project... easier than trying to use FTDI and a lots cheaper than using the Nano.
But, they surely can be frustrating with Windows.
Ray
mrburnette:
But, they surely can be frustrating with Windows.
Or it seems, Linux. But I am not beaten yet! ![]()