Home › Forums › Environmental Sensors › Help Please: MaxBotix Sonar MB7386 not creating data on SD card › Reply To: Help Please: MaxBotix Sonar MB7386 not creating data on SD card
2021-07-21 at 5:13 PM
#15717
The data is not being stored on the memory card. I think my code is incorrect is there a MaxBotix example that anyone successfully was able to run and pass data to the SD Card and MMW that I can look
The data is not being stored on the memory card. I think my code is incorrect is there a MaxBotix example that anyone successfully was able to run and pass data to the SD Card and MMW that I can look at? In my code I think I need to do something else to get output from Sensor to this SonarSerial … I simply gave the PIN number here … it might be the issue
1 2 3 4 5 6 7 |
const int8_t SonarSerial = 5; // The Sonar Data pin const int8_t SonarPower = -1; // 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 MaxBotixSonar sonar1(SonarSerial, SonarPower, Sonar1Trigger, sonar1NumberReadings); |