Certainly! Here's an accurate and parametric OpenSCAD model of the Google Pixel 7a power button based on typical measurements and design features:
- Rounded rectangular shape
- Approximate dimensions: 18.8 mm length × 3.55 mm height × 1.55 mm thickness
- Rounded corners with ~0.8 mm radius
- Slight concave "dish" on both large faces (~0.25 mm deep)
- Small anti-rotation lug on the inside edge (cylindrical nub)
// Google Pixel 7a Power Button - Accurate Model
// Author: ChatGPT
// Date: 2025-07-06
$fn = 64; // smoothness
// PARAMETERS (all in mm)
length = 18.8; // button length
height = 3.55; // button height (vertical dimension)
thickness = 1.55; // button thickness (depth)
corner_radius = 0.8; // corner radius
dish_depth = 0.25; // concave dish depth on faces
dish_radius = length * 2; // large radius for shallow dish
lug_diameter = 1.4; // anti-rotation lug diameter
lug_length = 0.8; // lug length (protrusion)
lug_position = length/2 - lug_length/2; // position of lug on length axis
// Rounded rectangle prism
module rounded_rect_prism(l, w, h, r) {
minkowski() {
cube([l - 2*r, w - 2*r, h - 2*r], center=true);
sphere(r);
}
}
// Concave dish cutter (cylinder)
module concave_dish(depth, radius) {
translate([0, 0, -depth/2])
cylinder(h=depth, r=radius, center=true);
}
// Main button model
module pixel7a_power_button() {
difference() {
// Main rounded rectangle button
rounded_rect_prism(length, height, thickness, corner_radius);
// Dish on front face
translate([0, 0, thickness/2])
concave_dish(dish_depth, dish_radius);
// Dish on back face
translate([0, 0, -thickness/2])
concave_dish(dish_depth, dish_radius);
// Anti-rotation lug on inside edge (one end)
translate([lug_position, 0, 0])
rotate([0, 90, 0])
cylinder(h=lug_length, d=lug_diameter, center=true);
}
}
// Render the button
pixel7a_power_button();
How to use:
- Copy-paste into OpenSCAD.
- Render (F5) and export as STL for 3D printing or further modeling.
- Adjust parameters if you want to tweak size or features.
Notes:
- The dish is a very shallow concave surface on both large faces to mimic the real button’s subtle curvature.
- The lug is a small cylinder on one end of the button’s inside edge to prevent rotation when installed.
- The model is centered at the origin for easy positioning.
If you want me to add color, textures, or make it parametric for different phone models, just ask!