$fn=200;
id=180; //average diameter of the headphone ring
w=23; //width of the headphone band
th=9; //thickness of the headphone band
t=5; //thickness of the wall
l=40; //length of the part
translate([0,id/2,l/2])
rotate([0,90,0])
difference(){
cylinder(r=id/2+th/2+t,h=w+2*t,center=true);
cylinder(r=id/2-th/2-t,h=w+2*t+2,center=true);
translate([0,0,t/2+0.1])
difference(){
cylinder(r=id/2+th/2,h=w+t,center=true);
cylinder(r=id/2-th/2,h=w+2+t,center=true);
}
translate([id/2+l/2,0,0])
cube([id,id+20,2*w],center=true);
translate([-id/2-l/2,0,0])
cube([id,id+20,2*w],center=true);
translate([0,50,0])
cube([id,id,2*w],center=true);
}