Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add dual & quadruple H-Bridge contructor #84

Closed
beriberikix opened this Issue · 6 comments

4 participants

@beriberikix

Moving motors with an H-bridge is very popular, especially with simpler/cheaper kits. It is the main solution when a servo or a stepper won't do.

I have the popular SN754410 on my rig but all H-bridges work the same. For one motor, you'll have a dual H-bridge that has a clockwise, counter clockwise and optional brake signal. A quad just lets you control 2 motors.

I'm planning on copying the style of motor.js. How does that sound?

@divanvisagie
Collaborator

Ive hacked up something related here for this controller: http://www.dfrobot.com/wiki/index.php/MD1.3_2A_Dual_Motor_Controller_(SKU:_DRI0002).

Thats the only time Ive actually used motors with johnny-five so I cant say if there is support for this kind of stuff lying anywhere else.

@rwaldron
Owner

@divanvisagie take a look at this: #216 . I'm going to test this patch a bunch today so that we can start adding motor "device" entries—let me know your thoughts :)

@divanvisagie
Collaborator

Looks like It could work , will start testing with my controller once the patch is merged and see if it supports H-Bridge out the box.

@beriberikix

I put together my own hbdrige.js too. I'll probably refactor it to require motor.js and support a configurable amount of motors for implementations, like the wild thumper.

@rwaldron awesome, I agree on the "devices" field. I still would like to see a configurable number of motors.

@dtex
Collaborator

I think this is covered by #367 and can be closed.

@rwaldron
Owner

Let's close and if there are issues, we can always re-open

@dtex dtex closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.