Hi! You'll need to learn computer logic to do this. Sebastian Lague has a very good series on this. Here is the first episode.