Jump to content

Recommended Posts

Posted

Hello!

I tried searching this and did not see what I was looking for.  I wanted to know if anyone had started controlling the PoweredUp train motors using an Arduino and a motor controller similar to how the Arduino controls the Power Function motors in these tutorials:

https://arduinolegotrains.wordpress.com/

I see stuff where people are using Arduino libraries but still using the PoweredUp battery box and using Bluetooth for commands, but that isn't what I wanted to do.  Can someone point me to a thread where this has been figured out?  

Apologies if my search skills weren't good enough to find this.  The threads coming up when searching Arduino and poweredup didn't seem to have the info I was looking for.

Jesse

Posted

You could connect the outputs of the motor driver to pins 1 & 2 on the PU train motor cable.  You don't need to connect pins 3-6 since you don't have to ID the PU device to your motor driver (nor do your motor driver care).

l298n.jpg

Posted

Awesome!  That was what I needed! (I'm not an electrical guy so that side of things always leaves me confused, but I understand that programming side).

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...