Mapping Your Surroundings Using MATLAB and Arduino
                    Version 1.0.0.1 (20.6 KB) by  
                  Dan Doherty
                    
                
                
                  Learn how to use MATLAB and Arduino to map your surroundings
                
                  
              Learn how to use MATLAB and Arduino to map your surroundings. By rotating an ultrasonic sensor on a servo motor, MATLAB is able to display the location of any obstacle in a given environment.
Hardware Used:
Arduino Uno
Servo Motor
HC-SR04 Ultrasonic Sensor
USB A to B Cable
https://www.youtube.com/watch?v=iaF81W-l6Xg
Cite As
Dan Doherty (2025). Mapping Your Surroundings Using MATLAB and Arduino (https://se.mathworks.com/matlabcentral/fileexchange/58434-mapping-your-surroundings-using-matlab-and-arduino), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
              Created with
              R2016a
            
            
              Compatible with any release
            
          Platform Compatibility
Windows macOS LinuxCategories
      Find more on C4ISR in Help Center and MATLAB Answers
    
  Tags
Communities
      More Files in the  Power Electronics Control Community
    
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
