All-In-One Pocket Tool (Thermal Camera + Level Meter + Compass + Inclinometer + Db Meter + Distance Laser Scale )
by AlenJecob in Circuits > Gadgets
8803 Views, 101 Favorites, 0 Comments
All-In-One Pocket Tool (Thermal Camera + Level Meter + Compass + Inclinometer + Db Meter + Distance Laser Scale )











All In One Pocket Tool (Thermal camera + Level meter + Compass + Inclinometer + Db meter + Distance Laser scale + Thermometer ).
Yes Right it all in one pocket tool has in build battery charging system you can use as portable thermal camera , thermometer scale compass , inclinometer . db meter . level meter and many more all inside pocket
Imagine a single, sleek device that slips effortlessly into your pocket and unleashes a symphony of superpowers capable of transforming chaos into precision with a flick of your thumb. Meet the All-In-One Pocket Tool:
Features of the All-In-One Pocket Tool
The All-In-One Pocket Tool is a compact, game-changing device engineered for precision, portability, and versatility. Packed with cutting-edge sensors and a robust rechargeable battery, it’s the ultimate companion for engineers, DIY enthusiasts, and everyday problem-solvers. Here are its standout features:
- AMG8833 Thermal Imaging Camera
- Captures heat signatures with 8x8 pixel resolution and 0.07°C accuracy.
- Detects hidden electrical faults, insulation leaks, or HVAC inefficiencies.
- Ideal for home inspections, equipment diagnostics, or spotting wildlife in low-light conditions.
- MEMS Microphone for dB Meter
- Measures sound levels from 30-130dB with high sensitivity.
- Perfect for monitoring workplace noise, testing audio equipment, or ensuring quiet environments.
- Real-time decibel readouts via a crisp OLED display.
- TOF LiDAR and Laser Distance Scaler
- Provides millimeter-accurate distance measurements up to 10 meters.
- Maps rooms, calculates areas, or aligns structures for construction and renovations.
- Simplifies tasks like furniture placement or 3D modeling for prototyping.
- Digital Thermometer
- Measures ambient and surface temperatures from -20°C to 150°C with ±0.5°C precision.
- Essential for HVAC checks, cooking, or environmental monitoring.
- Fast response time for instant readings.
- Multi-Axis Inclinometer and Bubble Leveler
- Detects tilt angles across all planes with 0.1° accuracy.
- Dual-mode leveling: digital inclinometer for precise angles and classic bubble level for quick visual checks.
- Perfect for construction, carpentry, or ensuring flat surfaces in DIY projects.
- Digital Compass
- Delivers reliable magnetic north orientation with ±1° accuracy.
- Navigates urban environments, hiking trails, or off-grid adventures.
- Complements inclinometer for geospatial applications like surveying.
- Rechargeable Battery with USB-C Fast Charging
- Built-in 2000mAh lithium-ion battery for up to 12 hours of continuous use.
- Charges in under 2 hours via USB-C for minimal downtime.
- Power-efficient design to support all sensors simultaneously.
- Ultra-Portable Design
- Compact (5 x 5cm x 2.5 cm) and lightweight (under 150g), fits easily in your pocket.
- Intuitive controls and a bright Touch LCD display for app-free operation.
- Versatile Applications
- Engineers: Perform thermal inspections, measure structural alignments, or map layouts with precision.
- DIYers: Level shelves, measure rooms, or diagnose home systems effortlessly.
- Outdoor Enthusiasts: Navigate trails, monitor weather, or detect heat sources in the wild.
- Homeowners: Spot electrical risks, check noise levels, or ensure furniture stability.
- Customizable Interface
- User-friendly menu to toggle between tools or display multiple metrics simultaneously.
- Optional Bluetooth connectivity for data logging to a smartphone (firmware upgradable).
- Open-source design for DIY tweaks and community-driven enhancements.
This All-In-One Pocket Tool isn’t just a gadget—it’s a precision powerhouse that shrinks a toolbox into your pocket, ready to tackle any challenge with unmatched accuracy and flair. Build it, wield it, and redefine what’s possible!
Supplies


Materials
- M5Stack Core2
- Amg8833 Thermal Camera sensor
- GY-530 VL53L0X Time-of-Flight ToF Distancemeter-Sensor
Attaching Sensors



