- This topic has 0 replies, 1 voice, and was last updated 2022-06-15 at 11:50 PM by .
- You must be logged in to reply to this topic.
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water. Home › Forums › Environmental Sensors › Maxbotix ModularSensors
Using the ModularSensors code for a Maxbotix HRXL Ultrasonic Range Finder below
it references a sonarSerial and mentions having to set it up in the “Setting for Additional Serial Ports” but I am unable to find the correct “settings” to start the serial port? What are the the best Groove Pins to use, for the Sonic pins? For a Trigger pin and a Serial Pin.
Thanks Ron
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// ========================================================================== // Maxbotix HRXL Ultrasonic Range Finder // ========================================================================== /** Start [maxbotics] */ #include <sensors/MaxBotixSonar.h> // A Maxbotix sonar with the trigger pin disconnect CANNOT share the serial port // A Maxbotix sonar using the trigger may be able to share but YMMV // NOTE: Extra hardware and software serial ports are created in the "Settings // for Additional Serial Ports" section const int8_t SonarPower = sensorPowerPin; // Excite (power) pin (-1 if unconnected) const int8_t Sonar1Trigger = -1; // Trigger pin (a unique negative number if unconnected) const uint8_t sonar1NumberReadings = 3; // The number of readings to average // Create a MaxBotix Sonar sensor object MaxBotixSonar sonar1(sonarSerial, SonarPower, Sonar1Trigger, sonar1NumberReadings); |
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.