OPT3101 with ESP32-WROOM troubleshooting help

Hello,
i am experiencing the same problems with the distance reading and the workaround Kevin posted didn’t work on my platform. I am using a ESP32-Wroom board.

My EEPROM-String looks like this:

EEPROM contents as a C string:
"\xB4\xF0\xB2\xF1\xB4\x6D\xC1\x64\xB4\xA2\x00\x00\x0B\x09\x00\x10\x0C\x00\x00\xBF\x29\xE4\x93\x2F\x2A\x20\x49\x7C\x2B\x78\x69\x00\x2C\xA7\x0B\x00\x2D\xBB\xE4\x5E\x2E\xA0\x01\x84\x2F\xB3\xF8\x4C\x30\xD9\x0D\x20\x31\x7D\x13\x5F\x32\x64\x63\xB0\x33\x3A\xED\x4B\x34\xAC\xFE\x60\x35\x39\xBF\x00\x36\x37\xE4\x00\x37\x49\xE3\x00\x38\x75\xFA\x29\x39\x4A\x90\xF1\x3A\x4E\xC1\x4D\x3F\xC8\x08\x00\x41\x10\x80\x8C\x42\x1F\x3E\x00\x43\x83\x00\x00\x45\xDD\x85\x8C\x47\xC8\x08\x80\x48\xC8\x08\x00\x49\xC8\x08\x00\x51\xE2\x34\x00\x52\x06\x3D\x00\x53\xC9\x34\x00\x54\x64\x3E\x00\x55\xB6\x35\x00\x5E\x00\x63\x13\x5F\xF8\x16\xBB\x60\x1D\xEA\xD8\x61\xDF\x88\x00\x72\x50\x00\x00\x85\x7A\x26\x00\x86\x82\x26\x00\xB4\xD3\xE4\xE8\xB5\x01\x00\x00\xB8\x1A\x6C\x01\xB9\xA6\x00\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF";

Serial number: 6D-C1-64-A2

Kind Regards and many thanks, Sebastian

Hello, Sebastian.

I am sorry you are having trouble with our 3-Channel Wide FOV Time-of-Flight Distance Sensor Using OPT3101.

I have moved your post to its own thread because you are having a different problem. The contents of your board’s EEPROM match what we programmed here.

What example code are you running? How are you testing it and what results are you getting? As a simple, initial test, I recommend putting a light-colored, reflective target like a piece of paper in front of each of the sensor’s transmitters, about 100 mm away from the board.

–David

Hello David,

i am sorry for the late reply.

I am testing the sensor with the basic and advanced exmaple on github. The sensor is mounted on a small vehicle and is used to detect obstacles made of card board (light-brown-ish surface).
In some situations the sensor is putting out negative distance values paired with a low amplitude or very widely spread distance readings. The sensor is used indoors with day-light or ceiling-light ambient.

Thank you very much for your help,
Sebastian

How big are the targets and what distances are you expecting to read?

We have generally seen that readings with amplitudes below about 200 to 400 start to become too inaccurate to be useful, so you might consider ignoring those.

Please let me know if you have any further questions. Also, that sounds like a neat project!

–David

The obstacles are approx. 10x10x15 cm and the distances the vehicle needs to read are 20cm to 1m at most. The negative readings are pretty situational and evaluating and filtering the amplitudes has worked quite nicely now.

Thank you again for your support,
kind regards,
Sebastian

1 Like