Search for L298 in Topics

Stepper Motor and an L298 Module? Answered

Hello, I bought those items: L298 Module Kit, PIC16F877A + KIT, a stepper motor my friend found in an old printer (with four wires (2 coils)), and the pic programmer. I am lost trying to find out how to wire this thing. Can someone tell me how to connect the L298 Module with the Pic kit and the basics of how to program it (not code just the concept). I already connected the stepper motor to the coil pins of the module. Thanks

Question by Seifpic    |  last reply

how do I connect the Wemos D1 r2 to an L298n motor driver to control 2 DC mootors?

Hi , I'm new and I'm looking for help to see how we can wire a Wemos d1 r2 and L298n motor driver. My objective is to control 2 DC motors with Blynk. I will really appreciate anyone's answer or sketch or link to help me out. thanks

Question by huguens    |  last reply

Stepper motor

I have a small size sanyo denki 103 series stepper motor. I wanted to use it using L298 driver. What will be the connections  

Question by UsmanR1    |  last reply

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

Question by mnaveed    |  last reply

I want to control 3A Stepper motor so i got this driver (L298 Moudule "Dual H-bridge motor driver using L298" )? Answered

I have got the circuit connection but i do not know if it will support this much current at max load  and i am not sure which input to control and what is the given output , i have to use this as t is the only driver available to support this much current; 

Question by nobykobe    |  last reply

Using an Arduino's PWM to control a DC motor hooked up to a SainSmart L298N board?

