Arduino code for pulse sensor input to servo motor

Hello!
I want to build a drawing robot as in this sketch: Imgur: The magic of the Internet
That make drawings that looks something like this: Imgur: The magic of the Internet

We want to get a pulse sensor that you put on your finger, that is connected to a arduino that translates the pulse values into angles that our servo motor should move into.

Problem is that I cant find an arduino code that do this! And I do not really have time to learn and write it myself, my teachers says.
I don't now what the most simple version would be but here are two options I have immagined:
-A code that measures the time between the heartbeats, and is programmed to do different movements depending on the phase of the pulse.
-A code that puts the angles of the servo proportional to the specific values of the heartbeat(so it will be moving as a ECG-scale)

Please let me know if you have any tips on how to work this out!

Try asking in Gigs & Collaborations for a software programmer for hire. Have you looked at the ECG monitor links I posted for you in one of your other threads?