Friday 1 February 2013

Design Simulation Circuit in Proteus


Stage 1: 

In the first step, I need to design the schematic of the circuit like in the figure. I’m using the Proteus software to design this schematic. Before start my project, I need to define what is type of pic? How many button that needed in my project? And what is an output that I want to show? So, an all of this thing is show like in combination of this schematic.

The simulation circuit consists a PIC16F877A microcontroller's chip, four push button, four resistor, 3 motor and two motor driver. The circuit supplied with 5V and grounded. The PIC16F877A is setting up the clock frequency of 20MHz.

The prototype board has two momentary push-button that may be used as the input of the program. The input pin is connected to 1.5K ohm pull-up resistor to +5V and the button, when pressed, will connected to the ground.The switches are connected as Active Low.

 I've selected the Motor Driver pinouts as following:

#define LEFT_CONTROL_1A        RC1//1A
#define LEFT_CONTROL_2A        RC2//2A
#define LEFT_CONTROL2_1A      RC3//1A
#define LEFT_CONTROL2_2A      RC4//2A
#define LEFT_MOTOR                   RD1//1,2EN
#define RIGHT_MOTOR                RD2//3,4EN
#define LEFT_MOTOR2                 RD3//1,2EN
#define RIGHT_CONTROL_3A    RD4//3A
#define RIGHT_CONTROL_4A    RD5//4A


Schematic 1
Schematic 2



No comments:

Post a Comment