Questions tagged [h-bridge]

A circuit which allows voltage to be applied in either direction across a load. A common application is switching the drive direction of a motor.

Filter by
Sorted by
Tagged with
7 votes
1 answer
5k views

Two batteries sharing ground?

I need to power my arduino and 2 DC motors requiring 6V each, I want to power the DC motors with a 6V battery through the vM pin on an h-bridge and use a 9V battery to power the Arduino itself. On my ...
Kartashuvit's user avatar
2 votes
2 answers
7k views

L298N Dual Motor Controller Enable Pin has power but motors not working

I am trying to get the L298N to work with a simple DC motor. For now, I have simplified the setup and the code to the basics to try to get it to work. I am using the following wiring setup with no ...
LonelyLodge's user avatar
2 votes
3 answers
561 views

How can I alter my program to read PWM signals from Arduino Mega?

I am new to programming and Arduinos but I've decided to give a go for a project. I'm after a code that will read PWM signals from a RC receiver (Specifically aileron and throttle) and output this as ...
sacred230's user avatar
2 votes
1 answer
2k views

How can I connect H-Bridge motor driver (using four 2n222 transistors) to Arduino? [closed]

First of all I'm a noob. I was trying to do the H-Bridge using 2N2222 controlled by an Arduino Uno. This is the design---> I joined A1 and A2 to form a common terminal (say A), similarly, I joined ...
Shivam Kumar's user avatar
2 votes
0 answers
51 views

Can 2 H-Brides be controlled by one Arduino?

The three motors are from windshield wipers, with one of the brushes disconnected in each. The controllers are BTS7960 43A modules One Bridge for two drive motors (speed and direction), and the ...
etorobot's user avatar
2 votes
0 answers
45 views

Bridge */arduino/analog/2 returns a blank page

Had some start up difficulties. But updated the YUN and IDE to the latest version. Using * "/arduino/digital/13/1" works as supposed (turns on the LED) - it's just a bit slow. But I can't see why ...
Norfeldt's user avatar
  • 121
1 vote
2 answers
424 views

maximum interrupt-based PWM frequency at 500 Hz

I need to control a 24 kHz ultrasonic transducer and decided to use an arduino uno I have lying around. Using tone() or the atmega's hardware pwm is not very suitable because I need two 50/50 square ...
Sim Son's user avatar
  • 1,859
1 vote
4 answers
8k views

Arduino Driver can I use only PNP?

is it possible to use a normal PNP transistor to drive a motor? I'm kinda new to this stuff so I want to be on the safe side, so I don't damage my Arduino Uno because of the motor. I have made a ...
TheEp1x1's user avatar
1 vote
2 answers
5k views

Varying motor speed with the L293D

Im using a potentiometer to control the speed of two generic 6-8V DC motors. The potentiometer input is scaled from 0-1023 to 0-255, I then use the analogWrite() function to write this value to the ...
Chris Collins's user avatar
1 vote
1 answer
395 views

Connecting Seeeduino XIAO 3.3 V out to dual H-bridge driver module (L298N) with TTL compatible inputs

The H-bridge module uses TTL compatible logic, but the chip allows these values (based on the L298N data sheet): Symbol Parameter Min. Max. ViL Input Low Voltage (pin 5, 7, 10, and 12) -0.3 V 1.5 V ...
MeSo2's user avatar
  • 177
1 vote
2 answers
4k views

How to connect an L293D and an MPU6050 to run together?

I'm wondering how to connect the L293D (H-bridge) and an MPU 6050. I'm using 1 Arduino Uno, 2 DC motors, 1 MPU6050 and an L293D. When I tried this, I got some sparks/smoke from the breadboard and ...
Marc's user avatar
  • 77
1 vote
1 answer
2k views

DC motor kickback diode?

I have the following circuit: And I know it works and that the diode protects the negative voltage from flowing back into the transistor. This is essentially the circuit: Could someone illustrate ...
stenlan's user avatar
  • 113
1 vote
1 answer
330 views

What are the Vs and Vss pins on an L293D chip for?

I made a simple test circuit to help me understand the L293D H-bridge that comes with the Arduino starter kit. Digital output pins of the Arduino are wired to the input pins on the H-bridge. Arduino ...
Jack M's user avatar
  • 123
1 vote
1 answer
285 views

Arduino H-bridge for rc car

I've got an old rc car laying around, of which i would like to swap the insides, but re-use some of the parts that are already in there. The car runs 2 dc motors: one for steering, one for throttle. ...
Koen Van Den Elsen's user avatar
1 vote
1 answer
70 views

How To Activate H-Bridge?

My understanding of the H-bridge is, that activating in1 or in2 will direct the 12V current to the motor, so it either spins right/left. Not that in1 or in2 is the actual current passing through to ...
GeorgeWTrump's user avatar
1 vote
2 answers
656 views

DC motor with L289N driver cannot set RPM lower than 130

My setup is using an Uno r3, and the motor driver is an L289N. I am going to set it to run at a lower RPM, but when adjusting enA or enB to set to below 130, it won't spin. // connect motor ...
Hamman's user avatar
  • 11
1 vote
2 answers
525 views

motor hard stop vs coasting

I'm using this motor driver with 2 of these motors to control a skid steer robot. To get the robot to coast to a stop, I use this code: analogWrite(MotLPWM, 0); //coast to stop analogWrite(...
Daniel Shields's user avatar
1 vote
1 answer
345 views