- Get Your Gear Ready Alright, first things first—make sure your M5Stack Core2 is powered off. No sparks today! Grab your AMG8833 thermal sensor and VL53L0X ToF sensor, and let’s check that we’ve got some jumper wires or header pins to connect to the I2C port (pins 21 and 22 on the Core2). This is gonna be fun!
- Solder the AMG8833 Thermal Camera Let’s hook up that thermal camera so it can see heat like nobody’s business.
- Wiring it up:
- Solder a wire from the AMG8833’s VCC to the 3.3V pin on the M5Stack.
- Hook GND to any GND pin.
- Connect SDA to pin 21 (that’s the I2C data line).
- Connect SCL to pin 22 (that’s the I2C clock line).
- Soldering tips:
- Use short wires so things don’t get messy. Solder them to the AMG8833’s pins nice and clean.
- If you’ve got heat-shrink tubing, slide it over the soldered joints to keep things safe and tidy.
- Double-check with a multimeter to make sure your connections are solid and there’s no sneaky shorts. Boom, your thermal camera’s ready to roll!
- Solder the VL53L0X ToF Distance Sensor Now let’s get that ToF sensor ready to measure distances like a pro.
- Wiring it up:
- Solder VIN on the VL53L0X to 3.3V on the M5Stack.
- Connect GND to GND.
- Hook SDA to pin 21 (yep, same as the thermal camera).
- Hook SCL to pin 22 (shared with the thermal camera).
- Soldering tips:
- Keep those wires short and neat, just like before.
- The AMG8833 and VL53L0X have different I2C addresses (0x69 and 0x29), so they’ll play nice on the same bus—no worries there!
- Test your connections with a multimeter to be sure everything’s good. You’re killing it so far!
- Hook Everything to the M5Stack’s I2C Port Since both sensors use the I2C port, we’re gonna connect them to Port A on the M5Stack Core2 (pins 21 and 22).
- Find Port A (it’s usually the Grove connector or pin headers on the Core2).
- Solder the SDA wires from both sensors together and connect them to pin 21. Do the same for SCL wires to pin 22.
- Combine the 3.3V wires to a single 3.3V pin and GND wires to a GND pin.
- If you’re using the Grove connector, you can skip soldering and use a Grove-to-pin adapter for a quick plug-in.
- Wrap those soldered joints with heat-shrink tubing or electrical tape to keep things clean and safe.
- Check with your multimeter to make sure everything’s connected right. Look at that—nice and organized!
- Mount the Sensors on the Back for a Slick Look Now let’s make this thing look as cool as it works.
- Positioning:
- Stick the AMG8833 and VL53L0X on the back of the M5Stack so they’re out of the way but ready to do their thing.
- Make sure the thermal camera’s sensor array faces out to catch heat signatures.
- Position the ToF sensor so its laser has a clear line of sight for measuring distances.
- Securing them:
- Slap on some double-sided adhesive tape to hold the sensors to the back of the M5Stack.
- If you’ve got a 3D printer, make a custom enclosure with cutouts for the sensors—it’ll look super pro.
- You can also use tiny screws or adhesive pads to keep them snug.
- Keep it tidy:
- Tuck the wires along the edges of the M5Stack or use little cable clips to keep them from dangling.
- If you’re using an enclosure, make sure it has holes for the sensors and snaps onto the M5Stack nice and tight. Dude, it’s starting to look like a legit gadget!
- Test It Out and Make It Perfect Alright, let’s fire it up! Power on your M5Stack Core2 and upload the code I gave you earlier (the one with the touch menu and all the cool functions).
- Check that the thermal camera shows a heatmap, the ToF sensor measures distances, and the inclinometer, bubble level, and dB meter are working.
- If something’s not right, double-check your wiring or run an I2C scanner sketch to make sure the sensors are talking to the M5Stack.
- For the IMU, if the roll or pitch isn’t zero when the device is flat, tweak the rollOffset and pitchOffset in the code. You’re basically Tony Stark at this point!
Little Tips to Make It Awesome:
- Keep the Wires Clean: Short wires and a bit of tape or tubing make it look like you bought it from a store.
Uploading Firmware




