element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
  • 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
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Alpha Rover - Out of Control
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Attack of the Drones to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 18 Apr 2021 12:37 AM Date Created
  • Views 1206 views
  • Likes 5 likes
  • Comments 3 comments
  • alphabot
  • arduino_uno_plus
  • attackofthedronesch
Related
Recommended

Alpha Rover - Out of Control

ralphjy
ralphjy
18 Apr 2021

To say I'm somewhat disappointed in the AlphaBot would be putting it mildly.  I'm having lots of repeatability issues.  I thought I'd try some obstacle avoidance using the ultrasonic sensor.  I'm still having significant speed repeatability issues for the wheels and even the IR sensors and servo aren't really consistent.  The first thing that I noted when I looked at the AlphaBot library code is that the optical sensors on the wheels are not used.  I guess this is an exercise left to the user.  So, that's one thing to fix.  The lack of speed repeatability looks like it could also be attributable to using the delay() function for timing of the motor control.

 

I've noticed that the sensors and servos perform much better when tested separately than when the functions are integrated.  Certainly lack of using interrupts and any real time elements is going to add to a lot of response variability.  It's probably time to pick an appropriate processor and RTOS to use for control rather than continuing with the Arduino Uno Plus.

 

I thought I should make a before video just to document where I started from.  It's pretty comical.  It just won't run straight.  I tried tweaking the left and right speeds, but it varies run to run.  I'm trying to use the ultrasonic sensor to do some obstacle avoidance.  If it detects an obstacle, it supposed to back up, look left and right, and determine which direction to turn.  Of course, the backing up and turning are inconsistent, so it doesn't do very well.  And the ultrasonic sensor doesn't do very well with non-orthogonal surfaces.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 4 years ago +3
    The UNO can run FreeRTOS . Without stress. It will take about 7K of flash. 80% is still available for your logic.
  • fmilburn
    fmilburn over 4 years ago +3
    That pretty much sums up my experience as well. They just won’t run straight without some kind of feedback. I have had good luck using encoders with interrupts and PID control. My plan this time is to…
  • ralphjy
    ralphjy over 4 years ago in reply to fmilburn +3
    Funny part is I thought I had feedback. Should have checked the speed function right away when it didn’t work very well. Hope the feedback works.
  • ralphjy
    ralphjy over 4 years ago in reply to fmilburn

    Funny part is I thought I had feedback.  Should have checked the speed function right away when it didn’t work very well. Hope the feedback works.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 4 years ago

    That pretty much sums up my experience as well. They just won’t run straight without some kind of feedback.  I have had good luck using encoders with interrupts and PID control.  My plan this time is to dedicate a microcontroller to motor control have a Raspberry Pi to provide extra smarts. I just need to get started on it again.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 4 years ago

    The UNO can run FreeRTOS. Without stress.

    It will take about 7K of flash. 80% is still available for your logic.

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