Files
bachirandClaude Opus 5.5 b5d5b5057a rangement : premier commit de l'appareil
- firmware/firmware.ino, compilé identique à l'original
- boitier : boîtier pour Pro Mini de sluebbert (Thingiverse 4015203, Creative Commons), copie des STL et de la source OpenSCAD
- docs : adresses des sondes DS18B20, rendu du boîtier
- README, .gitignore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:10:11 +01:00

221 lines
6.5 KiB
OpenSCAD

wallThickness = 1.63;
voidSize = [94, 28.8, 15.5];
terminalThickness = 0.45;
terminalNotchThickness = 3.3;
terminalLength = 26.5;
terminalNotchWidth = terminalNotchThickness * .325;
prongDiameter = 7.5;
lidTolerance = 0.01;
batteryDiameter = 14.1;
batteryLength = 50.25;
arduinoSize = [34.3, 18.45, 4.15];
arudinoBoardThickness = 1.64;
arduinoBraceThickness = 1.75;
enclosure();
translate([0, voidSize[1] + 16, 0])
enclosureLid();
module enclosure()
{
endBraceThickness = 3;
centerBraceThickness = 3;
difference()
{
cube(size=[voidSize[0] + wallThickness * 2, voidSize[1] + wallThickness * 2, voidSize[2] + wallThickness]);
translate([wallThickness, wallThickness, wallThickness])
cube(size=[voidSize[0], voidSize[1], voidSize[2] + 0.4]);
}
// Rear Terminal Brace
translate([voidSize[0] + wallThickness - endBraceThickness, wallThickness, wallThickness])
{
difference()
{
// Terminal Brace
cube(size=[endBraceThickness, voidSize[1], 13]);
// Terminal slot
translate([endBraceThickness -terminalThickness, (voidSize[1] - terminalLength) / 2, 0])
{
cube([terminalThickness, terminalLength, voidSize[2] + 2]);
translate([-terminalNotchThickness / 2 + terminalNotchWidth - terminalThickness, 0, 0])
terminalNotch(voidSize[2] + 4);
translate([-terminalNotchThickness / 2 + terminalNotchWidth - terminalThickness, terminalLength - terminalNotchThickness, 0])
terminalNotch(voidSize[2] + 4);
// Prongs
translate([-3.5, 2.5, 2.5])
cube([endBraceThickness + 1, prongDiameter, voidSize[2] + 2]);
translate([-3.5, terminalLength - 2.5 - prongDiameter, 2.5])
cube([endBraceThickness + 1, prongDiameter, voidSize[2] + 2]);
}
}
}
// Battery Brace
translate([voidSize[0] * .7, voidSize[1] + 1.1, 7.5])
batteryBrace();
translate([voidSize[0] * .7, 1.2 + .98, 7.5])
mirror([0, 1, 0])
batteryBrace();
// Center Brace
translate([wallThickness + 36.4, wallThickness, wallThickness])
{
difference()
{
cube([centerBraceThickness, voidSize[1], 13]);
translate([-1, 3.2, 2.5])
cube([centerBraceThickness + 2, 8, 14]);
translate([-1, voidSize[1] - 8 - 3.2, 2.5])
cube([centerBraceThickness + 2, 8, 14]);
translate([(centerBraceThickness - terminalThickness) * 0.65, 0, 0])
cube([terminalThickness, voidSize[1], 14]);
}
translate([0, (voidSize[1] - 0.5) / 2, 0])
cube([centerBraceThickness, 0.5, 13]);
}
// Arduino Brace
translate([wallThickness, wallThickness + (voidSize[1] - (arduinoSize[1] + arduinoBraceThickness * 2)) / 2, wallThickness])
{
backOffset = 8;
difference()
{
lengthMultiplier = 1;
arduinoThreshold = 0;
cube([arduinoSize[0], arduinoSize[1] + arduinoBraceThickness * 2 - arduinoThreshold, arduinoSize[2] + 2]);
translate([0, arduinoBraceThickness - arduinoThreshold / 2, 0])
cube([arduinoSize[0] * lengthMultiplier + 1, arduinoSize[1], arduinoSize[2] + 5]);
translate([0, 0, 0])
cube([backOffset, arduinoSize[1] + arduinoBraceThickness * 2 - arduinoThreshold, 10]);
}
bumpHeight = 3;
bumpWidth = 1.5;
translate([arduinoSize[0] - 2.6, arduinoBraceThickness, 0])
{
translate([0, arduinoSize[1] - bumpWidth, 0])
cube([2.6, bumpWidth, bumpHeight]);
cube([2.6, bumpWidth, bumpHeight]);
}
translate([backOffset, arduinoBraceThickness, 0])
{
translate([0, arduinoSize[1] - bumpWidth, 0])
cube([2.6, bumpWidth, bumpHeight]);
cube([2.6, bumpWidth, bumpHeight]);
}
arudinoBoardThicknessAdjusted = arudinoBoardThickness * 0.85;
// Bridge brace
translate([arduinoSize[0] - arduinoBraceThickness, arduinoBraceThickness, bumpHeight + arudinoBoardThicknessAdjusted])
{
scale([arduinoBraceThickness, arduinoBraceThickness * 0.8, arduinoSize[2] + 2 - (bumpHeight + arudinoBoardThicknessAdjusted)])
difference()
{
cube([1, 1, 1]);
translate([-1 / 2, 1 / 2 + .9, -1 / 2 - .9])
rotate([45, 0, 0])
cube([2, 2, 2]);
}
translate([0, arduinoSize[1] - arduinoBraceThickness * 0.8, 0])
scale([arduinoBraceThickness, arduinoBraceThickness * 0.8, arduinoSize[2] + 2 - (bumpHeight + arudinoBoardThicknessAdjusted)])
difference()
{
cube([1, 1, 1]);
translate([-1 / 2, -1 / 2 + .1, -1 / 2 - .9])
rotate([45, 0, 0])
cube([2, 2, 2]);
}
}
}
}
module enclosureLid()
{
depth = 2.5;
difference()
{
cube([voidSize[0] + wallThickness * 2, voidSize[1] + wallThickness * 2, wallThickness]);
translate([0, ((voidSize[1] + wallThickness * 2) - 6) / 2, wallThickness / 2])
cube([wallThickness, 6, 1.5]);
translate([voidSize[0] + wallThickness, ((voidSize[1] + wallThickness * 2) - 6) / 2, wallThickness / 2])
cube([wallThickness, 6, 1.5]);
}
translate([wallThickness + lidTolerance, wallThickness + lidTolerance, wallThickness])
{
difference()
{
cube([voidSize[0] - lidTolerance * 2, voidSize[1] - lidTolerance * 2, depth]);
translate([wallThickness, wallThickness, 0])
cube([voidSize[0] - lidTolerance * 2 - wallThickness * 2, voidSize[1] - lidTolerance * 2 - wallThickness * 2, depth + 1]);
}
// Tabs
translate([0, 0, depth])
{
cube([wallThickness, wallThickness * 3, depth]);
cube([wallThickness * 3, wallThickness, depth]);
translate([0, voidSize[1] - lidTolerance * 2 - wallThickness, 0])
{
cube([wallThickness * 3, wallThickness, depth]);
translate([0, -wallThickness * 2, 0])
cube([wallThickness, wallThickness * 3, depth]);
}
translate([48 - wallThickness * 3, 0, 0])
{
cube([wallThickness * 3, wallThickness, depth]);
translate([0, voidSize[1] - lidTolerance * 2 - wallThickness, 0])
cube([wallThickness * 3, wallThickness, depth]);
}
translate([90 - wallThickness * 3, 0, 0])
{
cube([wallThickness * 3, wallThickness, depth]);
translate([0, voidSize[1] - lidTolerance * 2 - wallThickness, 0])
cube([wallThickness * 3, wallThickness, depth]);
}
}
}
}
module terminalNotch(height)
{
translate([terminalNotchThickness / 2, terminalNotchThickness / 2, 0])
difference()
{
cylinder(h = height, r = terminalNotchThickness / 2, $fn = 64);
translate([-terminalNotchThickness / 2 + terminalNotchWidth, - terminalNotchThickness, -1])
cube([terminalNotchThickness + 1.04, terminalNotchThickness * 2, height + 2]);
}
}
module battery()
{
translate([0, batteryDiameter / 2, batteryDiameter / 2])
rotate([0, 90, 0])
cylinder(h = batteryLength, r = batteryDiameter / 2, $fn = 128);
}
module batteryBrace()
{
translate([-5, .8 + .45, 0])
difference()
{
rotate([20, 0, 0])
cube([10, 3, 5]);
translate([-1, 0, 0])
cube([12, 10, 10]);
}
}