0

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:

the datasheet

asked Feb 2, 2016 at 10:54

1 Answer 1

1

Most basic way would be to use only DIR, PWM and Break.

Use Break as enable (put high at begining of the program, put low when you want to start rotation).

Use Dir to change rotation of the motor (usually high is CV, low is CCV, but you need to check the datasheet)

And hook up PWM to PWM pin on arduino. This will control the speed.

answered Feb 2, 2016 at 11:04
5
  • Do i just put the break and dir in any digital port? Commented Feb 2, 2016 at 11:07
  • yes, any output. If you want to monitor thermal and current later on connect those to the input Commented Feb 2, 2016 at 11:24
  • To the analog inputs (A0 to A5 on the uno) Commented Feb 2, 2016 at 11:53
  • @jms they are in use. What do i do with tf and sen? Commented Feb 2, 2016 at 12:35
  • 1
    @Marc Sorry, I was confusing. The TF is just a binary output and can be connected to any IO pin configured as a digital input, but if you want to measure current you do need to connect CSEN to an analog input. You can still drive the motor without connecting TF or CSEN at all, they are optional. Commented Feb 2, 2016 at 12:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.