Sunday 30 September 2012

MMBS COURSE PROJECT LOG (14287 14297) Fall 12

 MMBS PROJECT LOG




1) Ambient Temperature Measurement & Display 
Shoaib Aman     5518
Ehsan Rafique   5505
Mossadique Iqbal  5580

2)Seven Segment LED Dice              
 Usman Shahid   1849
Muzamil            5205
Saad Bin Ammar   5396

3) AC & DC Voltmeter(0V-30V)        
Ahsun Khan        4861
M. Owais Turk   4638
Shah Muhammad    3768

4) Temperature Controller               
Talha Farrukh     5199
Waseem Abbas   5210
Mustafa Mujaab 5184
Note: In addition to displaying the ambient temperature, u have to control it too.
Nothing difficult. Add two buttons to set (increase/decrease) desired temperature. If the ambient temperature is above the desired value turn on a fan if its below turn on a heater/ incandescent bulb. Well u dont need to interface an actual heater/bulb just light an led when temperature is high.
U will be displaying three things on the LCD. Ambient Temperature, Desired Temperature and Status of led(heater) and fan.

5) Kelvin, Celsius and Fahrenheit Display     
Muhammad Kaab            5597
Amir Jamal Siddiqui         5440
Note: Display the temperature in all three units. Higher the degree of precision, more the marks u get.

6) Bell Control System          
Zainab Qureshi  5441
Wajeeha Noor  5421
Note: In your project u should interface an RTCC(Real Time Clock Calender ) IC with the microcontroller. Save the bell ringing timings in memory. In main loop of your program u just need to check the current time and match it with your bell ringing times. If its a hit turn on the bell otherwise turn it off. U may use a buzzer in place of bell as it requires less interfacing circuitry or u may use a dc motor to ring an actual bell.


7) Tachometer        
Abid Ali Awan    5313
Sajid Akbar         5425
Hamid Iqbal        5622
Note: plus points for using Quadrature encoder. You can make one yourself on a transparency using this software 
http://code.google.com/p/wheel-encoder-generator/

8) Advance Line Follower with PID Control                 
M. Areeb     5511
Hafiz Fahmeed Zaheer  5623
S.Kumail Abbas Naqvi    5461
Note: PID ki theory achhi tarah parh k aana...

9) Line Follower Robot         
Mehwish Arif     5567
Saba Samreen Khan  5574

10) Line Follower Robot     Marium Ashraf  5579
M.Zuhaib Akbar  5545
M. Shahzeb Khan 5443

11) RGB Light Color Mixer     
Amir Raza    5419
Abdul Qadir Vadharia     5529
Ahmad Abdullah              5451
Note: Since u will be using RGB LEDs in your project there are three options u might consider.
1) No grayscaling. In this case u will be able to display 7 colors and wont require any driver IC (not recommended)

2) Combined Grayscaling using MAX7219. In this case u will be using grayscaling on red, green and blue colors individually and by that i mean that u will set the value of all channels of one color at the same time but u wont be able to set different intensity values of different channels of the same color. MAX7219 gives 16 levels of grayscale for each color so you will get 16*16*16 = 4096 colors.
MAX7219 is a constant current source switching ic so you will need common cathode rgb leds.(acceptable)

3) Individual grayscaling of all channels of red, green and blue individually using TLC5940. This particular ic provides 16 grayscaling(pwm) channels with 12 bit duty cycle (4096 steps) control. So by using this IC the maximum no. of colors that u can displays is 2^12 * 2^12 * 2^12 = 68719476736 colors. I suggest that initially u guys down scale (map) the 12 bit values to 8 bit values for ease of manipulation on an 8 bit microcontroller. This will give u 2^24 = 16 million colors.
Later on, if u have time, u may use the whole 12 bit duty cycle range... and if u are able to do so u will get full marks in the project!!!
TLC5940 is a constant current sink switching IC so u will need common anode leds to do the job.
(Strongly recommended)

P.S : I suggest u use Arduino as a microcontroller. U dont need to buy the Arduino. Just use Arduino's IDE for coding and when the hex file is generated burn it in an AVR (ATMEGA328, ATMEGA168 or ATMEGA8). Using the Arduino IDE for your project will make things simpler because it has a library for the TLC5940 and u will be working on a higher level of abstraction, rather than using the SPI protocol or bit banging to do the job.

12) Overheat Alarm                
 Muhammad Shoaib  5359
Yousuf Kamran 5402
Ammar Farooq  5477
Note: Stop screaming... sirf naam change kia he. Temperature Alarm sounds n00bish.

13) Goal Keeper Gun              
Shoaib Shaheen  5566
Hassan Aleem   5521
Ubaid-Ullah-Farooqi  5563

