Had a few minutes tonight so I plugged my brand new SF30-B into my USB port and grabbed some data. Ran out of time before I could plug it into my project (which doesn't matter much because I can't get this Bluetooth module to run at more than 9600 baud without a USB to TTL cable). So I ran a couple quick checks of the sensor data using excel.
I still need to test whether this thing is really temperature sensitive. It looks like it is because my values at the start of the test were in the 0.26m range, but at the end of the testing they clustered higher. This seemed to happen for both modes. Also, when I first turned the module on I had some REALLY low values, but that was first time turning on. More work needed on determining a warm-up period.
The smoothed mode does a really good job with the laser and a stationary target. I'm guessing that this mode may cause problems on a LIDAR though. Time will tell. There is much more variation in the 0.03 resolution mode. If I used this mode I will need to see if different data rates have an impact. Otherwise I'll have to throw a digital filter on this. A range of 3cm I can handle. A range of 12cm is too much.
Smoothed:
Distance | |
Mean | 0.275254 |
Standard Error | 2.36E-05 |
Median | 0.28 |
Mode | 0.28 |
Standard Deviation | 0.005087 |
Sample Variance | 2.59E-05 |
Kurtosis | -1.72543 |
Skewness | -0.01761 |
Range | 0.03 |
Minimum | 0.26 |
Maximum | 0.29 |
Sum | 12745.37 |
Count | 46304 |
0.03 resolution:
Distance | |
Mean | 0.277086597 |
Standard Error | 2.96305E-05 |
Median | 0.28 |
Mode | 0.28 |
Standard Deviation | 0.012201442 |
Sample Variance | 0.000148875 |
Kurtosis | 1.125499347 |
Skewness | -0.595383425 |
Range | 0.12 |
Minimum | 0.21 |
Maximum | 0.33 |
Sum | 46985.02 |
Count | 169568 |
This weekend I need to connect this through my arduino to verify my wiring. Hoping to get a circuit board designed over the weeked if I can get my brother moved quickly enough.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.