Using rasberry pi for fast edge detection and automate a bot's movement