First you need to configure the IDE and SDK .
- Add the M5Stack Board URL:
- Go to File > Preferences (or Arduino IDE > Preferences on macOS).
- In the “Additional Boards Manager URLs” field, add:
- text
- Click OK.
- Install the M5Stack Board:
- Go to Tools > Board > Boards Manager.
- Search for “M5Stack”. You’ll see “M5Stack by M5Stack Official”.
- Click Install to add support for the M5Stack Core2 and other M5Stack boards.
- Once installed, go to Tools > Board > M5Stack Arduino and select M5Stack-Core2.
3. Install the Required Libraries
- Open Library Manager: Go to Sketch > Include Library > Manage Libraries.
- Install Libraries: Search for and install these libraries:
- Adafruit_AMG88xx: For the AMG8833 thermal camera.
- Adafruit_VL53L0X: For the VL53L0X ToF distance sensor.
- I2C_MPU6886: For the M5Stack Core2’s built-in MPU6886 IMU (inclinometer and bubble level).
- If not found in Library Manager, download it from GitHub and add it via Sketch > Include Library > Add .ZIP Library.
- M5Unified: For M5Stack Core2 hardware control. Search for “M5Unified” in Library Manager and install it.
- Verify Installation: Restart the Arduino IDE to make sure everything’s loaded.
4. Download and Upload the Code
- Grab the Code: Copy the code I provided earlier (the one for the All-In-One Pocket Tool). I’ll tweak it below to make the UI a bit more customizable and add the thermometer and compass explicitly.
- Paste the Code: Open a new sketch in the Arduino IDE and paste the modified code (below).
- Select the Board and Port:
- Go to Tools > Board > M5Stack Arduino > M5Stack-Core2.
- Connect your M5Stack Core2 via USB-C to your computer.
- Go to Tools > Port and select the port your M5Stack is connected to (e.g., COM3 on Windows or /dev/ttyUSB0 on Linux/macOS).
- Upload the Code: Click the Upload button (right arrow) in the Arduino IDE. Wait for it to compile and upload. You’ll see “Done uploading” when it’s ready.
Downloads
The UI and Tools It Provide







Now after uploading the code srtart the device and using the on/off button on the M5Stack core 2 . The first screen shows a clean, colorful grid of touch buttons, each one ready to launch a specific tool. Here’s the full rundown of the tool options displayed on the main menu, straight from the code I shared:
- Thermal Camera
- Button Label: "Thermal Cam"
- Function: Fires up the AMG8833 thermal sensor to display an 8x8 heatmap, showing temperature variations like a sci-fi heat vision. Perfect for spotting hot spots or leaks.
- Thermometer
- Button Label: "Thermometer"
- Function: Uses the AMG8833’s center pixel to give you a precise ambient or surface temperature reading in °C. Great for quick temp checks.
- Inclinometer
- Button Label: "Inclinometer"
- Function: Pulls data from the MPU6886 IMU to show pitch and roll angles in degrees. Ideal for checking slopes or alignments in projects.
- Bubble Level
- Button Label: "Bubble Level"
- Function: Displays a digital bubble level using the MPU6886, with a moving bubble to show if your surface is flat or tilted. Awesome for leveling shelves or frames.
- Distance Meter
- Button Label: "Distance"
- Function: Activates the VL53L0X ToF sensor to measure distances up to 2 meters with laser precision. Perfect for room measurements or DIY layouts.
- dB Meter
- Button Label: "dB Meter"
- Function: Uses the M5Stack Core2’s built-in MEMS microphone to measure sound levels in decibels. Handy for checking noise in your environment.
- Compass
- Button Label: "Compass"
- Function: Reads the MPU6886’s gyro data to show your orientation relative to magnetic north. Super useful for navigation or outdoor adventures.
How It Looks on the Main Menu
When you power on your M5Stack Core2, the 320x240 touchscreen lights up with a vibrant menu. The title “All-In-One Tool” sits at the top in green, and below it, you’ll see seven touch buttons arranged in a grid:
- Each button is a rounded rectangle with a bold color (like cyan for Thermal Cam, yellow for Thermometer, green for Inclinometer, etc.).
- They’re laid out neatly: four buttons in two rows (Thermal Cam, Thermometer, Inclinometer, Bubble Level), two buttons in the next row (Distance, dB Meter), and one centered button below (Compass).
- Just tap a button to jump into that tool’s mode, and hit the BtnA (bottom-left) or reset button to zip back to this main menu.
You can totally tweak the button colors, sizes, or positions in the code’s Button array to make it your own—maybe swap cyan for red or make the buttons bigger for easier tapping. It’s all about what feels right for you! Let me know if you want help customizing the look or adding more flair to the menu. Ready to play with these tools? 😎
The Thermal Camera Tool




