This tutorial is interned for Unix users. If I am correct, small tweaking should allow it to work on Windows. Maybe some day I'll re-write it for Windows users.
Remove these ads by
Signing UpStep 1: How it works
1. A perl script clocks the processor.
2. The script uses that number to come up with a number from 1-9.
3. The script throws that number to the Arduino, using Serial connection.
4. The script get repeated over and over, for an infinite amount of time.
5. Each time the Arduino receives ten numbers, it averages them, and shows the average on the bar graph.
It's as easy as that!


































![How to Send Data by Light: Fiber Optics [Updated]](http://www.instructables.com/files/deriv/FRI/42MI/GU7FXUSW/FRI42MIGU7FXUSW.SQUARE.jpg)






Visit Our Store »
Go Pro Today »




C:\Users\Logan>C:\Users\Logan\Desktop\clock\loop.pl
Can't locate Unix/Processors.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Pe
rl64/lib .) at C:\Users\Logan\Desktop\clock\loop.pl line 4.
BEGIN failed--compilation aborted at C:\Users\Logan\Desktop\clock\loop.pl line 4
.
while trying to run clockandsend.pl, i get this "Expected end of line, etc. but found identifier."
any help?
What version of perl are you using?
If I have some free time I'll probably update it for ten LEDs, but as for now, I have other projects that I'm working on.