DECLARE THE INPUTS AND THE OUTPUTS |
MAIN FUNCTIONS (UP, DOWN, LEFT AND RIGHT) |
PIC16f877A, SWITCHES AND LEDS |
FORWARD ( LIGHTING TWO LED'S TO REPRESENT THE RELAYS) |
REVERSE ( LIGHTING THE OTHER TWO LED'S) |
TURN LEFT ( TURN ON THE RIGHT MOTOR BY SUPPLYING CURRENT TO THE FIRST RELAY) |
TURN RIGHT ( TURN ON THE LEFT MOTOR BY SUPPLYING CURRENT TO THE SECOND RELAY) |
No comments:
Post a Comment