From d0f5f87a30991b68c786c936bc64931f235cbf4f Mon Sep 17 00:00:00 2001 From: Scott Bezek Date: Tue, 4 Sep 2018 14:59:22 -0700 Subject: [PATCH] Replace remaining erroneous AH1815 references --- 3d/pcb.scad | 14 +++++++------- README.md | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/3d/pcb.scad b/3d/pcb.scad index dc3c145a..29951705 100644 --- a/3d/pcb.scad +++ b/3d/pcb.scad @@ -18,10 +18,10 @@ include ; pcb_thickness = 1.6; // From datasheet: -AH1815_height = (2.8 + 3.2) / 2; -AH1815_width = (3.9 + 4.3) / 2; -AH1815_thickness = (1.40 + 1.60) / 2; -AH1815_sensor_offset_y = AH1815_height - 1.25; +hall_effect_height = (2.8 + 3.2) / 2; +hall_effect_width = (3.9 + 4.3) / 2; +hall_effect_thickness = (1.40 + 1.60) / 2; +hall_effect_sensor_offset_y = hall_effect_height - 1.25; // From sensor.kicad_pcb: pcb_height = 16.256; @@ -42,7 +42,7 @@ pcb_hole_radius = m4_hole_diameter/2; // Computed dimensions pcb_hole_to_sensor_x = pcb_hole_to_sensor_pin_1_x - sensor_pin_pitch; -pcb_hole_to_sensor_y = pcb_hole_to_sensor_pin_1_y + AH1815_sensor_offset_y; +pcb_hole_to_sensor_y = pcb_hole_to_sensor_pin_1_y + hall_effect_sensor_offset_y; // Rough numbers for 3d rendering only (non-critical dimensions) @@ -106,8 +106,8 @@ module pcb() { // Sensor body color([0, 0, 0]) { - translate([pcb_hole_to_sensor_pin_1_x - sensor_pin_pitch - AH1815_width/2, pcb_hole_to_sensor_pin_1_y, -sensor_pin_length - AH1815_thickness/2 + pcb_thickness]) { - cube([AH1815_width, AH1815_height, AH1815_thickness]); + translate([pcb_hole_to_sensor_pin_1_x - sensor_pin_pitch - hall_effect_width/2, pcb_hole_to_sensor_pin_1_y, -sensor_pin_length - hall_effect_thickness/2 + pcb_thickness]) { + cube([hall_effect_width, hall_effect_height, hall_effect_thickness]); } } } diff --git a/README.md b/README.md index b0956e57..1fcfbc51 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ The PCB layout is 10cm x 5cm which makes it fairly cheap to produce using a low- -Each module also needs a hall-effect sensor board, with an AH1815 sensor and connector. +Each module also needs a hall-effect sensor board, with an AH3391Q (or similar) sensor and connector. These boards are small (about 16mm x 16 mm) and are available on a second PCB design that's panelized. The panelization is configurable (see [generate_panelize_config.py](https://github.com/scottbez1/splitflap/blob/hall_effect/electronics/generate_panelize_config.py)) and is optimized for production at SeeedStudio.