Room volume calculator ft3 with TFMini Lidar Sensor

We are trying to build a room volume calculator by measuring LWH and multiplying them, can some one help me directing me to the code? I need to ask for the 3 variables, I can the the calculation myself, but I'm to new to figure out the code.
Thanks in advance

https://learn.sparkfun.com/tutorials/tfmini---micro-lidar-module-hookup-guide/all#example-code

1 Like

We got that part covered already, also we are using a LCD Keypad Shield, we have all that already integrated. The next part is the code to calculate the area of the room.

Post the code, using code tags, and explain where you are having problems. For instructions, see the "How to get the best out of the forum" post.

1 Like

I would assign one of the 5 buttons for each dimension. Maybe UP for Height, LEFT for Width, and RIGHT for Length. When a button is pressed, grab the current distance from the LIDAR and use it for that dimension. Display square feet (LxW) and cubic feet (LxWxH) based on the currently set dimensions.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.