Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 3rd April 2006, 05:57 PM   (permalink)
Default need help in my final year project.

I am new into PIC16f873 also as well as the coding.

I am required to design a program and interface (eg, infrared interface) to control a dc motor using pic16f873.

i need some assistance on guiding me to build the interface and the coding.

help is appreciate.
Shock is offline  
Old 3rd April 2006, 09:55 PM   (permalink)
Default

You will get better response if you do some work first and submit it for comment.
__________________
see my website: www.geocities.com/russlk
Russlk is offline  
Old 4th April 2006, 06:42 AM   (permalink)
Default Re: need help in my final year project.

Quote:
Originally Posted by Shock
i need some assistance on guiding me to build the interface and the coding.
help is appreciate.
we can assist and guide u..but on which part..??
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline  
Old 4th April 2006, 10:52 AM   (permalink)
Default

You can get lots of examples and source code from internet.
You can use google for that.

I completely agree with RUsslk.
tkvenki is offline  
Old 4th April 2006, 05:02 PM   (permalink)
Default

Google like instructed and read, attempt a schematic and upload it, pick a language to program it with and come back (I believe that is what they are
saying)
mramos1 is offline  
Old 4th April 2006, 11:39 PM   (permalink)
Default

Have you looked at Nigel's tutorials? One is an infra red communications programme. He also has included some of the hardware designs.

His link is at the bottom of his posts. Search for Nigel Goodwin.

Also, you should have posted this in the Micro Controllers forum.
__________________
Len
ljcox is offline  
Old 12th April 2006, 07:49 AM   (permalink)
Default

Sorry for replying late. Been thinking how to build the communication for ir.

I googled and found this basic IR cct, wonder if is able to work?

CCT
http://www.reconnsworld.com/ir_ultra...etectemit.html

My simple idea is using PIC16F873 and using RB 0 port to contorl to communication for the IR, if IR detected, the Bits will send to L293 IC to Move the motor in a direction.

I need some feed back for this. Thank you
Shock is offline  
Old 12th April 2006, 08:12 AM   (permalink)
Default

shock..pls explain ur problem clearly . u just want an IR transmission, or are u planning to transmit some coded information.?
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline  
Old 12th April 2006, 02:26 PM   (permalink)
Default

Shock

I think the light in the room will cause problems if you plan to just send an IR signal and the IR rx to turn on and not send to turn off..

Go look at Nigel's IR tutorial. You will need some form of coding to make it error free.
mramos1 is offline  
Old 13th April 2006, 04:43 PM   (permalink)
Default

Quote:
list p=16f873
include "p16f873.inc"

org 0x00
goto START

;Configuration section
START bsf STATUS,5
movlw 0x06
movwf ADCON1
movlw b'00000000'
movwf TRISA ;Set PORTA as output port
movlw b'00000001'
movwf TRISB ;Set PORTB as input port
movlw b'00000000'
movwf TRISC ;Set PORTC as output port
movlw b'00000111'
OPTION
bcf STATUS,5
clrf PORTC ;Clear PORTC before program start
clrf PORTA ;Clear PORTA before program start

;Program starts
BEGIN btfss PORTB,0 ;Test PORTB (infrared receiver input)
goto ANTICLK ;Got obstruction in infrared signal,
;motor move anticlockwise
goto CLOCK ;No obstruction in infrared signal, motor move
;clockwise

ANTICLK movlw b'00000101' ;Bit 2 to enable L293B chip, bits 0 and 1
;to move motor anticlockwise direction
movwf PORTA
movlw b'00010001'
movwf PORTC ;LEDs signify motor movement
clrf TMR0
movlw b'00100010'
movwf PORTC
clrf TMR0
movlw b'01000100'
movwf PORTC
clrf TMR0
movlw b'10001000'
movwf PORTC
clrf TMR0
goto BEGIN ;Recheck infrared signal for obstructions

CLOCK movlw b'00000110' ;Bit 2 to enable L293B chip, bits 0 and 1 to
;move motor clockwise direction
movwf PORTA
movlw b'10001000'
movwf PORTC ;LEDs signify motor movement
clrf TMR0
movlw b'01000100'
movwf PORTC
clrf TMR0
movlw b'00100010'
movwf PORTC
clrf TMR0
movlw b'00010001'
movwf PORTC
clrf TMR0
goto BEGIN ;Recheck infrared signal for obstructions

end
This is my simple coding for the project. I had it run today and i found out that i have the problem with the timer. The led just doesnt move as it is. I still working on it, pls gimme some feedback or any enhancement for code
Shock is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:44 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker