2x bipolar transistor? Answered

If I took 2 similar NPN transistors and connected both the bases together, both the collecters, and both the emitters, then put it into a circuit, what would the 2 transistors do? Would the maximum power dissipation be increased or something? 

Asked by .Unknown. 8 years ago  |  last reply 8 years ago


3 Bipolar Steppers

 I am selling three stepper motors that I was wrongly shipped by a vendor. For specs, PM Me. 10.00 Each

Posted by 16zzundel5 8 years ago  |  last reply 6 years ago


floppy bipolar stepper motor driver? Answered

hi i wanted to salvage my old floppy drive , and take the small bipolar motor from it after i removed it , i looked around and i found small ic (  LB1838M  ) its data-sheet is here http://www.datasheetcatalog.org/datasheet/sanyo/ds_pdf_e/LB1838M.pdf i found somethings (pins configuration) in the data-sheet that i don't understand like :  IN1 ,  IN2  ,  ENA1 , ENA2 so , what this pins represent for ? and , can i remove this ic from the board , and make a circuit like this one in the data-sheet and use it to control the stepper ( independently ) ? if yes , i need to know how to make controlling buttons or something . English in not my 1st language btw , so ... thank you :)

Asked by lu2a 8 years ago  |  last reply 7 years ago


Can I use PIC18F1320 to drive bipolar stepper motor? Answered

I also plan to use L298NH H-Bridge.

Asked by bratan 7 years ago  |  last reply 7 years ago


Can someone give me some information on a bipolar driver board? Answered

One of my dad's friends used to work for Applied Motion Products. Anyway he gave me a bipolar driver board: The 057A Oscillator board from Applied Motion Products. It can handle up to 8 four-wired stepper motors but that is all I know. If someone could please give me some information on this board especially any sort of software that I could use to drive three steppers for a CNC project I would be greatful.

Asked by bombmaker2 8 years ago  |  last reply 8 years ago


can i use l293d instead of uln2003

As in this instructables https://www.instructables.com/id/Laser-cutter-start-slicing-stuff-for-under-50-dol/ directly connected to the parallel port for a bipolar stepper motor?

Asked by bengus 8 years ago


Meeting room one (new members) CLOSED

For general discussions, to keep other topics to the point. New rooms will be set up as required.

Posted by Lateral Thinker 9 years ago  |  last reply 9 years ago


Bipolar Stepper motor drivers...

Can someone please give me a schematic for controlling a BIPOLAR stepper motor (12V/2.5A) using L293D and L298 with parallel port (LPT) with Mach3

Asked by mnaveed 5 years ago  |  last reply 5 years ago


Voltage from 4 wire bipolar stepper motor!

I've stripped a 1.8 deg stepper motor out of an old fax to make a bike generator but I can't get any juice from it. I'm spinning it using a multi tool so I should get something, right?! I did do some research and found out that 4-wire bipolar stepper motors are controlled differently from 5+ wire ones. I guessing then that generating power is different also. I'm reading 2.1 - 2.3 ohms off each coil. Tried wiring the coils in series but still nothing. I need a long serving instructablator to help me!! The label reads: STP-42D1020 1.8deg/STEP 2.1 ohms 33.5 V D.C. 0.7 A 17845G SHINANO KENSHI CO LTD. CHINA

Posted by ZdEEvO 10 years ago  |  last reply 6 months ago


3 pronged LED

I just bought some bipolar LED's from a local store. When I opened the bag, I realized that each LED had 3 prongs instead of the usual 2 prongs. How do I use it? Is the middle prong the positive or negative side?

Posted by allstarn07 10 years ago  |  last reply 10 years ago


Looking for help on a bipolar motor driver schematics for L6219ds?

I want to build a small pen plotter and have the motors, carriage, and arduino some L6219ds chips but have no idea where to start with the circuit build for the motor drivers. there are lots of info on the L2 chips but not much on the L6. the chips are from ST microelectronics and are L6219ds. I have the data sheets and I am slowly (very slowly) learning from there. Any and all information on a build, any suggestions would be much welcomed!

Asked by tetraflak 5 years ago  |  last reply 5 years ago


Would like to confirm current rating of a stepper motor

I took of it off Epson printer/scanner (CX5200). It's rated at 42VDC (which seems really high) and 26 Ohm. I used formula I=V/R and got 1.6 Amps, which seems awfully big current for this tiny bipolar stepper motor (it moves scanner head). Am I correct with calculations or missing something?

Asked by bratan 7 years ago  |  last reply 7 years ago


