In this meeting, we :
1. Obtained the knowledge on how to do the program.
2. Selected which PIC to use.
3. Rearranged the components in the Proteus Software.
4. Corrected the outputs in the Proteus Software.
The program
Sir Zulkhairi thought us how to do the program by referring the circuit diagram in the Proteus Software. It is very simple actually since it only have 4 inputs(push buttons) and 4 outputs(relays). After he showed the program, we have the idea on how to proceed with the rest of the coding that will control the motors.
PIC
Our supervisor has introduced to us which PIC to use, that is, Cytron. These are the synopsis and features that we receive from the website http://www.cytron.com.my/viewProduct.php?pid=DQk7PQoHOA8vPQwYGygKKHJKVRaxDOAcZYdUn631v!!!!!Y= .
Description:
This powerful (200 nanosecond instruction execution) yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchip's powerful PIC® architecture into an 40- or 44-pin package and is upwards compatible with the PIC16C5X, PIC12CXXX and PIC16C7X devices. The PIC16F877A features 256 bytes of EEPROM data memory, self programming, an ICD, 2 Comparators, 8 channels of 10-bit Analog-to-Digital (A/D) converter, 2 capture/compare/PWM functions, the synchronous serial port can be configured as either 3-wire Serial Peripheral Interface (SPI™) or the 2-wire Inter-Integrated Circuit (I²C™) bus and a Universal Asynchronous Receiver Transmitter (USART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances and consumer applications.
Features:
- Pin Count: 40-pin PDIP
- Program Memory: 14KB or 8K 14-bit Flash
- Max Crystal Speed: 20MHz
- RAM Bytes: 368
- EEPROM Bytes: 256
- Timers: 2 x 8 bit, 1 x 16-bit
- Digital Communication: 1xA/E/USART, 1 x MSSP(SPI/I2C)
- Capture/Compare/PWM: 2 x CCP
- ADC: 8ch, 10-bit
- Comparators: 2
Rearranging the components in Proteus Software
The reason of rearranging the components in this software is because of we only use the PIC16F877A, Switch and LEDs. It is much more easier this way due to organized structure of the circuit.
The Outputs
The outputs has been changed from 2 outputs to 4 outputs. This was done because we are using 4 relays in this matter to create the reverse motor function. Without the other 2 relays, there will only be forward motor function.