Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
netbug said:The input voltage is 12V and I added the capacitors to 7805. Maybe I will use the 8 output ports to drive the motor (2 per wire) and put the resistors that Mike sugested.
netbug said:Do you think there is a need to connect the common leads to a voltage higher than 12 Volts ?
Hi everybody,
Thanks to all of you my stepper is working fine !!!
I need some more help on this project.
I can divide this project in two:
1- Stepper motor control
2- LCD control
So I need some help on point 2. What I want to do is to control several motors at the same time and with diferent speeds. So each motor will have separate control.
The problem is I want to display on LCD the following information:
- Running time of a specific motor
- Speed of that motor
- Actual time
So with only one LCD, I would like to see the running time of each motor. I expect doing this with a press button that allows me to choose the motor which running time I want to display.
I need some help to find the better solution from the hardware point of view. Should I make the clock with the PIC ?? If I need to count the running time of 4 motors, do I need 4 clocks and then 4 PIC's ? Is there a simpler way to do this ?
Best regards,
Pedro Cardoso
Hi,
First of all which language are you going to use ? If you are planning to use ou already using assembly, please take a look at Nigel's webpage.
Relative to the 5 second delay, would do a function (using interrupts, for eg.) that would cause a well known delay , for example a 1sec. delay, and then I would call that function 5 times. This would give you roughly 5sec. delay. This is not very accurate, but is fairly simple to implement.
Anyway nowadays I am not using PIC16F84A anymore, you should consider buying other microcontrollers that are more powerful and cheapper than that one (eg. 16F628). Please, just take a look at the Microchip website.
Best regards,
Pedro Cardoso
-I am to use only PIC16F84A in doing this project. My project include doing a delay for five minutes in assembly language. I am also using a motor but its not a stepper one. Its a motor coming from a washing machine, an ac one... I couldn't thinkmof anything to do with this motor so I end up thinking of using delay as to conserve energy..and that is for five minutes which is short enough for defense of the project purposes. By the way my project is a grain dryer.
-I did try to use many call delays but I end up having no enough space to support the delays..
You need to employ a slight bit of programming technique - you don't use an endless run of delays, you use one delay and call it multiple times in a loop.
You might check my tutorials, many of which use this technique, and a basic delay generated by the PICList delay code generator.
Hi again,
My project is working better every day thanks to all fo you .
Once again I have 3 more questions:
How can I connect , for example, 4 switches to an input line of a PIC, and treat them separatly ? This is, I would like each switch to be recognised although being connect to same pic input.
I also would like to measure the voltage of the batteries and display this on lcd, just like mobile phones do. So I would like to plot a figure on LCD with the battery level.
Can I use a shift register to communicate between devices, in order to free pic data lines ? Can you tell me how to code this ?
Best regards,
Pedro Cardoso