Brain for my homebuilt toy robot