element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
Forum needing help to connect a 2-pin rc-car steering motor to an adafruit pwm i2c controller
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 15 replies
  • Subscribers 179 subscribers
  • Views 2658 views
  • Users 0 members are here
  • raspberry pi i2c
  • servo motor
  • i2c
  • how to i2c
  • pwm
  • raspberry pi io
  • servo
  • pwm controller
Related

needing help to connect a 2-pin rc-car steering motor to an adafruit pwm i2c controller

tlucas756
tlucas756 over 7 years ago

So I saw a neat project on a magazine about controlling an rc-car wirelessly through a raspberry pi, using pwm.

I ordered everything I needed, mainly an i2c controller, and I started working on it. i am using a clone of the adafruit controller instead of a real one, because it was a lot cheaper, though the functionality remains the same.

Now, I have a problem. The article says that I need to connect the steering motor to the 3 pins on the adafruit controller, which are labeled power, ground, and PWM, but my motor only has two wires, so I have no idea what they do, or what to do next.

I do not have another rc-car to do this on. How do I connect the motor to the controller? do I need to get a different motor?

Thank you for your help!

image

imageimageimage

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave over 7 years ago +3
    Not sure from the photo if your steering is actually a DC motor or a spring loaded solenoid. Does the steering spring back to centre if the wheels are pushed and let go ? You will also likely have problems…
  • dougw
    dougw over 7 years ago +3
    As Dave indicates a DC motor would need an H-Bridge to reverse polarity. The micro servo might work as a demo but may have problems in actual use. You need to check if the torque is enough, the speed is…
  • ninjatrent
    ninjatrent over 7 years ago +3
    The L293D h bridge will drive this type of motor. It is a very low cost part (US $2). The PCA9685 is for use with servos although as mentioned a circuit can be created. The cheapest and easiest option…
Parents
  • beacon_dave
    beacon_dave over 7 years ago

    Not sure from the photo if your steering is actually a DC motor or a spring loaded solenoid. Does the steering spring back to centre if the wheels are pushed and let go ?

     

    You will also likely have problems with your speed motor as the way you have shown it connected it will result in 'max speed' in one direction.

     

    It looks like you may need a different controller or add a dual H-bridge motor driver to your PWM controller.

     

    The existing Adafruit controller is designed for controlling servo motors or dimming LED's using a PWM signal.

     

     

    You can use the PWM output however to drive the enable pin on an H-bridge driver like the L293D which will give you motor speed control and then use four GPIO pins to control the direction of each motor independently for forward/reverse and left/right

     

    https://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor/lm293d

    https://learn.adafruit.com/adafruit-arduino-lesson-15-dc-motor-reversing/an-experiment

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • tlucas756
    tlucas756 over 7 years ago in reply to beacon_dave

    Thank ypu for responding!

     

    the motor might be a DC motor, because it does not spring back when I push the wheels.

     

    Also, I have to find a quick solution to this, as I have to show this to my electronics teacher next week, and I can't get any new components in time.

     

     

    Also, I still have the original controller chip that came with the car when it was new - It's a Realtek RX2C A5081 35T, but in order to make my project work, I can't add that chip in.

    What I was thinking was to get one of those cheap arduino servos (that have 3 pins) and replace the one in my rc-car, though I'm not sure if that would work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tlucas756
    tlucas756 over 7 years ago in reply to tlucas756

    one of these:    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • tlucas756
    tlucas756 over 7 years ago in reply to tlucas756

    one of these:    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • beacon_dave
    beacon_dave over 7 years ago in reply to tlucas756

    Yes, that should work with the Adafruit PWM servo controller.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube