malaiwah
Newbie level 3
Hi,
I'm currently experimenting electronics as a hobby.
I bought a protoboard, a PIC programmer, some PIC16F628A chips, some L7805 voltage regulators and some ULN2003AN chips. I have a small stepper motor I would like to drive using a circuit that uses (hopefully) these components.
I have read a lot of documents, but I'm still trying to figure out how to make it work.
Currently, I have fried a LED, one voltage regulator, one PIC and one ULN. It was a bad day.
I had the regulator powered on with a battery for a while, but found out a 13VDC wall wart lying around so I decided to try it. It was outputting 17VDC idle, but I thought that was because it was not a "switching" power supply and tought the regulator would be fine with it... errr.. It was not. It got hot and then outputed 12 volts out of the "regulated" side which I think fried the PIC and the LED.
So I went back to the battery setup and changed components. My PIC is running well and my LEDs are flashing in the correct pattern and duration; this part runs well.
I thought that I could drive my stepper motor (6 wires: two commons and four for sequencing) through a ULN2003AN chip but can't figure out a way to wire it. The PIC16F628A runs at 5 volts (I have a regulated 5V power bus at the right of my bread board). The stepper motor should run at 12 volts (I have a 12V power bus unregulated at the left of my bread board).
One of my tries fried the chip, I think that was like a 12V short-circuit or reverse polarity ;-) I wonder if I should have bought ULN2003 chips (not the AN variety).
I'm searching a schematic that would explain how I can connect my PIC16F628A outputs (portB) to the ULN2003AN out to the stepper motor. Something like that: https://obrazki.elektroda.pl/36_1253769551.jpg but using 4 outputs and a ULN2003AN.
Thanks a lot for any help, that would be really appreciated.
I'm currently experimenting electronics as a hobby.
I bought a protoboard, a PIC programmer, some PIC16F628A chips, some L7805 voltage regulators and some ULN2003AN chips. I have a small stepper motor I would like to drive using a circuit that uses (hopefully) these components.
I have read a lot of documents, but I'm still trying to figure out how to make it work.
Currently, I have fried a LED, one voltage regulator, one PIC and one ULN. It was a bad day.
I had the regulator powered on with a battery for a while, but found out a 13VDC wall wart lying around so I decided to try it. It was outputting 17VDC idle, but I thought that was because it was not a "switching" power supply and tought the regulator would be fine with it... errr.. It was not. It got hot and then outputed 12 volts out of the "regulated" side which I think fried the PIC and the LED.
So I went back to the battery setup and changed components. My PIC is running well and my LEDs are flashing in the correct pattern and duration; this part runs well.
I thought that I could drive my stepper motor (6 wires: two commons and four for sequencing) through a ULN2003AN chip but can't figure out a way to wire it. The PIC16F628A runs at 5 volts (I have a regulated 5V power bus at the right of my bread board). The stepper motor should run at 12 volts (I have a 12V power bus unregulated at the left of my bread board).
One of my tries fried the chip, I think that was like a 12V short-circuit or reverse polarity ;-) I wonder if I should have bought ULN2003 chips (not the AN variety).
I'm searching a schematic that would explain how I can connect my PIC16F628A outputs (portB) to the ULN2003AN out to the stepper motor. Something like that: https://obrazki.elektroda.pl/36_1253769551.jpg but using 4 outputs and a ULN2003AN.
Thanks a lot for any help, that would be really appreciated.