I haven't ordered any components just yet but I wrote a draft program for the Arduino, using an RNG to simulate my heartbeat, and it works pretty well . I've hooked it up so the results get sent to a text file along with a timestamp such that I can easily import it into an excel sheet and make a nice graph out of it. Now I just need to add in the functionality of triggering lucidity through sound or light or vibration and it should work functionally. Down the track I would like to perhaps automate the whole process so I just start and stop the program and don't have to create the excel sheet myself, but I'm not 100% sure how to do that. Perhaps a c++ program could do it, idk. Anyway that's a luxury feature, and I'm happy with it just working basically haha. I might buy the heart rate sensor in the next few weeks, and then I can get truly cracking.