Hi Instructables! I am new to making electronics, completely. So please let me know if I am doing anything wrong. I am working on making a UGV rover based on an Arduino UNO R3 and accompanied by a SainSmart L298N Module (to drive 2 DC motors). I am capable of getting the DC motor to work in either direction but don't know how to control its speed. pins 5 and 6 are either high or low (always opposite) to control direction, pin 11 enables the motor. The board is powered by the Arduino's 5v power supply. Here is my setup (it's just really basic so far): void setup(){   pinMode(11, OUTPUT);   pinMode(5, OUTPUT);   pinMode(6, OUTPUT); } void loop(){   digitalWrite(11, HIGH);   digitalWrite(5, LOW);   digitalWrite(6, HIGH); } If someone could show me how to control motor speed using this setup it would be very helpful. Thanks!

Question by Knight67    |  last reply

IR Cake.

Hello, Some friends asked my wife to do a birthday cake for a girl of eight years. With her ‹age she is crazy about princesses. Well, what came to mind was that despite having done many projects with Arduino i had never applied electronics in a cake. So we decided to join forces and add some light (RGB LED) and movement (DC motor controlled with an L298) to the cake. Here is the link to the video:;

Topic by pmartins4    |  last reply

i need help with this components?

How can i get this component?. Intel Edison L298 Motor Driver

Question by yungdavz    |  last reply

controlling coil using H-bridge...possible? Answered

Hi! Yesterday I bought a Nikko X-pander r/c car, for only $ 3, and I want to put my own electronics on it. I've seen that the front wheels are controlled by some sort of electromagnet that changes polarity to turn the wheels left or right. I already made my own homemade L298 module and I want to know if it's possible to use one channel of L298 driver to change the angle of the front wheels. Thanks.

Question by Timofte Andrei    |  last reply

Where can i buy components in UAE (not online)?

I want to buy some resistor capacitors and some ics anybody has some ideas??

Question by TheGreatResistor  

motor driver circuit board?

Hi, i am just trying to build a motor driver circuit board (ardiuno sheild) like that are posted on the front  web site of "society  of robots" by using integrate circuit (L298). does any body knows where i can get that kind of design?

Question by dan12    |  last reply

Arduino help

I want to run 2 stepper motors with arduino uno.motor wants 12 volt supply. i tried to run with arduino stepper motor driver wont run. then with ULN2003 it was running now it is not running with it in proper steps. i tried L298 also but same problem is plz help me as soon as possible

Question by tejaspatel811    |  last reply

What do I need to perform speed control of a 100W 12V DC motor using an Arduino?

I am planning to use PID control using an Arduino's PWM abilties. I have a 100W 12V DC brushed gearedmotor. I want to maintain speed at 40RPM with variable load. Can I use for instance normal L298 H-bridge circuitry or do I need relay circuitry that can handle the amperage? Any input would be appreciated.

Question by StefanNel    |  last reply

Can I limit the voltage to a motor using PWM?

Hi, I am trying to build a robot with a dual motors controlled by a l298 chip and PWM. I have some really nice 9.6V NiMh battery packs that I would like to use. The problem is that the motors need 3-5v. Could I just use PWM to control the voltage of the motors by working out what duty cycle would give me the correct voltage and then supplying that to the motors? Would I need a capacitor to smooth out the voltage and reduce noise? Thanks, David.

Question by David97    |  last reply

Code writting?

I'm trying to build a line follower robot and I don't know the first thing about writing code.  I like to play with electronics but have never attempted building anything that requiered programing so I thought I would start simple.  I have an Arduino Uno R3, Pololu QTR-8 (only using 6 of the sensors) and an Ardumoto Motor Shield based on L298 H-bridge logic (not even sure what that means) Are there examples of codes existing on how to connect three componetns together?  What do I need to do next in order to connect these three parts and imput a code so it will smothly follow back tape on a white surface?

Question by bowhunter616    |  last reply

(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" ( 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 - 7segment led => 3 Digital pins if using shift registers ( - 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

Topic by djezzz    |  last reply

Steppers and EMF.? Answered

I have build this Bi-Polar stepper circuit and it works great on the bread board. I etch a board 3 times, 2 with heat transfer and 1 with photo resist. I use 2 completely separate power supplies but with the PCB's i think i am experiencing EMF or feed back. I am using an adjustable schmidt trigger for the clock. What happens is i can hardly get any rpm's, sometimes if the trigger is set just wright it will turn up fairly well, at that time if i try full step the stepper stops turning or will reverse sometimes, if i try ccw it may or may nor reverse and i may stay in what ever direction and any given time . Now at a slow rpm full step normally work's and cw/ccw may or may not work, also it can trigger the half or full step. Also i can disconnect one coil and the stepper will continue to turn, If i try that with the other coil the stepper will stop. So it looks like it is only running on one coil. Is that possible? Keep in mind i have bread boarded it and work's fine. Its just on the 3 pcb's that all this happens. As for the diodes it seams to work better with 1N4001's than 1N4148's I have checked every trace with an DMM and made sure they are going to the correct pins ect. I have tried different IC's L297 and L298 and steppers 2 different kinds and multiples of each. So i am thinking this is EMF, feedback, or a design problem. I have tried to eliminate most every thing i can think of. Comments?     

Question by WWC    |  last reply

Dual H-Bridge Motor Driver - L298N not given enough power to motors

Hi there, am very new to the electronics community, I recent bought my first arduino. I wanted to build me own RC car, so I bought Dual H-Bridge Motor Driver L298N Module from ebay (;=item3a8223049b) I think I have connected everything correctly but somehow the 2 dc motors connected to the motor driver don't seem to move, I have tried a 9v battery to power the motor shield but doesn't seem to do anything. I  used this diagram do the connection to the arduino The arduino itself has it own 9v battery powering it. I have checked both motors and they work fine. when i switch on the rc car the led on the motor shield blinks but the motors just don't move. I used a digital multimeter to measure the voltage going into the motor. it goes upto 0.36v  then drops. does that mean there isn't enough voltage going into the motors? and how much voltage do you recommend to get it working? Images of the rc car The code am running on the arduino //motor A int dir1PinA = 2; int dir2PinA = 3; int speedPinA = 9; //motor B int dir1PinB = 4; int dir2PinB = 5; int speedPinB = 10; unsigned long time; int speed; int dir; void setup(){   pinMode(dir1PinA,OUTPUT); pinMode(dir2PinA,OUTPUT); pinMode(speedPinA,OUTPUT); pinMode(dir1PinB,OUTPUT); pinMode(dir2PinB,OUTPUT); pinMode(speedPinB,OUTPUT); time = millis(); speed = 0; dir = 1; } void loop(){     analogWrite(speedPinA, speed);   analogWrite(speedPinB,255 - speed);     //set direction   if(1 == dir){     digitalWrite(dir1PinA, LOW);     digitalWrite(dir2PinA, HIGH);     digitalWrite(dir1PinB, HIGH);     digitalWrite(dir2PinB, LOW);   }else{     digitalWrite(dir1PinA, HIGH);     digitalWrite(dir2PinA, LOW);     digitalWrite(dir1PinB, LOW);     digitalWrite(dir2PinB, HIGH);   }     if(millis() - time > 5000){     time = millis();     speed += 20;     if(speed > 255){       speed = 0;     }     if(1 == dir){       dir = 0;     }else{       dir = 1;     }   }   }

Topic by Raphael1    |  last reply