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
Start a Movement Challenge
  • Challenges & Projects
  • Design Challenges
  • Start a Movement Challenge
  • More
  • Cancel
Start a Movement Challenge
Forum RangeDetect Rover 5# Coding for the Rover
  • Blog
  • Forum
  • Projects
  • DC
  • Leaderboard
  • Files
  • Members
  • More
  • Cancel
  • New
Join Start a Movement Challenge to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 47 subscribers
  • Views 166 views
  • Users 0 members are here
Related

RangeDetect Rover 5# Coding for the Rover

fyaocn
fyaocn 9 months ago

 5# Coding for the Rover

Table of Contents

  • 1 Function Description
  • 2 The Hardware Interfaces
  • 3 Software 
  • 4 How to improve it

1 Function Description

The range detect rover is build with interactive of multiple sensors to sensing the environment. Then control the rover move around in complex situation like office, home with some edge intelligence.

The sensors include ultrasonic sensor with slow and short detecting distance around 20cm, and one expensive 60GHz radar sensor with precise range detect of 200cm, then sensor module even with intelligence to detect human presence or sudden movement. This helps move around with human interactive.

2 The Hardware Interfaces

Here is hardware interfaces and how the MKR board, TMC5272 board, stepper motors, range detect sensors and Power supply connected.

image

Each connection has been tested in previous forum post, it proves to be reliable in functional.

3 Software 

This is how the software flowchart runs,

image

After configurating the hard ware interface one by one, the program is running in two different loops. One is for sensor value scan and fusion the data to decide the movement to the rover. To keep going or dodging in other direction.

Another is for stepper motor state machine, report the state of the rove and control the rove with instruction to left or right wheels in velocity mode.

4 How to improve it

This is simple range detect sensor fusion project. If the sensor is arranged in one rotary pole, the surrounding distance can be mapped more precisely, like lazer radar in automatice car does. That would be potential improvement for this projec.

This Project is design with Arduino. I have tried with arduino cloud editor https://app.arduino.cc/sketches

image

That is also one alternative design platform for arduino. That is Another interesting work to do next.

 

  • 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