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 7th July 2008, 09:29 PM   (permalink)
Default LED and PIC16F84A

Hello everyne,

I started learning PIC for one semester now on my own and the main help was offcourse from this forum. I then moved into learning electrical software that will help me ask better in this forum i selected EAGLE.

Here the thing,
I have this drawing that i used EAGLE software to draw i have 2 questions if you can help me with in eagle software.

Q1> First, I want to move group of object togather from one place to another see attachment for clarification?
Q2> If you have any suggestion on how can i improve the drawing i already did please let me now?

Thanks in advance
Attached Images
File Type: jpg LEDwith16F84A.JPG (33.8 KB, 54 views)
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 8th July 2008, 04:34 AM   (permalink)
Default

Its better if you can move to Eagle5.

How to move a group?

You just select the components by using the Group tool by dragging them.After select the Move tool & right click on the schematic & select Move:Group & move the cursor & place where you want to place.

To Improve your drawing you must use that Junctions using the Junction tool.This is very useful when doing a schematic capture from your drawing.So it will confirm whether it is connecting or not.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 8th July 2008 at 04:37 AM.
Gayan Soyza is online now  
Old 8th July 2008, 09:46 AM   (permalink)
Default

Thanks gayan for replying,

What you mean eagle5 i am using eagle 5.1.0 is that what you meant or another program please specify a website if you don't mind so i can download it or buy the software.

Group move is amazing i could move them and my drawing become more neat.

Right now i am learning more about junction ...

Q> My question is in the datasheet of 16F84A the MCLR is connected to resistor, capacitor and diodes as shown in page 28 is connecting MCLR to 10k resistor is enough or i should do the extra requirements (capacitor and diodes).
Attached Images
File Type: jpg LEDwith16F84Ar2.JPG (27.0 KB, 11 views)
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 8th July 2008, 09:57 AM   (permalink)
Default

Only resistor will be fine.

If you start using a modern PIC like PIC 16F628A or PIC 16F88 you can leave open the MCLR pin & no need any connection to that pin.You can use that pin as an INPUT pin.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 8th July 2008 at 09:59 AM.
Gayan Soyza is online now  
Old 8th July 2008, 10:28 AM   (permalink)
Default

Quote:
Originally Posted by uaefame View Post
Thanks gayan for replying,

What you mean eagle5 i am using eagle 5.1.0 is that what you meant or another program please specify a website if you don't mind so i can download it or buy the software.
You are using the latest version. No need to change.
3v0 is offline  
Old 8th July 2008, 10:54 AM   (permalink)
Default

My goal is to control a bipolar stepper motor using sn754410 and pic16F84A

Here are two questions i need help with

Q1> How to draw a bipolar stepper motor using eagle or is there a liberay file with bipolar stepper motor because i couldn't find it?

Q2> The first pin in sn754410 need a PWM and i am using PIC16F84A i am not sure how can i get PWM from this PIC? any idea i apreciate it.
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 8th July 2008, 07:50 PM   (permalink)
Default

You don't need PWM, it is only for speed control usually which you can do by changing the step length.
Krumlink is offline  
Old 8th July 2008, 11:06 PM   (permalink)
Default

I am still trying to draw a bipolar stepper motor using eagle but nothing yet, therefore i decided to focus on my next problem which is

Q1> How to program a bipolar stepper motor using 16F84A i am using the diagram shown below not yet finish but still working on it?
I mean do i send high B0 high B1 high B2 high B3 or there is a true table for it?

Q2> How diode are connected to a stepper motor coils?
Attached Images
File Type: jpg Sn754410.JPG (32.9 KB, 16 views)
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 8th July 2008, 11:14 PM   (permalink)
Default

Quote:
Originally Posted by uaefame View Post
My goal is to control a bipolar stepper motor using sn754410 and pic16F84A

Here are two questions i need help with

Q1> How to draw a bipolar stepper motor using eagle or is there a liberay file with bipolar stepper motor because i couldn't find it?
You will be connecting the stepper to the PCB with a connector. Just draw the connector. What connector you use if up to you.
3v0 is offline  
Old 9th July 2008, 10:01 AM   (permalink)
Default

Quote:
You will be connecting the stepper to the PCB with a connector. Just draw the connector. What connector you use if up to you.
I mean is it possible to draw a stepper motor in the schematic section that what interest me at the moment (I am using eagle software)
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 9th July 2008, 01:27 PM   (permalink)
Default

Quote:
Originally Posted by uaefame View Post
I mean is it possible to draw a stepper motor in the schematic section that what interest me at the moment (I am using eagle software)
I know what you mean. My previous answer is still a good one.

But if you insist the answer is yes, it is possible.
Draw your stepper motor as a component. There is a tutorial on the Eagle site on drawing components. It is a skill you NEED to learn.

