I am very new to Arduino but am trying to build a simple LED based fluorometer. As far as hardware goes, i have a simple photodiode (to be replaced with a more sophisticated one once i figure out what i am doing) and a high powered Cree LED controlled through a BuckPuck driver. I am collecting data and writing it to the serial port just about as fast as it can be done. What i would like to do is make an if/else statement that would initiate when i press the (S) key on my key board. This if statement would turn the LED on for a set amount of time and then promptly turn it back off. Does this seem possible? What kind of code structure or syntax do i need? I attempted to use the 'keyboard.begin' and 'keyboard.press' functions but i got an error message saying they were only available on a different Arduino board (mine is the standard Arduino UNO). I would very much appreciate any and all help i can get. Thanks in advance for your time.
Kenneth D. Hoadley Student at the University of Delaware