Using L298N to control DC Motor

I am developing a system where I want to control the direction of the DC motor (12V) from Arduino Mega/Uno. For that, I am using L298N H-bridge chip without the board as shown below. My question is,...
coding4fun's user avatar
1 vote
1 answer
837 views

External access to Yun - request not recognised as HTML

I am trying to access my Yun externally. My router recognises traffic on Port XXXXX and forwards it to my Arduino Yun. I have the below code working internally and now trying to adapt this to work ...
DanAbdn's user avatar
  • 161
1 vote
0 answers
25 views

DC Motor Shuddering

I am testing my BTS7960 Module with my UNO for bi-directional rotation of DC Motor. I am using a small DC motor as a test (like the one here) and I am powering the UNO via USB cable. The problem is ...
Khuzaim Khan's user avatar
0 votes
1 answer
210 views

Arduino powered car not running when touching ground

I hacked a cheap car I connected both motors to L298N Dual H-Bridge Motor Controller and all things are working good. Motors are running fast. But when I put the car on the ground to run. It runs so ...
Saim's user avatar
  • 3
0 votes
1 answer
60 views

H Bridge for microcontroller power management?

Is it fine to use L298 N Dual H Bridge Stepper Motor Driver Module to control power of other ICs in a multiple microcontroller setup? I intend to reduce power consumption in by powering communication ...
user259819's user avatar
0 votes
3 answers
499 views

How to tri-state an output circuit?

I need a circuit where an Arduino MCU can set an output to 3 different states. HIGH (12V) LOW (GND) N/A (completely disconnected) Using transistors seems to be the correct way but I am too much of a ...
user2965339's user avatar
0 votes
1 answer
684 views

Making an H-bridge with transistors [closed]

I am trying to make an H-bridge with two NPN and two PNP transistors to drive a motor which works fine on the 5 V Arduino. I have a schematic in the picture. When I use a simple code to have pin 9 ...
jan's user avatar
  • 19
0 votes
3 answers
841 views

How to properly reverse DC motor direction with 2 limit switchws

Hello i am trying to reverse a dc motor direction upon hitting either limit switch. but noting is working can some one point me in right direction. all example i find use stepper motors and step count....
Daniel Frausto's user avatar
0 votes
1 answer
266 views

Switching a dual h bridge in parallel

I'm using a dual h bridge to control two dc motors on an inverted pendulum (cart-pole system). At the moment, I have to send two different pulse width modulated signals to the two enable pins to ...
Paul's user avatar
  • 361
0 votes
2 answers
191 views

How do I create a state machine for my purpose?

I am new to Arduino. I have a motor which drives a sliding door back and forth. The motor is connected to an H bridge which has two control pins (direction, speed). I have a switch which is intended ...
Marcus's user avatar
  • 1
0 votes
1 answer
446 views

Multiple power supply for arduino controlled dc motor

I’m working on a project where I want to control a motorized fader with an arduino. I have a dual H-Bridge board to control the motor, but the thing is that it is a 10V motor. I’m thinking of using ...
BadgerBadger's user avatar
0 votes
1 answer
294 views

sending 16 bit command via SPI to a NCV7719 (half bridge)

I am trying to send a 16 bit command to a Half bridge (data sheet here http://www.onsemi.com/pub/Collateral/NCV7719-D.PDF) to open one of the transistors to turn on an LED. at the bottom of the data ...
Brit 's user avatar
  • 41
0 votes
1 answer
4k views

How to wire an LMD18200 and an arduino?

Ive been working with a motor project for a while and i bought this H-bridge(LMD18200). I dont understand how im supposed to connect it to the arduino. Here is the datasheet for the lmd18200:
Marc's user avatar
  • 77
0 votes
1 answer
1k views

Problems with L293D

The motor are not rotating in the above circuit . Or rather the Voltage between the two Motor Terminal is zero. I have checked the Pin 10 & 11 and Pin 12 & 13. They are fine and produces ...
sedflix's user avatar
  • 109
0 votes
0 answers
241 views

How can I get a holding torque on dc motor if I am using an H-bridge?

I am trying to build a robotic arm and also using a lot of metal in it, now the real challenge for me have arrised at first I was using tower pro mg995 but that servo is worse than scrap. So I ditched ...
Ritesh Sharma's user avatar
0 votes
0 answers
32 views

How to control 2 micro magnetic actuators with esp12e

i want to control two micro magnetic actuators (just two coil where I want to flow current in +to- and-to+ each motor for wifi airplane) with esp12e Do I need an h-bridge like l293d ? Also I will be ...
Anmol Kumar's user avatar
-1 votes
1 answer
44 views

Arduino works indefinitely without PC contact [closed]

I'm studying H-Bridge for DC motors. I have a 9V battery, DC motor (9v), Arduino Nano and L293D. I'm following Jeremy Bloom's book about Arduino. Well, the system works perfectly with a PC connected. ...
uckorka's user avatar
-1 votes
1 answer
66 views

Touch-screen, 3 H-bridges and 3 sensors on Arduino Nano 3.0

I am using an Arduino Nanao andI am wondering if there is a way to connect an 2 inch touchscreen, 3 H-bridges (it takes 3digital pins to power one of them and 1 additional to control the voltage) and ...
user29519's user avatar