Embeded software for an arduino timelapse rail controller