Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The simplest way is to use 2 relays each with 1 NO and 1 NC contacts. The relays are driven by the 8051 using optocouplers follow by a npn transistor(my option). The power schematic is
V+ --- R1NO --- Motor---- R2NC - gnd
gnd -- R1NC--| |---R2NO - V+
If you close relay1, motor will rotate one sense. Closing relay2 will rotate the other sense
Another option is to use instead of relays 4 power transistors (or 2 transistor and 2 diodes) in a H configuration.
Fuses are necessary to be use.