Skip to content

Commit

Permalink
Replace remaining erroneous AH1815 references
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbez1 committed Sep 4, 2018
1 parent 86d53cf commit d0f5f87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions 3d/pcb.scad
Expand Up @@ -18,10 +18,10 @@ include <m4_dimensions.scad>;
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;
Expand All @@ -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)
Expand Down Expand Up @@ -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]);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -142,7 +142,7 @@ The PCB layout is 10cm x 5cm which makes it fairly cheap to produce using a low-
<img width="640" src="https://s3.amazonaws.com/splitflap-travis/branches/hall_effect/pcb_raster.png"/>
</a>

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.
Expand Down

0 comments on commit d0f5f87

Please sign in to comment.