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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Electrical Engineering Please - My robot needs a loving touch
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: alanmcdonley
  • Date Created: 14 Jun 2016 2:07 PM Date Created
  • Views 551 views
  • Likes 3 likes
  • Comments 2 comments
Related
Recommended

Electrical Engineering Please - My robot needs a loving touch

alanmcdonley
alanmcdonley
14 Jun 2016

My robot is "looking for love in all the wrong places" (occasionally).

I need to find an electrical engineer to love him for some very brief moments.

( *Spikes* his hair just thinking about it. )

 

Some of the design parameters of my 16 year old Rug Warrior Pro robot, (that I am doing a brain transplant on), were:

  • small size (8" dia. 5" high)
  • 7.2v 5000mAh (6 * 1.2v) C-Cell power
  • full skirt for bump detection and protection

 

(The robot was an MIT robotics lab design at the time - over 300 non-MIT people built this little guy.)

 

I have replaced the prior single robot board HC6811 processor, interface hardware, and sensors with:

 

  • Raspberry Pi (B+ at the moment, soon with the element14 Road Test sponsored Pi 3B)
  • Mikronauts Pi Droid Alpha interface kit board (16 digital I/O,  8 ADC, 8 Servo, Dual H-Bridge Motor driver)
  • Pi Camera, HC-SR04 Ultrasonic ranger, ACS712 5A current sensor,
  • Pololu 5v 2A step-up/step-down switching voltage regulator (model S18V20F5)

 

The Mikronauts Pi Droid Alpha card is really feature filled and well thought out.  (It is a simple kit for accomplished builders.)

 

Power Bus:

  • Raspberry Pi  is running on the regulated 5v naturally: 4.75-5.25v spec.
  • Motors use unregulated full supply direct from the batteries: 3-8v spec .
  • Servos are running on the unregulated 4-cell tap: 3-7.2v spec. - (4-cell tap supplies 3.6 to 6v unregulated)
  • HC-SR04 is running powered from the regulated 5v supply (that the Pi uses): "5v"  spec

 

Normal running parameters:

  • Idle: 270mA total draw (servos quiescent, HC-SR04 and camera off, motors stopped, python time.sleep(10) running, no ssh activity over WiFi )
  • HC-SR04:  +10-30mA average
  • SG90 Servos:  (one at a time) +80-330ma with 730-1450ma spikes, (230ma average)
  • Drive Motors: +230-1200mA (330ma average at maximum fwd/bkwd drive levels)

 

Note:  The unregulated 4 cell tap reaches 5.9v when batteries are fully charged (at the end of charging the 6-cell bank)

 

I do not have a scope to help identify if this is noise, back EMF, current draw spikes.  Not sure what else could be going on either.

 

Issues:

  • The HC-SR04 operation causes occasional reboots 

 

Constraints:

  • The HC-SR04 needs regulated 5v so I cannot run it from the servo supply.
  • Single power bank (single recharge connection,  single pole electronic on/off switch)

 

Suggested Remedies:

  • 5v regulated power conditioning (caps? coil?) to the Raspberry Pi?
  • Surge capacitor on HC-SR04 5v? 
  • HF shunt capacitor on the HC-SR04 5v?
  • ??
  • Sign in to reply

Top Comments

  • alanmcdonley
    alanmcdonley over 9 years ago +1
    OUCH Now that I think about it (away from bot), I need to check: maybe I have the 5v Echo going straight into the GPIO. I may have reversed the trigger and echo pin allocation. - If so, lucky I didn't…
  • alanmcdonley
    alanmcdonley over 9 years ago +1
    Sure enough - I was driving the GPIO pin with 5v pulses from the HC-SR04. Nasty mistake. Rewired and recoded - bot stayed up for 10 hours with no reboots.
  • alanmcdonley
    alanmcdonley over 9 years ago

    Sure enough - I was driving the GPIO pin with 5v pulses from the HC-SR04.  Nasty mistake.

     

    Rewired and recoded - bot stayed up for 10 hours with no reboots. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • alanmcdonley
    alanmcdonley over 9 years ago

    OUCH

     

    Now that I think about it (away from bot), I need to check:  maybe I have the 5v Echo going straight into the GPIO.

     

    I may have reversed the trigger and echo pin allocation. - If so, lucky I didn't fry my Pi!

    • Cancel
    • Vote Up +1 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