Sunday, February 20, 2011

Completion of micro-controller program for the PIC16f877A (21.02.2011)

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)

Saturday, February 19, 2011

Fixing of components (19.02.2011)

The steels

The chair

The chains

The back tires

Front tires

Welding of components
After welding

example how the chair is going to be

Thursday, 17.02.2011 (Forth meeting)

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.

Sunday, February 6, 2011

Friday, 21.01.2011 (Third meeting)

On the third meeting during the third week, Sir Zulkhairi showed again the remote control car. The program is actually the same if we were about to use PIC with the four functions. But to make the prototype simpler, we just need to on and off the output so that the wheelchair can turn right and left by using several relays. Before we use the relays, an assignment has been given to us. That is, make a program to on and off the LED in the  proteus software. A sample of proposal has been given so that we can refer for our proposal report this semester.