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 & Tria 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
Smarter Life
  • Challenges & Projects
  • Design Challenges
  • Smarter Life
  • More
  • Cancel
Smarter Life
Blog A Very Compact Christmas Display - Part 022
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 28 Nov 2013 7:43 PM Date Created
  • Views 381 views
  • Likes 0 likes
  • Comments 1 comment
  • psoc4
  • psoc_4
  • smarter_life_challenge
  • psoc_4200
  • compact_xmas_display
  • smarter_life
  • psoc
Related
Recommended

A Very Compact Christmas Display - Part 022

COMPACT
COMPACT
28 Nov 2013

The only good bug is a dead bug

image

 

Many Christmas Displays have animated figures.

I've put this test rig together to test out this project option. I've already demonstrated a PSoC 4 driving servo motors but servo motors are not always the desired option.

This time I've performed a quick test of getting an H bridge working with a PSoC 4.

 

I've used my PmodHB3. It contains an H-Bridge Driver for a single motor rated from 5-12V @ 2A.

I just used a plastic robot base and one of its toy motor connected to 3.3V which seemed to work

 

image

 

The schematic can't be simpler.

All it needs is two digital level output pins - Enable and Direction.

The Direction pin is used control them motor rotation direction which is either CW or CCW.

The Enable Pin is used to turn the motor on and off.

The Enable Pin can be pulse width modulated (PWM) to provide slower speeds (and subsequently lower torque output).

 

All an H-bridge really does is enable current to flow through a motor in either direction using four transistors under logic control.

Some circuits such as the PmodHB3 has some additional hardware logic gates to ensure that only valid combinations of the transistors are turned on.

The last thing one wants when using an H-bridge is to use the two wrong combinations as this creates an unwanted dead short circuit that bypasses the motor.


Unlike a servo motor there is no idea of the motor's current position.

If the motor's position is required then additional sensors are added.

 

image

The code to drive the motor couldn't be simpler either.

All that is required is to set the input pins to the desired state.

  • Sign in to reply
  • DAB
    DAB over 11 years ago

    Hi Monte,

     

    As you say, motor drive with the PSOC is a very simple program as long as you have the write hardware connected.

     

    A good H-bridge circuit is a easy as it gets.

     

    DAB


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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