![]() | ![]() | ![]() |
| | |||||||
| 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. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | |
| |
| | (permalink) |
| 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. Last edited by Gayan Soyza; 8th July 2008 at 04:37 AM. | |
| |
| | (permalink) |
| 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).
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | |
| |
| | (permalink) |
| 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. Last edited by Gayan Soyza; 8th July 2008 at 09:59 AM. | |
| |
| | (permalink) |
| You are using the latest version. No need to change.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| You don't need PWM, it is only for speed control usually which you can do by changing the step length. | |
| |
| | (permalink) |
| 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?
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | |
| |
| | (permalink) |
| You will be connecting the stepper to the PCB with a connector. Just draw the connector. What connector you use if up to you.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | (permalink) | |
| Quote:
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | ||
| |
| | (permalink) | |
| Quote:
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.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | (permalink) |
| 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 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 | |
| |
| | (permalink) |
| 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
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | |
| |
| | (permalink) |
| 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
__________________ Hesham Ismail Mohammed Sharif Thank me if you want | |
| |
| | (permalink) |
| 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 Last edited by Gayan Soyza; 10th July 2008 at 09:02 AM. | |
| |
| Bookmarks |
| Tags |
| eagle, led, pic16f84a |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |