PIC single chip controlled electric bicycle drive system