Sankyo Motor MSDA020L81 - Unipolar/Bipolar?

I have several old 5.25" floppy drives that I want to pull useful parts from. One part I pulled was a Sankyo MSDA020L81 motor (see image below). I know it has a rotation of 18 degrees and is a 12V motor. It has six pins. From Connector WHITE RED YELLOW BLUE BROWN BROWN From Circuit WHITE BROWN RED YELLOW BROWN BLUE Does anyone know how to tell if this is a bipolar or unipolar motor? Do you have any tips on how to run something like this? Thanks in advance!

Asked by TwinDaddyD 3 years ago  |  last reply 3 years ago


Is my RGB LED broken, or am I just dumb? Answered

I have a 10W RGB LED like this one: http://dx.com/p/10w-1000lm-rgb-light-9-led-module-silver-white-9-11v-168507 It's rated to 9-11v, so I hooked it up to a 9v battery. The LED has 4 leads: 1) +9v 2) Red - 3) Green - 4) Blue - The green and the blue work as expected, and I can combine them to get cyan. The problem is with the red: 1) It won't combine with any other color.  If the red is switched on, the green and blue switch off. 2) It works on both polarities.... It turns on both with +9v and -9v. Am I doing something wrong?  Am I missing something?  Am I going crazy?  Am I just stupid!? Please help!

Asked by Morgantao 5 years ago  |  last reply 5 years ago


I am using a microcontroller to control a bipolar stepper motor. Do you think this circuit will work?

I am going to use a Basic Stamp microcontroller to control 3 bipolar stepper motors. Tell me if you think this circuit will work. (all stepping signals will be handled with the microcontroller) This is just a modified h-bridge.

Asked by galaxyman7 9 years ago  |  last reply 9 years ago


How do I drive a 4 wire stepper motor?

Hi, Im thinking of making a small CNC machine to make PCBs. Just the other day, I opened up an old scanner and found this stepper motor with 4 wires. The wires are orange, yellow, light brown, and red. The info on the motors label is: STH-39D1126 1.8 DEG/STEP  4.1 Ohms No. 18752G How can I drive this? Can I use an arduino, serial or parallel port? Thanks,  Nadav

Asked by nadav 7 years ago  |  last reply 6 years ago


Help on stepper motor types and related driver chips?

I have a pair of stepper motors, one with 4 wires(brown, black, yellow, orange) and the other with 5(black, brown, yellow red, orange) they are both from a printer and I want to be able to use them with Mach3 via the parallel port, what chips might I need to use to do this?

Asked by The Ideanator 9 years ago  |  last reply 9 years ago


I want to ask - Is it possible to run bipolar stepper motor with uln2003 or uln2803 ic??

I want to ask - Is it possible to run bipolar stepper motor with uln2003 or uln2803 ic??, because l293d ic is very costly here. If yes then can you plz post a schematic here. I have searched over the net and found no useful information about it. plz HELP?

Asked by ram_aloktripathi 7 years ago  |  last reply 6 years ago


LED, bipolar diffused common-cathode ultra wha?!

I was browsing through one of my local supplier's LED catalogue..Literally overwhelmed by the types of LED out there.. Diffused, non-diffused, super flux, super bright, ultra bright, common anode, common cathode, flashing, bipolar, etc..Anyone care to enlight this electronics noob? Plus some of the LED spec says something like 630nm, 1800mcd, what do they mean? Thanks..

Posted by gyromild 11 years ago  |  last reply 11 years ago


Is it possible to use a 4017 ic to controll a bipolar stepper? Answered

I want to build a robot. i have got two bipolar stepper motors but my micro is 2 outputs short of enoght so i was woundering if i could use a 4017 taking a pulse from the micro then driving transistors on the outputs connected to the stepper.

Asked by terrapinlogo 9 years ago  |  last reply 9 years ago


Stepper motor Wind Generator Help!

 I need to know how to wire up my Stepper motor for my wind generator to get as much volts and amps.  It is a PM55L-048-HP69 Taken out from an old HP Printer. HERE IS THE DATASHEET All I need is someone to explain to me how to wire it up and make a rectifier for it. THanks Much!!!

Asked by azngiant1212 8 years ago  |  last reply 8 years ago


I have a large bipolar stepper motor. What's the simplest circuit to drive it with a microcontroller (arduino)?

I have a large stepper motor with 4 wires (bipolar) from an old printer and I assume it's 12 volts, or at least higher than 5v. I have plenty of transistors: 2n3904, 2n2222, 2n4401 and 2n3906 (PNP). How do I drive the stepper with output from an arduino? (simple H-bridge schematic?) Also, how can i find how many steps it has? Thanks!

