Arduino pulse generator