Next you will say you do not want to draw the stepper as a component. As I said most people would just draw the connector, because of this you will not easily find the the stepper component for Eagle.
3v0 is offline  
Old 9th July 2008, 03:38 PM   (permalink)
Default

THanks 3V0,

I connected the circuit for stepper motor and i am using this codes nothing worked!
The codes are
Code:
LIST	P=PIC16F84A
	#INCLUDE "P16F84A.INC"
	__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _LP_OSC
	errorlevel -302

	cblock	0x0c
	d1,d2,d3
	endc

	org	0
init
	banksel	TRISA		;bank 1
	clrf	TRISA
	clrf	TRISB
	banksel	PORTB		;bank 0
	clrf	PORTB
main	bcf PORTB,1
		bcf PORTB,3
		bsf	PORTB,0
		bsf	PORTB,2
	call	Delay8ofsec
	bcf	PORTB,0
	bsf	PORTB,1
	call    Delay8ofsec
	bcf	PORTB,2
	bsf	PORTB,3
	call    Delay8ofsec
	bsf	PORTB,0
	bcf	PORTB,1
	goto	main

Delay8ofsec
			;124993 cycles
	movlw	0xA6
	movwf	d1
	movlw	0x62
	movwf	d2
Delay8ofsec_0
	decfsz	d1, f
	goto	$+2
	decfsz	d2, f
	goto	Delay8ofsec_0

			;3 cycles
	goto	$+1
	nop

			;4 cycles (including call)
	return



	end
The logic of the codes are simple every 1/8s i do this for portB 0 1 2 3 i do HLHL, 1/8delay LHHL 1/8s delay, LHLH, 1/8s delay HLLH then repeat!

Is my codes wrong or maybe the wiring i will try posting the schematic when i finish drawing it for the mean time can some tell me if the codes are wrong.

I am using bipolar stepper motor
Thanks in advance
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 9th July 2008, 06:03 PM   (permalink)
Default

I also used this codes to drive the stepper motor but nothing happen!
I am using this logic HLLL LHLL LLHL LLLH and delay between each 1/8s. Then the program repeat it selt.

Here are the codes
Code:
LIST	P=PIC16F84A
	#INCLUDE "P16F84A.INC"
	__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _LP_OSC
	errorlevel -302

	cblock	0x0c
	d1,d2,d3
	endc

	org	0
init
	banksel	TRISA		;bank 1
	clrf	TRISA
	clrf	TRISB
	banksel	PORTB		;bank 0
	clrf	PORTB
main	bsf	PORTB,0
		call	Delay8ofsec
		bcf	PORTB,0
		bsf	PORTB,1
		call    Delay8ofsec
		bcf	PORTB,1
		bsf	PORTB,2
		call    Delay8ofsec
		bcf	PORTB,2	
		bsf	PORTB,3
		call    Delay8ofsec
		bcf	PORTB,3	
		goto	main

Delay8ofsec
			;124993 cycles
	movlw	0xA6
	movwf	d1
	movlw	0x62
	movwf	d2
Delay8ofsec_0
	decfsz	d1, f
	goto	$+2
	decfsz	d2, f
	goto	Delay8ofsec_0

			;3 cycles
	goto	$+1
	nop

			;4 cycles (including call)
	return



	end
Is something wrong!!
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 9th July 2008, 08:45 PM   (permalink)
Default

Here is it the diagram the i am following, Note that BSM in the diagram refer to bipolar stepper motor i couldn't draw all the stepper motor therefore i used 3v0 advice.

I am desperately trying to get this stepper motor moving before 19/July/08

Thanks in advance
Attached Images
File Type: jpg sn754410r2.JPG (49.3 KB, 13 views)
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 10th July 2008, 08:59 AM   (permalink)
Default

You change your OSC setting to XT in the config part in your program.

Replace the below code into the main routine & see.

Code:
main	movlw	b'00000001'
	movwf	PORTB
	call	Delay8ofsec
	movlw	b'00000010'
	movwf	PORTB
	call	Delay8ofsec
	movlw	b'00000100'
	movwf	PORTB
	call	Delay8ofsec
	movlw	b'00001000'
	movwf	PORTB
	call	Delay8ofsec
	movlw	b'00000000'
	movwf	PORTB
	goto	main
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 10th July 2008 at 09:02 AM.
Gayan Soyza is online now  
Reply

Bookmarks

Tags
eagle, led, pic16f84a

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
pic16f84a help aristos Micro Controllers 5 22nd July 2007 01:40 AM
Pic16f84a Cp imranshoukat Micro Controllers 6 26th April 2007 04:48 PM
PIC16F84A need help kac121 Micro Controllers 15 21st June 2006 11:31 PM
help with pic16f84a freesprited Micro Controllers 2 14th March 2005 09:25 AM
PIC16F84A Spopovich Micro Controllers 4 5th March 2004 05:49 AM



All times are GMT. The time now is 05:57 AM.


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

eXTReMe Tracker