a new version of arduino code intending to controll head and dcs of ruby