yo, check this out! When you tap into the thermal camera mode on your All-In-One Pocket Tool with the M5Stack Core2, you get a live thermal video from the AMG8833 sensor, painting an 8x8 heatmap that shows hot and cold spots in real-time, plus the exact temperature of whatever you’re aiming at. It’s like having a superpower for spotting heat! In industrial settings, this is a game-changer—think factories where you can point it at machinery to catch overheating motors, dodgy electrical connections, or sneaky insulation leaks before they cost big bucks. For electronics geeks, it’s perfect for scanning Raspberry Pi motherboards or circuit boards to see which chips are running too hot, helping you tweak cooling setups. At home, it’s just as clutch: use it to find heat leaks in walls, check if your HVAC is slacking, or even spot critters hiding in the dark. Whether you’re troubleshooting heavy-duty equipment or just making sure your house is energy-efficient, this pocket-sized thermal camera’s got your back for work and everyday life!
Level Bubble



Now next hit the Reset button (BtnA, bottom-left) on your M5Stack Core2 to jump back to the main menu, then tap the “Bubble Level” button (orange, x:170, y:100). You’ll see a digital bubble leveler, like those liquid bubble tools, but better—showing a teal bubble moving in a cyan rectangle, with real-time roll and pitch angles in degrees (e.g., “Roll: 2.3°”, “Pitch: -1.5°”) and a “Flat” or “Tilted” status. It’s super accurate for getting things perfectly level or at specific angles. Use it for: mounting picture frames or paintings on walls at exact 90° angles, aligning shelves, setting up machinery in engineering projects, leveling furniture, or ensuring precise angles in DIY builds like decks or ramps. It’s your go-to for nailing perfect alignments at home or on the job!
Flat Surface and Inclinometer Compass



Hit the Reset button again then tap the “Inclinometer” You’ll see a circular dot smack in the middle of the display, reacting to angles and directions—if the surface is flat and all inclinations are at 0 degrees, it shows no tilting, the circle stays green, and the X and Z angle data reads 0 degrees. The circle moves in real-time toward the direction of any tilt if the surface is inclined at an angle, giving you instant feedback. Use it for: In everyday life, leveling your TV mount, aligning a pool table, or checking if your floor’s even during home renos; for professional engineers, it’s clutch in surveying construction sites for precise beam angles, calibrating machinery setups, designing ramps with exact slopes, or ensuring structural integrity in prototypes—making sure everything’s spot-on without guesswork!
Ruler Scale Distance Measurement


From the main menu on your M5Stack Core2, tap the “Distance” button (cyan, x:10, y:150) to jump into the Scale mode. The LCD now shows the distance measured by the VL53L0X ToF LIDAR sensor in real-time. Wave your hand or a pen in front of the sensor, and watch the display update instantly with the distance in centimeters (e.g., “Distance: 45.2 cm”). It’s like a digital ruler! Use it to measure walls, furniture, or room dimensions for home projects, just like you would with a tape measure. It’s perfect for DIY renovations, checking door clearances, or mapping out spaces with pinpoint accuracy—no tape required!
Sound Db Meter



From the main menu on your M5Stack Core2, tap the “dB Meter” button (yellow, x:170, y:150) to switch into Sound dB Meter mode. The LCD displays the real-time sound level in decibels from the built-in MEMS microphone (e.g., “Sound: 65.4 dB”), updating every 50ms as you expose it to noise—like clapping or playing music nearby. It measures from 30-130 dB for everyday to loud environments. Use it for: In daily life, checking if your home office is too noisy for calls, monitoring baby monitor volumes, or gauging concert levels to protect your ears; for professional engineers, it's key for ensuring workplace compliance with noise regs, assessing machinery decibels in factories to prevent hearing loss, evaluating construction site sound impacts, or optimizing audio setups in studios—keeping things safe and compliant without bulky gear!