Asked by Vick Jr 8 years ago  |  last reply 6 years ago


What kind of stepper motor should I get? - for 3 axis cnc desktop mill

I am currently working on building my first desktop CNC mill, I plan on it being 3 axis and the spindle being a dremel tool. I am searching for stepper motors that will work for my project and would like some suggestions as to what kind/which ones I should buy. I have seen ones from 96-200 steps/rev, does this make a large difference which end of the spectrum I use? I figure the more steps,the more accurate it can be but for my basic machine would 96 step/rev be sufficient? aka what kind of accuracy can I expect from 96steps/rev? Should I get bipolar or unipolar? Does it matter if the controller connects through USB or parallel port? is there even a difference Thank you for your time

Asked by slayer04 7 years ago  |  last reply 7 years ago


CD stepper motor controlled by PC?

Hello, Is it possible to control a bi-polar stepper motor from a CD reader/writer with the original print board? (so without adding any other IC's), and also with the original flat-cable? I would like to create an XY positioning table with 2 of these stepper motors. I don't understand much about data transfer trough a serial port, so I would like to keep using the original wiring (flat cable) that goes to the motherboard of my PC. Does there also exist software to program a pattern (for drawing an image on the XY table) that sends signals directly to the stepper motor? (trough the flat-cable) ? Thanks in advance, Electorials

Asked by DELETED_Electorials 7 years ago


Can anyone help me making cnc controller??

I want to make a cnc, I have bipolar stepper motors and l293d ics can anyone help me making the pcb layout board for bipolar cnc controller with db25 connector(printer port). I have tried making my own but it didn't work. So plz help me out. 

Asked by ram_aloktripathi 6 years ago  |  last reply 6 years ago


28BYJ-48 stepper motor driver....ULN2003 or L298N?

Hi, My goal is to have the 28BYJ-48 stepper motor turn clockwise and then counterclockwise periodically, like a pendulum motion. I have built a circuit using ULN2003 Darlington Array since most tutorials online use that. But recently I've seen some sources using the L298N Dual H-Bridge. Questions: Is it more efficient to use to L298N? I heard the ULN2003 draws more current than it needs. To add to the confusion, although the 28BYJ-48 is an unipolar motor, it can be ran in bipolar mode as well. Is the L298N only for bipolar mode? Here is the date sheet of L298N Does running a motor in bipolar mode offer twice the electrical efficiency than unipolar mode? In another word, if the load is the same, battery is twice as long (theoretically)? Please advise. Thanks

Asked by DELETED_MakiY2 1 year ago  |  last reply 1 year ago


Electrolytic Capacitor types/ uses? Answered

About electrolytic (aluminium) capacitors..... what do the low ESR ones do that normal ones don't? And how come they have these capacitors in bipolar types, but not all are bipolar? Is it because of the size/cost? And lastly, can you make an LC circuit with any electrolytic capacitor?                                                                                                             Many thanks P.S: In which frequency range are LC resonant ciruits best used? Cos I heard that lower/higher than a specific point, they become impractical or something....

Asked by .Unknown. 8 years ago  |  last reply 8 years ago


How to drive Bipolar stepper motor using MTD2006 dual H-bridge

Hi I'm trying to drive a Bi-polar stepper motor using MTD2006 bridge which I got from old copy machine.But when I download datasheet for this IC found that input signals must fed to drive the motor (ENA A,PHY A,ENA B,PHY B ) As I understand ENA signal must be (High) always! So I'm confused how to drive this IC using Arduino? Thanks

Posted by MHA6 1 year ago


Arduino + L298N controlling bipolar stepper with pot speed control and speed on lcd (also on lcd thermistor temp in C)?

Lcd 16 x 2 Motor http://www.banggood.com/JKM-Nema-17-42mm-Hybrid-Stepper-Motor-70oz-in-48mm-2_5A-For-CNC-p-942109.html 10K potentiometer L298N is a module Arduino controlled How can i control the motor and lcd?

Asked by bonze77 3 years ago  |  last reply 3 years ago


How do I use MOSFET's for switching? Answered

I've been confused about this for a while now. I know how to use bipolar transistors(2N3904), but not MOSFET's. I've got one of these.

Asked by geeklord 9 years ago  |  last reply 9 years ago


Stuck programming AVR or ARDUINO based 3 axis bipolar stepper controller. Answered

Hello, I am writing a program to control 3 axis bipolar stepper motors using the atmega8 and other hardware (L293). I am facing a mental block for the part of the program where I must switch the 4 outputs for any bipolar stepper motor. I guess the program would explain the problem better. I can do this, but some innovative idea would be good. I am also adding the circuit for the controller for reference.  /* 3-Axis Bipolor stepper motor controller. Takes 5 inputs *  based on: *  1) PD1 - Enable X axis *  2) PD2 - Enable Y axis *  3) PD3 - Enable Z axis *  4) PC4 - Step *  5) PC5 - Direction (Clockwise if 1) *  Gives 12 outputs for motor control, defined as: *  1) PC0 - MX-D *  2) PC1 - MX-C *  3) PC2 - MX-B *  4) PC3 - MX-A *  5) PD4 - MY-D *  6) PD5 - MY-C *  7) PD6 - MY-B *  8) PD7 - MY-A *  9) PB0 - MZ-C *  10) PB1 - MZ-B *  11) PB2 - MZ-A *  12) PB3 - MZ-D * *  The uC reads the dir and step for each axis. Whenever step is *  given a high pulse, step sequence is incremented (or decremented) *  by one, depending on the direction pin's state. * *        Author: Pranav Sharma *        Date: April 3rd, 2012 *********************************************************** */ #define STEP_SEQ half_step_seq #define STEP_PIN PINC&0b00010000 #define DIR_PIN PINC&0b00100000 #define X PIND&0b00000010 #define Y PIND&0b00000100 #define Z PIND&0b00001000 int dir=0; int currentx=0; int currenty=0; int currentz=0; int currentstep=0; boolean enx=false; boolean eny=false; boolean enz=false; void setup(){   DDRB=0B00001111;    //B0-B3 Outputs   DDRC=0B00001111;    //C0-C3 Outputs   DDRD=0B11110000;    //D4-D7 Outputs   PORTB=0;                                                                               //IS THIS NEEDED??   PORTC=0;   PORTD=0; } byte half_step_seq[]={   B1010,   B1011,   B1001,   B1101,   B0101,   B0111,   B0110,   B1110 }; void loop(){   if(STEP_PIN)   {     DIR_PIN?dir=1:dir=-1;     if(X){       currentstep=currentx+dir;       currentx=currentstep;       enx=true;     }     else if(Y){       currentstep=currenty+dir;       currenty=currentstep;       eny=true;     }     else if(Z){       currentstep=currentz+dir;       currentz=currentstep;       enz=true;     }       byte stepbyte=STEP_SEQ[currentstep];         if(enx){       //step currentx time the x motor     }     else if (eny){       //step currenty time the y motor     }     else if(enz){       //step currentz time the z motor     }     enx=false;     eny=false;     enz=false;   } }

Asked by pro2xy 6 years ago  |  last reply 6 years ago


Are resistors need with mosfet?

I posted a very similar topic a couple minutes ago but I'm pretty sure noone can see it, so I'm copying and pasting the body. I just want to check this before I blow up my mosfet (I've never used mosfets before) Is it correct that you don't have a resistor from the voltage source to the gate (unlike bipolar transistors) Should or shouldn't you have a 1M ohm from gate to ground? Let's say I'm driving a mosfet from a 555, should I have a resistor from the output pin to gate? I think the schematic I'm reading just through a mosfet in where a bipolar use to be without changing that resistor.

Posted by guyfrom7up 10 years ago


Stepper motor light test? Answered

Hi. I wanted to know that do all bipolar steppers give result to light test? I found many steppers that seem fine but do not give result to the led test. I am confused weather they work or not.

Asked by SowmenD 4 years ago  |  last reply 4 years ago


Power supply?

Since I was thinking of building a bipolar power supply +12V, -12V, using a 12-0-12 transformer and using only diodes and capacitors, which I have successfully built. My problem is how safe can this power supply be? since I am not using any regulators?

Asked by VAustin89 7 years ago  |  last reply 3 years ago


Stepper motors for sale

I have a few large stepper motors I pulled out of a liquid sinilation counter. I'm not exactly sure what thier value is, similair motors are priced around 50-60$ new, so offers are welcome. They operate ~6v and have 0.90 degree steps, I believe they are bipolar. I can upload pics if needed.

Posted by martzsam 5 years ago  |  last reply 5 years ago


Universal stepper motor controller

I wanted to create a universal stepper driver that is capable of driving a stepper of 250w rating at 20A current and a load voltage of 12V . Does anybody have an idea of how to go about it ? . Please do guide me if you have any ideas .  Also this drive should be capable of being used for bipolar as well as universal stepper motors.

Posted by arjunv8 4 years ago  |  last reply 4 years ago


Stepper motors for Prusa mendel? Answered

I have these bipolar round stepper motors that i salvaged from old printers . Can I use this stepper motor in the prusa mendel? and will they work fine?  also can i use stepper motors which are like this one.. meaning the round small ones or do i need to use the nema 17 ones?

Asked by SowmenD 4 years ago  |  last reply 4 years ago


Stepper motor controllers

Does anyone know where I can buy some bipolar stepper motor controllers and an H-bridge in one package? Or even better, schematics/pcb layout of a driver board?UPDATE:Does anybody have any experience with the Easy Driver? It seems like a cheap alternatives to some of the other available controllers, but I just want to know if you get what you pay for.

Posted by ongissim 10 years ago  |  last reply 10 years ago


Can a 24V AC stepper motor be run from 12V DC ?

Hi Instructables people,  have been searching for days to find if there any way of running 24V AC bipolar steppe motor from a 12V DC battery without using a DC to AC inverter. Not used stepper motors before so any advice would be greatly appreciated. 

Asked by alscotia 1 year ago  |  last reply 1 year ago


Logic Gate Help Needed Answered

I am building a Binary to Decimal converter and i need help making a flawless AND gate from bipolar-junction transistors. If someone could Send me a link or email me some schematics, I would greatly appreciate it. If you do email the schematics please make sure they are compatible with Eagle. I don't want to use a converter chip because it takes away the fun of the project for me. I have tried all of the common types of AND gate configurations using NPN's (C-fwd B-in E-collect, C-in B-fwd E-Base, Etc.).

Asked by toast5678 6 years ago  |  last reply 6 years ago


Pump control - Uni or Bi polar stepper motor?

I am working on a robot that includes several annular gear pumps. We are using the MZR 2521, manual: (please see section 5.5) http://www.micropump.com/support_documents/manual_mzr-xx21.pdf product page: http://www.micropump.com/product_detail.aspx?ProductID=62 In the description they say that you can run the pump as if it were a stepper motor. This seems like it could be done perfectly with an Arduino, but I was not sure whether to treat it like a Unipolar or Bipolar stepper motor as the setup for each is quite different. Does anyone have any thoughts as to which it might be? Thanks so much.

Asked by Hammock Boy 5 years ago  |  last reply 5 years ago


what resistor to use for transistor base? Doing a touch circuit with 2 transistors

Greetings all, I am doing a touch switch which will be activated when the touch plate is touch, however i do not know why is the resistor used is 100k ohms. As i will be using another surface mounted transistor, how do i know what value of resistor to use? i have found a transistor base resistor calculator online: http://kaizerpowerelectronics.dk/calculators/transistor-base-resistor-calculator/ i will be using the FZT651TA, NPN Bipolar Transistor for the circuit.   Datasheet:  http://docs-asia.electrocomponents.com/webdocs/0026/0900766b800261a4.pdf Can somebody tell me what resistor to use for this transistor? Thanks in advance

Asked by ashbite1 5 years ago  |  last reply 5 years ago


how to toggle two LEDS with transistors? Answered

For my electronics class, we had to program an arduino and build a simple circuit. I opted for a traffic light that switches its lights when a bathroom is being occupied. For the real project I used a bipolar relay switch, which I can toggle with just one output from the arduino. This system is now built in in my local coffeeshop. The thing is, I have to do an assessment about this project, and  it is not possible for me to use the original system, and I don't have a relay laying around. I do however have multiple transistors. Since these are electronic switches, just like relays, it seems possible to me to use these to turn one LED on and the other off and vice versa, with only one signal. I can't come up with the proper schematic for this.. can anybody help me?

Asked by bobiebob 5 years ago  |  last reply 11 months ago


I need help explaining the shape of this nebula Answered

Http://www.esa.int/spaceinimages/Images/2014/10/Butterfly_death_throes This image is the "Butterfly Nebula". I'm having trouble understanding it's shape. According to the accompanying blurb, the shape indicates a "bipolar nebular, where fast-moving gas can escape more easily from the poles of the dying star than around its equator. This creates a lobed structure reminiscent of an hourglass, or, as in this case, a giant butterfly." But... why? Why can the gases escape more easily from the poles?  Why is it harder to escape at the equator? Surely, if it was blasting from the poles, we would see a more linear shape, long "beams" of material shooting out of each end?  This image looks to me as if material blasted away from the equator, but parallel to the poles, almost as if the two halves of the star's surface were peeled apart, like turning half an orange skin inside out. Anybody got a borderline high-school/university level explanation for the shape?

Asked by Kiteman 4 years ago  |  last reply 4 years ago


Stepper motor vibration/lockup with driver? Answered

I am trying to get a stepper motor to turn using a StepStick driver from Botronicz. I have gotten the driver to work once before, but now it has decided not to work. I have wired my stepper motor (Model STP-42D3018) according to any specs I can find online in a bipolar connection, but when I fire it up the stepper only sits there and vibrates. Or misses steps (depending on voltage). A few other times I had it also where it would step one direction for I think a single step and then step back the other direction. It is really bothering me because I have tried multiple other wiring combinations and have not gotten any of those to work. My current setup is exactly like this (I have checked numerous times). I have also tried changing the vmot supply voltage and current limit, as well as the current limiter pot on the board itself. If anyone can help it would be greatly appreciated! Sincerely,  A907

Asked by astroboy907 5 years ago  |  last reply 5 years ago


Which Stepper motor and which controller?

Hello, Still in research mode for my own CNC machine which will be Arduino based. But, as everyone is using different motors and controllers (drivers?), how do I choose the right one for me? My machine should be able to do soft materials like wood and plexi/acrylic but I als want to be able do mill/cut aluminum, as I am restoring an old car and parts are not easy to get hold off. For my board I was thinking of an Arduino UNO (like most) but then, which motor to go for? Uni or bipolar? 17, 23, 34? And which driver? gShield / CNC Shield V3 / Dual step driver? A4988? 1 board per motor or can I combine them? How to get a smoother run then 1/8 steps? (Found CNC Shield V3.0 + UNO R3 + 4pcs A4988 Driver for £15???) I have never soldered anything, but I am a fast learner. So far when it comes to electronics, I managed to hardwire a stereo without harness into my car, speakers, radiator fan circuit and some door controlled LED's. Far away from soldering of building a CNC, but I am up for the challenge. I know there are a lot of questions in this post, but I appreciate any explanation why someone chose one motor over the other etc.... Any information is highly appreciated. I rather research more then building something and then have to start over again. Kind regards, Red

Posted by redmarien 1 year ago  |  last reply 1 year ago


arduino wiring ( Help me please ) ? Answered

*Note : Thats not my own device , im copying it and this device copyrights still for ardumotive_com < other meaning im not stealing cuz i mentioned that .. Hi instructables !! My name is Yousif , I'm a 16 Y/O arduino lover .. well .. i've been watching this guide about ( CnC plotter device ) , and thanks to ardumotive_com https://www.instructables.com/id/Mini-CNC-Plotter-A... ,, TBH I'm not a perfect arduino programmer , i know a lot of things but it could never be enough about arduino .. So im making the same device . Here I'm trying to make my own changes to the devices .. I almost completed the device , then i stopped making it cuz i have some trouble that stops me .. those are the changes that im gonna make and i need some hlep with'em :- i've changed the motors to 2.3Kg*cm Bipolar stepper motor .. http://www.zeroohm.ae/Actuators/Stepper-Motors/Ste... . The motor driver : Ardumotive_com used a L293D motor driver to control both of the motors , the question is : can i use it with this new motors ( look above ) ? , gonna need for an external power source with a new board ? , and how could i connect it to this chip without destroying the chip .. I'm gonna change the pen to a dramel with extender ( avoiding high weight and size ) , so i decided to use this tool .. https://www.desertcart.ae/products/1321441-dremel-... . I already have a lab power supplay with two wires( i mean red and black wires at the top , with adjustable voltage ( 12,14,16,18,20 ) ( thats all what i have ) .. how can i use it with the L293D chip ? At the end i could never do it without ardumotive_com , and please somenoe help me cuz i have less than a week to do it .. if u wanted anything about my device , u already can visit this link https://www.instructables.com/id/Mini-CNC-Plotter-A... , becuase i almost used the same .. and thanks !! , gonna be waiting !

Asked by yousifhobelos 3 years ago  |  last reply 3 years ago


Arduino motor shield, do the shields not use the same stepper motor sketches or commands? Answered

Ok, I have an arduino uno and arduino motorshield. My stepper is a 1.8 degree 75 ohm motor, i can get it to run in one direction, or the other, but what I'm having trouble with is the code really, all the examples Ive been messing with don't seem compatible with the shield, all i want to do is make the stepper go one direction for "x" amount of steps then reverse the same number back, at a set rpm/speed, however when i try to give it step commands it does nothing, seems like i have to use the digital pins to control speed. but that's not exactly working for me. I'm sure this is an easy code for anyone who has used an arduino , but Ive only had this for 4 days and spent the last 2 researching and learning code, I'm getting frustrated. I thought getting the motor shield would make this easier...but it seems to over complicate, maybe not .maybe Ive just over analyzed this. if anyone has a code or recommendation for the arduino motor shield it would be greatly appreciated. here is an example of something similar to what im trying to do, but im trying to get it to work on an arduino motor shield.(example from Tom Igoe) /* Stepper Motor Controller language: Wiring/Arduino This program drives a unipolar or bipolar stepper motor. The motor is attached to digital pins 8 and 9 of the Arduino.  //motor shield pins 8,9 are the motor brake, use other pins or is this //correct? The motor moves 100 steps in one direction, then 100 in the other. Created 11 Mar. 2007 Modified 7 Apr. 2007 by Tom Igoe */ // define the pins that the motor is attached to. You can use // any digital I/O pins. #include #define motorSteps 200     // change this depending on the number of steps                            // per revolution of your motor #define motorPin1 8 #define motorPin2 9 #define ledPin 13 // initialize of the Stepper library: Stepper myStepper(motorSteps, motorPin1,motorPin2); void setup() {   // set the motor speed at 60 RPMS:   myStepper.setSpeed(60);   // Initialize the Serial port:   Serial.begin(9600);   // set up the LED pin:   pinMode(ledPin, OUTPUT);   // blink the LED:   blink(3); } void loop() {   // Step forward 100 steps:   Serial.println("Forward");   myStepper.step(100);   delay(500);   // Step backward 100 steps:   Serial.println("Backward");   myStepper.step(-100);   delay(500); } // Blink the reset LED: void blink(int howManyTimes) {   int i;   for (i=0; i< howManyTimes; i++) {     digitalWrite(ledPin, HIGH);     delay(200);     digitalWrite(ledPin, LOW);     delay(200);   } }

Asked by thedanger 6 years ago  |  last reply 6 years ago


(Arduino) automated macro-photography rail

Hi everyone, I would like to build an Arduino automated macro-photography rail (let's call it AAMR). I'm a decent software engineer and I want to learn electronics, so I'm looking for someone telling me I'm going in the right direction... The idea sounds simple, I want to : 1/ place the subject on the AAMR 2/ input the # of pictures needed to perform a "focus stacking" (https://en.wikipedia.org/?title=Focus_stacking) 3/ push the start button and make the AAMR loop n times through the following steps : - trigger the camera to take a picture of the subject - move the subject 1 millimetre toward the camera After a couple weeks reading and day-dreaming, here are my thoughts. I need : - to read more :) - a steeper motor and its driver (I own bipolar steppers and L298 / L293 IC) - to trigger the camera (Canon EOS 70d : remote cable is quite easy to make) - a potentiometer and 2* 7segment displays (input and display the # of pictures) - a start button - a reset button to make the rail come back at position Zero - two "end of course" buttons (not sure about the English terminology), just in case the motor wants to jump over the board - power (5v for the arduino and the logic, 12v for the motors) I. Arduino ---------- First things first, I plan to use an Arduino Uno during prototyping and replace it by a home made board in the final product. Uno has 14 Digital I/O Pins and 6 Analog Input Pins : - stepper => 6 Digital pins (3 ?? if using http://www.bristolwatch.com/L298N/L298N_arduino.htm) - 7segment led => 3 Digital pins if using shift registers (https://www.instructables.com/id/Different-methods-of-driving-7-Segment-LED-display/step5/null/) - start button => 1 Digital pin - reset button => 1 Digital pin - "end of course" buttons => 2 Digital pins - camera trigger => 1 Digital pin (to drive an opto isolator / solid state relay) - potentiometer => 1 Analog pin 14 Digital pins ! Uno should do the job, am I right ? (I know I could use Analog pins as Digital ones, but it seems I don't need it...) II. PSU ------- Next interrogation is about power supply : I don't want a battery powered device and my options are scarce : - ATX PSU supplies both 5 and 12v, but Arduino seems to like >5v, so ATX doesn't seem a good choice - home made PSU from an existing wall wart -> voltage divider to get ~7v and ~14v -> 7805/7812 voltage regulator (may need heatsinks and/or little fan) If I do the math : - Arduino : 50ma - Stepper motor : 700mA max - L298 : 70mA (quiescent current) - 2* 7Segment LED (multiplexed) : 2 * 80mA (estimated) - Shift registers IC (SN74HC595N) : 1ma (optional : Hex inverter 74LS04 : ?? mA) Total : around 980mA... Am I doing right ? I have tons of questions left (Hex inverter, filter capacitors, motor noise reduction, solid state relays...), but it's a good start :) Sorry for the long post, and thanks in advance for your answers ! D

Posted by djezzz 3 years ago  |  last reply 3 years ago


Problem driving a stepper motor using the A4988 reprap driver board and an Arduino? Answered

Hi guys I am having a problem driving a stepper motor using the A4988 reprap driver board and an Arduino I have set up the wiring using an example I found online (Diagram attached: A4988 wiring) https://www.youtube.com/watch?v=5CmjB4WF5XA.. However the motor does not seem to turn. The motor I am using is from an old Hitachi printer which I took apart a while back. Printed on it is 0.9A/ph. It has six wires however I am using it as a bipolar stepper by just leaving the center tap of each winding unconnected. I have adjusted the VREF on the A4988 board to insure that the current is limited bellow the 0.9A. To do this I used the data sheet of the A4988. As I wanted to run the motor at full step mode, the A4988 data sheet specifies that the winding current could only reach 70 percent of the current limit. consequently: Current limit = 0.9 * 0.7 = 0.63A Current limit = Vref * 2, Therefor Vref = 0.63/2 = 0.315V or 315mV I have therefor set the current limit using the potentiometer on the A4988 to aprox 315mV Once the wiring was set up, I applied power and measured the Vref to confirm it is still the same and it was. Next I disconnected the Power to both the Arduino and the driver and connected in the stepper motor. I then connected the power and uploaded the following code: // defines pins numbers const int stepPin = 3; const int dirPin = 4; void setup() { // Sets the two pins as Outputs pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT); } void loop() { digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction // Makes 200 pulses for making one full cycle rotation for(int x = 0; x < 200; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(5000); // five second delay digitalWrite(dirPin,LOW); //Changes the rotations direction // Makes 400 pulses for making two full cycle rotation for(int x = 0; x < 400; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(5000); } Nothing happened... started off with 5 volts on the power supply and ramped it up to aprox 12vs however still nothing happened. I can feel the heat sink heating up on the A4988 which means power was reaching it. I measured the voltages from the Arduino to the A4988 and the power supply to the driver and the voltages matched the input. I started shaking about the power connections to and suddenly the motor made one step, but that was it. So i thought it was a problem with the breadboard. I checked the connections on the breadboard and all where connected. To be safe i decided to use another breadbord. Again nothing happened. I checked the Aarduino using the 28byj48 and UNL203 driver and stepper that came with it and they worked fine. I confirmed the wiring sequences and layout multiple times and they all matched the tutorial I followed. My inital thinking was that the stepper motor was broken, so i disconnected it and tried running it using the power supple (5V) by connecting and disconnecting each coil in manually one by one, and it turned one step at a time, which meant that the stepper was working. Finally i decided to see if current was reaching the stepper, I therefore connected the Altimeter in series with one of the coils and it did not read any current, which meant that current was not reaching the coils. Now I am unsure what to do, or what has gone wrong. The vref still reads aprox 310 - 320 mV, this makes me assume that driver is not fried. I do have another A4988 driver however I started working on that one and now the Vref does not go above 62mV so I'm guessing that it is burnt, however the second one reads fine. I have tried using the enable button with the following code (Attached; A4988 wiring 2) however it still didnt' make in difference. The following code is what i used for when I set the enabled to low (Note that the pin numbers have been changed) int Index; void setup() { pinMode(4, OUTPUT); //Enable pinMode(2, OUTPUT); //Step pinMode(3, OUTPUT); //Direction digitalWrite(4,LOW); } void loop() { digitalWrite(3,HIGH); for(Index = 0; Index < 2000; Index++) { digitalWrite(2,HIGH); delayMicroseconds(500); digitalWrite(2,LOW); delayMicroseconds(500); } delay(1000); digitalWrite(3,LOW); for(Index = 0; Index < 2000; Index++) { digitalWrite(2,HIGH); delayMicroseconds(500); digitalWrite(2,LOW); delayMicroseconds(500); } delay(1000); } Why did the motors initially step (only one step upon each shake) when I shook the power supply leads? I am afraid to try that again as I think this is what damaged the first driver I was using. And why is there no current reaching the coils? I would really appreciate an opinion on this issue as I have no idea what to do Many thanks for you time. Adnan

Asked by k1228438 1 year ago  |  last reply 1 year ago