Monday 13 August 2012

WEEK 5 - 4rd Day ( 26 JULY 2012 )

Assalamualaikum and Salam satu Malaysia

Today we  learned about Relays. Relays are used throughout the automobile. Relay which come in assorted sizes, ratings, and applications are used as remote control switches. A typical vehicle can have 20 relay or more.

Relay application:


  • Remote control electric switches that are controlled by another switch, such a horn switch or a computer as in a power train control module.
  • Relays allow a small current flow circuit to control a higher current circuit.
Relay operation :

  • All relay operate using the same basic principle.
  • Relay have two circuit: A control circuit (GREEN) and load circuit (RED). The control circuit has a small control coil while the load circuit has a switch.
Normally closed Relay

  • The operation of a normally closed relay in the same to that of a Normally open relay except backwards.
  • When the relay control coil not energized, the relay switch contacts are closed completing the circuit though pins 2 and 4.
  • When the control coil is energized, the relay switch contact open, switch beaks the circuit open and no continuity exist between pin 2 and pin 4.

Sunday 12 August 2012

WEEK 5 - 3rd Day ( 25 JULY 2012 )

Assalamualaikum and salam satu Malaysia.

Today we learned about transistor BC547.

BC547

  • An NPN bipolar junction transistor.
  • Transistor stands for transfer of resistance is commonly used to amplify current.
  • Large current to collector and emitter.
  • Mainly used for amplification and switching purpose. It has a maximum current gain of 800. It equivalent transistor are BC548 and BC549.
BC547 transistor is an NPN bipolar
  • N and P refer the majority charge carries inside the different regions of the transistor.
  • small transistor
  • Not good for controlling output that require a large amount of current.
  • Tiny three terminal device capable of converting small signal inputs into large amplified outputs.

WEEK 5 - 2nd Day ( 24 JULY 2012 )

Assalamualaikum and Salam satu Malaysia

          Today we learned about PIC 16F88 to study features inside that IC. What had written on that, it has internal crystal oscillator so we no need to buy external crystal oscillator. With this PIC 16F88, we can only use 3 port and generate 8 codes. We can save memory, can produce 8. He gives an explanation how the circuit function. By using 3 ON OFF switch. It can complete the circuit and are using FET transistor since used Vdd as positive supply (voltage) and Vss as negative supply (ground).


WEEK 5 - 1st Day ( 23 JULY 2012 )

Assalamualaikum and salam satu Malaysia.

For today we learning about PIC 16F88.

Memory organization


  • These are the program memory and he data memory
  • Each block has its own bus, so access to each block can occur during the same oscillator cycle.
  • Data memory can be further broken down into the general purpose RAM and the special function Registers (SFRS)
Data Memory
  • The data memory is partitioned into multiple banks that contain the general purpose register and special function register.
  • Special Function register-----> are register used by the CPU and peripheral modules for controlling the desired operation of the device.
Status register
  • can be destination for any instruction as with any other register.

WEEK 4 - 5rd Day ( 20 JULY 2012 )

Assalamualaikum and salam satu Malaysia.

For today we learning about C programming unit using PIC complied, Azlan give one a task to solve it. The task is :

LED----> C4 -----> LED ON

BUZZER ----> C1 ------> BUZZER ON

RELAY ------> C3 ------> RELAY ON

WEEK 4 - 3rd Day ( 19 JULY 2012 )

Assalamualaikum and Salam satu Malaysia.

For today, we trying to lab session for embedded system communication.

Objective:

  1. To write program code to connect the PIC to the PC using RS232 connection.
  2. To receive input command using  RS232  communication and produce output.
For the program code for PIC to communicate with PC via RS232:
  • Type the program 
  • The program is written with 2 kinds of error which are syntax error and logical error. Troubleshoot and solve them.
  • Simulate the program using Proteus.
  • Load the program to PIC using bootleader and connect serial communication to PC using  RS232  protocol.
  • Open Hyper terminal or putty.exe on the PC using 9600 bound, 8  bits data no parity, 1 stop bit and no flow control.



Wednesday 25 July 2012

WEEK 4 - 3rd Day ( 18 JULY 2012 )

Assalamualaikum and Salam Satu Malaysia.

For today, we trying to lab session 6 ( Embedded system ) for interrupt and timer. 

Objective:

  1. To use interrupt to produce clock timing.
  2. To write a  system code in C to display clock on LCD.
  3. To produce a response output on LCD display triggered by the time set by the system clock.
Fort this part is using Interrupt in C programming :

  • Type the program code.
  • The program is written with 2 kinds of error which are syntax error and logical error. Troubleshoot and solve them.
  • Simulate your program using Proteus by drawing circuit in Apendix A and describe the output of the program.
  • Compile the program and load the program into PIC using Win pic 800 software.
  • Using the LCD datasheet, and LCD port number from the flex_lcd.c file connect the jumper setting of the LCD with the PIC port.