14) Traffic Light Signal             
Hamza Jadoon   5290
Samreen Batool   5306
Umm-e-Rida      5406
Note: Cross roads k liay banao with down counter. actually tmhe 2 hi signal banane hain or baqi 2 on ki copies hongi. down counter k liay MAX7219 use kar lena.



15) Combinational Lock           
S. Jawwad ul Hasan    5524
M. Kashir Ali       5681
S. M. Hassan Abbas    5535
 Note: must interface LCD and keypad


16) Prayer Time Reminder    
Rabia Kulsoom  5470
Waqas Nazar      5489
Rana Arqam       5667
 Note: U need to interface two things with the mcu; an RTCC (Real Time Clock Calender) IC and an LCD. The LCD will display current time and the Prayer Timings for that day. u will need the prayer timing database inside the rom of mcu. u may use a software 'Salaat Time' to get the prayer timing database of a particular city. The simplest format database that u can get from this software is CSV(comma separated values) format. U will need to write a little program in any language that would take the database file as input and process it to a format acceptable by the microcontroller. 

Integrating the prayer timing database of a whole year into the microcontroller will not be possible as we dont have enough memory in the pic16f877a to hold such a huge amount of data and in this case u will need interface an EEPROM (maximum available in cooperative is 512Kbit eeprom, which will give u an extra space of 64Kbytes).

I suggest that u initially integrate the database of one month in the microcontroller. Later on if u have time u may interface the EEPROM filled with the complete database. and if u are able to do so u will get full marks in the project!!! (but again, ofcourse u will have to do some intense coding on the pc side to get the database of whole year... in a form acceptable by the microcontroller)


17) Robotic Arm        
Abdul Rahman Meer      5493


18) Monochrome Bitmap Display     
Usamah Riaz      5525
Salman Jafri        5620
Abdul Wahab     5614
Note: Since u did not tell me the application of your led matrix display your self, i've modified ur project slightly... What u need to do is
i) Take any monochrome bitmap picture from your pc
ii) Convert it into hex array (bitmap to hex conversion)
iii) Put that hex array inside your code
iv) Burn the code in mcu and display that bitmap on the dotmatrix display.
U may use the johnson counter or MAX7219 to interface the matrix with your microcontroller.
Full marks chahiay to bitmap to hex converter khud banao...


19) Servo Motor Controller
Sarmad Jamal    5335
Shahzad Ahmed   5383

20) Pic16f877a based Calculator        
Areeb Minhaj    5446
Abdul Hafeez     5591
Iqbal Hussain Rajpar       5457

21) Digital Alarm Clock            
Muhammad Farooq Khan   5520
Muhammad Sohaib        5280
Raheel Anwar    5627
Note: u may display the clock on seven segments or LCD. Use an RTCC(real time clock calender) ic to get accurate time. Ur project must have set Alarm and set Time modes.

22) Line Following Robot      
Muzammil Ahmed Zeeshan        5370
Areeb Muzaffar Syed     5432
Khadija Aziz        5221

23) Sealer    
Shahmir Khan    5533
Muneeb Ali Khan   5663

24) Speedometer    
Tanveer Ahmad      5554
Danyal Qazi         5487
Ghufran Khan    5439

25) Mobile Jammer with Pre-Schedule Timing            
Fahad Sadiq Javed      5482
Sh. Hammad AbdulTalib   5515
Naveed Tariq     5516
Note: I will only help/guide you on the microcontroller portion of the project... The rest is up to you...



Monday 17 September 2012

Project Proposal Format and Ideas for MMBS Semester Project

Project Proposal Format
Students from all 3 class ids of MMBS LAB are required to submit the Semester Project Proposals for approval. In your proposal you need to state the project title, group members and the description of project.
Project description should summarize the key idea/objective behind the project and how you plan to achieve the same using a microcontroller.
DEADLINE FOR PROPOSAL SUBMISSION IS 20th SEP, 2012 (THURSDAY). FAILING TO SUBMIT THE PROPOSAL ONTIME WILL RESULT IN MARKS DEDUCTION.
YOU ARE REQUIRED TO SUBMIT YOUR PROPOSALS(HARDCOPY, SINGLE PAGE) TO ME(ABDUR REHMAN) IN THE DSL LAB (OR TO SIR UMAIR IF I'M NOT PRESENT THERE).

NOTE
Keep in mind that it is a semester project, the purpose of which is to assess your understanding of the theoretical concepts of MMBS and your ability to practically implement these concepts. Please choose a project in which a microcontroller provides an optimal solution in terms of computation capability and cost. The project must not be so simple that it may be easily implemented by the jellybean logic ICs and not so complex(computation intensive) that its beyond the computation capabilities of a microcontroller. 
The project must have a practical application and it should be evident that a microcontroller's decision making ability and on chip peripherals were in fact required to achieve the task.


 Where to look for Project Ideas???
There is a plethora of microcontroller based project ideas on the internet available at various websites, dicussion boards and forums. Below are some good websites and forums from which you may get the project ideas for the MMBS semester project, electronic projects in general and even Senior Design Project!

Boards/Forums
www.sonsivri.to
www.edaboard.com
http://www.electro-tech-online.com/microcontrollers/
http://hypernuclide.com/bbs/viewforum.php?f=36
https://forum.sparkfun.com/


Websites
http://people.ece.cornell.edu/land/courses/eceprojectsland/STUDENTPROJ/
http://www.piclist.com/techref/piclist/projects.htm
http://www.coolcircuit.com/gadgets/category/pic-projects/
http://mondo-technology.com/
http://josepino.com/microcontroller/

Magazines
There is also a variety of electronics magazines, with audience ranging from hobbyists to professionals. These include EveryDay Practical Electronics (EPE), Nuts and Volts, Servo, Silicon Chip, Elektor, (some issues of)Make magazine etc.


Last but not the least, most books on microcontrollers include complete projects with practical applications...




Sunday 16 September 2012

Lab Manual Softcopies

Dear Students,

Lab Manuals for Labs 01 to 04 have been uploaded in the LAB folder. This folder can be accessed by clicking on the "Files" link in the sidebar located on the left side of kiet-mmbs-fall12 yahoo group or by pasting the following address in the address bar of your browser

http://groups.yahoo.com/group/kiet-mmbs-fall12/files/Labs/

Subsequent lab manuals will be uploaded in advance (on Fridays) for your convenience so that you may print or study the material beforehand.

Regards,
AbdurRehman

Monday 10 September 2012

RESULT TMC 1

Please view the following video, there is some 'food for thought' for the cheetahs... winner is announced in the video too...




P.S: kuch batein video ki tawalat ki bina pe me nahi keh saka....

Bhai aaenda challenges ko challenge samajh k hi accept karna. 'Like a Boss' attitude se baaz critical cheezain overlook ho jati hain.... so next time..think before you ink...

Aksar books me is sawal ka answer ghalat tehreer he... e.g Mazidi (jis ki microcontrollers pe books bohot mashhoor hain) ki 8051 wali book me isi question ka answer ghalat he, aur kuch pic,avr,8086 ki books me bhi is sawal ka answer ghalat(255) pao ge...

All of you who tried ( Faizan Faisal, Ammar, Madiha Razzaq, Saad Rabbani, Asad Jabbar, Sajid Baloch, Danyal Hussain, Imbisat Hussain, Syed Umair, Nabeel Ansari and Muzammil Ahmad) have earned the teacher's goodwill/attention atleast which is some times a huge factor contributing to a student's success. Thankyou all for participation.

Thursday 6 September 2012

10 MARKS CHALLENGE NO.1

Anyone who gives the correct answer first will get 10 marks in lab03....

Question: In the following program, what should be the value of COUNT so that the instructions in LOOP execute maximum no. of times.


      ORG 0H  
      COUNT EQU 0X20  
      PORTB EQU 0X06  
      TRISB EQU 0X86  
      STATUS EQU 0X03  
      BSF STATUS,5  
      MOVLW B'0'  
      MOVWF TRISB  
      BCF STATUS,5  
 ;/***************************************/  
      MOVLW D'???'  
      MOVWF COUNT  
 LOOP  
      MOVLW B'0'  
      MOVWF PORTB  
      MOVLW B'1'  
      MOVWF PORTB  
      DECFSZ COUNT  
      GOTO LOOP  
 ;/**************************************/  
 HERE GOTO HERE  
 END  

In ur answer please give the value of COUNT for maximum iterations, and also state the reason why u think that a particular value will result in max iterations of the loop. Also post ur name and student id in the comments along with ur answer.




Wednesday 5 September 2012

Brenner8-P (Rev. 5) - USB Burner for PICmicros

For those of you looking for a usb burner...
go to translate.google.com
and paste the following link
http://www.sprut.de/electronic/pic/projekte/brenner8/index.htm#b8p
to see the translated page (original is in some gibberish language).
Single sided PCB layout is also available there.

P.S : Don't come to me for troubleshooting the hardware. Use forums like edaboard, sonsivri, hypernuclide etc. for guidance.
99% of the time you will find that you are not the first man on the face of the earth who faced that particular problem.

Monday 3 September 2012

PIC16f877a breakout board & jdm burner schematics



Breakout Board schematic (above, use a ZIF socket for microcontroller and female headers on both sides of ZIF socket to facilitate prototyping)


JDM Burner schematic (below)
click either to enlarge