things: start work on scale
- Commit
3c72a03fc0e1cd4e14ecf0a10adc5610eabe9767- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-23 16:57 UTC (4 months ago)
- Parents
7f1dd72
Diff
things/hardware/scale/scale.kicad_pro
diff --git a/things/hardware/scale/scale.kicad_pro b/things/hardware/scale/scale.kicad_pronew file mode 100644index 0000000000..a30068c2d5--- /dev/null+++ b/things/hardware/scale/scale.kicad_pro@@ -0,0 +1,782 @@+{+ "board": {+ "3dviewports": [],+ "design_settings": {+ "defaults": {+ "apply_defaults_to_fp_barcodes": false,+ "apply_defaults_to_fp_dimensions": false,+ "apply_defaults_to_fp_fields": false,+ "apply_defaults_to_fp_shapes": false,+ "apply_defaults_to_fp_text": false,+ "board_outline_line_width": 0.15,+ "board_thickness": 1.6,+ "copper_line_width": 0.2,+ "copper_text_italic": false,+ "copper_text_size_h": 1.5,+ "copper_text_size_v": 1.5,+ "copper_text_thickness": 0.3,+ "copper_text_upright": false,+ "copper_thickness": 0.035,+ "courtyard_line_width": 0.05,+ "dimension_precision": 4,+ "dimension_units": 3,+ "dimensions": {+ "arrow_length": 1270000,+ "extension_offset": 500000,+ "keep_text_aligned": true,+ "suppress_zeroes": false,+ "text_position": 0,+ "units_format": 1+ },+ "fab_line_width": 0.1,+ "fab_text_italic": false,+ "fab_text_size_h": 1.0,+ "fab_text_size_v": 1.0,+ "fab_text_thickness": 0.15,+ "fab_text_upright": false,+ "other_line_width": 0.1,+ "other_text_italic": false,+ "other_text_size_h": 1.0,+ "other_text_size_v": 1.0,+ "other_text_thickness": 0.15,+ "other_text_upright": false,+ "pads": {+ "drill": 0.762,+ "height": 1.524,+ "width": 1.524+ },+ "silk_line_width": 0.15,+ "silk_text_italic": false,+ "silk_text_size_h": 1.0,+ "silk_text_size_v": 1.0,+ "silk_text_thickness": 0.15,+ "silk_text_upright": false,+ "zones": {+ "45_degree_only": false,+ "border_display_style": 2,+ "border_hatch_pitch": 0.5,+ "corner_radius": 0.0,+ "corner_smoothing": 0,+ "fill_mode": 0,+ "hatch_gap": 1.5,+ "hatch_orientation": 0.0,+ "hatch_smoothing_level": 0,+ "hatch_smoothing_value": 0.1,+ "hatch_thickness": 1.0,+ "min_clearance": 0.0,+ "min_island_area": 10.0,+ "min_thickness": 0.25,+ "pad_connection": 1,+ "remove_islands": 0,+ "thermal_relief_gap": 0.5,+ "thermal_relief_spoke_width": 0.5+ }+ },+ "diff_pair_dimensions": [+ {+ "gap": 0.0,+ "via_gap": 0.0,+ "width": 0.0+ }+ ],+ "drc_exclusions": [],+ "meta": {+ "filename": "board_design_settings.json",+ "version": 2+ },+ "rule_severities": {+ "annular_width": "warning",+ "clearance": "warning",+ "connection_width": "warning",+ "copper_edge_clearance": "warning",+ "copper_sliver": "warning",+ "courtyards_overlap": "warning",+ "creepage": "error",+ "diff_pair_gap_out_of_range": "error",+ "diff_pair_uncoupled_length_too_long": "error",+ "drill_out_of_range": "error",+ "duplicate_footprints": "warning",+ "extra_footprint": "warning",+ "footprint": "error",+ "footprint_filters_mismatch": "ignore",+ "footprint_symbol_field_mismatch": "warning",+ "footprint_symbol_mismatch": "warning",+ "footprint_type_mismatch": "error",+ "hole_clearance": "warning",+ "hole_near_hole": "error",+ "hole_to_hole": "error",+ "holes_co_located": "warning",+ "invalid_outline": "error",+ "isolated_copper": "warning",+ "item_on_disabled_layer": "error",+ "items_not_allowed": "warning",+ "length_out_of_range": "error",+ "lib_footprint_issues": "warning",+ "lib_footprint_mismatch": "warning",+ "malformed_courtyard": "error",+ "microvia_drill_out_of_range": "error",+ "mirrored_text_on_front_layer": "warning",+ "missing_courtyard": "ignore",+ "missing_footprint": "warning",+ "missing_tuning_profile": "warning",+ "net_conflict": "warning",+ "nonmirrored_text_on_back_layer": "warning",+ "npth_inside_courtyard": "ignore",+ "padstack": "error",+ "pth_inside_courtyard": "ignore",+ "shorting_items": "error",+ "silk_edge_clearance": "warning",+ "silk_over_copper": "warning",+ "silk_overlap": "warning",+ "skew_out_of_range": "error",+ "solder_mask_bridge": "warning",+ "starved_thermal": "error",+ "text_height": "warning",+ "text_on_edge_cuts": "error",+ "text_thickness": "warning",+ "through_hole_pad_without_hole": "error",+ "too_many_vias": "error",+ "track_angle": "error",+ "track_dangling": "warning",+ "track_not_centered_on_via": "ignore",+ "track_on_post_machined_layer": "error",+ "track_segment_length": "error",+ "track_width": "error",+ "tracks_crossing": "error",+ "tuning_profile_track_geometries": "ignore",+ "unconnected_items": "error",+ "unresolved_variable": "error",+ "via_dangling": "warning",+ "zone_has_empty_net": "error",+ "zones_intersect": "error"+ },+ "rules": {+ "allow_blind_buried_vias": false,+ "allow_microvias": false,+ "max_error": 0.005,+ "min_clearance": 0.15,+ "min_connection": 0.0,+ "min_copper_edge_clearance": 0.075,+ "min_groove_width": 0.0,+ "min_hole_clearance": 0.0,+ "min_hole_to_hole": 0.25,+ "min_microvia_diameter": 0.2,+ "min_microvia_drill": 0.1,+ "min_resolved_spokes": 2,+ "min_silk_clearance": 0.0,+ "min_text_height": 0.8,+ "min_text_thickness": 0.08,+ "min_through_hole_diameter": 0.3,+ "min_track_width": 0.15,+ "min_via_annular_width": 0.05,+ "min_via_diameter": 0.4,+ "solder_mask_to_copper_clearance": 0.0,+ "use_height_for_length_calcs": true+ },+ "teardrop_options": [+ {+ "td_onpthpad": true,+ "td_onroundshapesonly": false,+ "td_onsmdpad": true,+ "td_ontrackend": false,+ "td_onvia": true+ }+ ],+ "teardrop_parameters": [+ {+ "td_allow_use_two_tracks": true,+ "td_curve_segcount": 0,+ "td_height_ratio": 1.0,+ "td_length_ratio": 0.5,+ "td_maxheight": 2.0,+ "td_maxlen": 1.0,+ "td_on_pad_in_zone": false,+ "td_target_name": "td_round_shape",+ "td_width_to_size_filter_ratio": 0.9+ },+ {+ "td_allow_use_two_tracks": true,+ "td_curve_segcount": 0,+ "td_height_ratio": 1.0,+ "td_length_ratio": 0.5,+ "td_maxheight": 2.0,+ "td_maxlen": 1.0,+ "td_on_pad_in_zone": false,+ "td_target_name": "td_rect_shape",+ "td_width_to_size_filter_ratio": 0.9+ },+ {+ "td_allow_use_two_tracks": true,+ "td_curve_segcount": 0,+ "td_height_ratio": 1.0,+ "td_length_ratio": 0.5,+ "td_maxheight": 2.0,+ "td_maxlen": 1.0,+ "td_on_pad_in_zone": false,+ "td_target_name": "td_track_end",+ "td_width_to_size_filter_ratio": 0.9+ }+ ],+ "track_widths": [+ 0.0+ ],+ "tuning_pattern_settings": {+ "diff_pair_defaults": {+ "corner_radius_percentage": 80,+ "corner_style": 1,+ "max_amplitude": 1.0,+ "min_amplitude": 0.2,+ "single_sided": false,+ "spacing": 1.0+ },+ "diff_pair_skew_defaults": {+ "corner_radius_percentage": 80,+ "corner_style": 1,+ "max_amplitude": 1.0,+ "min_amplitude": 0.2,+ "single_sided": false,+ "spacing": 0.6+ },+ "single_track_defaults": {+ "corner_radius_percentage": 80,+ "corner_style": 1,+ "max_amplitude": 1.0,+ "min_amplitude": 0.2,+ "single_sided": false,+ "spacing": 0.6+ }+ },+ "via_dimensions": [+ {+ "diameter": 0.0,+ "drill": 0.0+ }+ ],+ "zones_allow_external_fillets": false,+ "zones_use_no_outline": true+ },+ "ipc2581": {+ "bom_rev": "",+ "dist": "",+ "distpn": "",+ "internal_id": "",+ "mfg": "",+ "mpn": "",+ "sch_revision": ""+ },+ "layer_pairs": [],+ "layer_presets": [],+ "viewports": []+ },+ "boards": [],+ "component_class_settings": {+ "assignments": [],+ "meta": {+ "version": 0+ },+ "sheet_component_classes": {+ "enabled": false+ }+ },+ "cvpcb": {+ "equivalence_files": []+ },+ "erc": {+ "erc_exclusions": [],+ "meta": {+ "version": 0+ },+ "pin_map": [+ [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 2+ ],+ [+ 0,+ 2,+ 0,+ 1,+ 0,+ 0,+ 1,+ 0,+ 2,+ 2,+ 2,+ 2+ ],+ [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 1,+ 0,+ 1,+ 2+ ],+ [+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 1,+ 2,+ 1,+ 1,+ 2+ ],+ [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 2+ ],+ [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 2+ ],+ [+ 1,+ 1,+ 1,+ 1,+ 1,+ 0,+ 1,+ 1,+ 1,+ 1,+ 1,+ 2+ ],+ [+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 2+ ],+ [+ 0,+ 2,+ 1,+ 2,+ 0,+ 0,+ 1,+ 0,+ 2,+ 2,+ 2,+ 2+ ],+ [+ 0,+ 2,+ 0,+ 1,+ 0,+ 0,+ 1,+ 0,+ 2,+ 0,+ 0,+ 2+ ],+ [+ 0,+ 2,+ 1,+ 1,+ 0,+ 0,+ 1,+ 0,+ 2,+ 0,+ 0,+ 2+ ],+ [+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2,+ 2+ ]+ ],+ "rule_severities": {+ "bus_definition_conflict": "error",+ "bus_entry_needed": "error",+ "bus_to_bus_conflict": "error",+ "bus_to_net_conflict": "error",+ "conflicting_netclasses": "error",+ "different_unit_footprint": "error",+ "different_unit_net": "error",+ "duplicate_reference": "error",+ "duplicate_sheet_names": "error",+ "endpoint_off_grid": "warning",+ "extra_units": "error",+ "field_name_whitespace": "warning",+ "footprint_filter": "ignore",+ "footprint_link_issues": "warning",+ "four_way_junction": "ignore",+ "global_label_dangling": "warning",+ "ground_pin_not_ground": "warning",+ "hier_label_mismatch": "error",+ "isolated_pin_label": "warning",+ "label_dangling": "error",+ "label_multiple_wires": "warning",+ "lib_symbol_issues": "warning",+ "lib_symbol_mismatch": "warning",+ "missing_bidi_pin": "warning",+ "missing_input_pin": "warning",+ "missing_power_pin": "error",+ "missing_unit": "warning",+ "multiple_net_names": "warning",+ "net_not_bus_member": "warning",+ "no_connect_connected": "warning",+ "no_connect_dangling": "warning",+ "pin_not_connected": "error",+ "pin_not_driven": "error",+ "pin_to_pin": "warning",+ "power_pin_not_driven": "error",+ "same_local_global_label": "warning",+ "similar_label_and_power": "warning",+ "similar_labels": "warning",+ "similar_power": "warning",+ "simulation_model_issue": "error",+ "single_global_label": "ignore",+ "stacked_pin_name": "warning",+ "unannotated": "error",+ "unconnected_wire_endpoint": "warning",+ "undefined_netclass": "error",+ "unit_value_mismatch": "error",+ "unresolved_variable": "error",+ "wire_dangling": "error"+ }+ },+ "libraries": {+ "pinned_footprint_libs": [],+ "pinned_symbol_libs": []+ },+ "meta": {+ "filename": "scale.kicad_pro",+ "version": 3+ },+ "net_settings": {+ "classes": [+ {+ "bus_width": 12,+ "clearance": 0.2,+ "diff_pair_gap": 0.25,+ "diff_pair_width": 0.2,+ "line_style": 0,+ "microvia_diameter": 0.6,+ "microvia_drill": 0.3,+ "name": "Default",+ "pcb_color": "rgba(0, 0, 0, 0.000)",+ "priority": 2147483647,+ "schematic_color": "rgba(0, 0, 0, 0.000)",+ "track_width": 0.2,+ "tuning_profile": "",+ "via_diameter": 0.8,+ "via_drill": 0.4,+ "wire_width": 6+ },+ {+ "bus_width": 12,+ "clearance": 0.2,+ "diff_pair_gap": 0.25,+ "diff_pair_width": 0.2,+ "line_style": 0,+ "microvia_diameter": 0.6,+ "microvia_drill": 0.3,+ "name": "Antenna_50R",+ "pcb_color": "rgba(255, 0, 0, 0.000)",+ "priority": 2,+ "schematic_color": "rgba(255, 0, 0, 0.000)",+ "track_width": 0.3,+ "tuning_profile": "",+ "via_diameter": 0.8,+ "via_drill": 0.4,+ "wire_width": 6+ },+ {+ "bus_width": 12,+ "clearance": 0.5,+ "diff_pair_gap": 0.25,+ "diff_pair_width": 0.2,+ "line_style": 0,+ "microvia_diameter": 0.6,+ "microvia_drill": 0.3,+ "name": "Power_20mil",+ "pcb_color": "rgba(255, 165, 0, 0.000)",+ "priority": 1,+ "schematic_color": "rgba(255, 165, 0, 0.000)",+ "track_width": 0.5,+ "tuning_profile": "",+ "via_diameter": 0.8,+ "via_drill": 0.4,+ "wire_width": 12+ },+ {+ "bus_width": 12,+ "clearance": 0.15,+ "diff_pair_gap": 0.15,+ "diff_pair_width": 0.15,+ "line_style": 0,+ "microvia_diameter": 0.6,+ "microvia_drill": 0.3,+ "name": "Weight_Diff",+ "pcb_color": "rgba(0, 128, 0, 0.000)",+ "priority": 0,+ "schematic_color": "rgba(0, 128, 0, 0.000)",+ "track_width": 0.15,+ "tuning_profile": "",+ "via_diameter": 0.6,+ "via_drill": 0.3,+ "wire_width": 6+ }+ ],+ "meta": {+ "version": 5+ },+ "net_colors": null,+ "netclass_assignments": null,+ "netclass_patterns": [+ {+ "netclass": "Weight_Diff",+ "pattern": "WS1_*"+ },+ {+ "netclass": "Power_20mil",+ "pattern": "3V3*"+ },+ {+ "netclass": "Power_20mil",+ "pattern": "VBAT*"+ },+ {+ "netclass": "Power_20mil",+ "pattern": "VBUS*"+ },+ {+ "netclass": "Antenna_50R",+ "pattern": "ANT*"+ }+ ]+ },+ "pcbnew": {+ "last_paths": {+ "gencad": "",+ "idf": "",+ "netlist": "",+ "plot": "",+ "pos_files": "",+ "specctra_dsn": "",+ "step": "",+ "svg": "",+ "vrml": ""+ },+ "page_layout_descr_file": ""+ },+ "schematic": {+ "annotate_start_num": 0,+ "annotation": {+ "method": 0,+ "sort_order": 0+ },+ "bom_export_filename": "${PROJECTNAME}.csv",+ "bom_fmt_presets": [],+ "bom_fmt_settings": {+ "field_delimiter": ",",+ "keep_line_breaks": false,+ "keep_tabs": false,+ "name": "CSV",+ "ref_delimiter": ",",+ "ref_range_delimiter": "",+ "string_delimiter": "\""+ },+ "bom_presets": [],+ "bom_settings": {+ "exclude_dnp": false,+ "fields_ordered": [+ {+ "group_by": false,+ "label": "Reference",+ "name": "Reference",+ "show": true+ },+ {+ "group_by": true,+ "label": "Value",+ "name": "Value",+ "show": true+ },+ {+ "group_by": false,+ "label": "Datasheet",+ "name": "Datasheet",+ "show": true+ },+ {+ "group_by": false,+ "label": "Footprint",+ "name": "Footprint",+ "show": true+ },+ {+ "group_by": false,+ "label": "Qty",+ "name": "${QUANTITY}",+ "show": true+ },+ {+ "group_by": true,+ "label": "DNP",+ "name": "${DNP}",+ "show": true+ }+ ],+ "filter_string": "",+ "group_symbols": true,+ "include_excluded_from_bom": false,+ "name": "Grouped By Value",+ "sort_asc": true,+ "sort_field": "Reference"+ },+ "bus_aliases": {},+ "connection_grid_size": 50.0,+ "drawing": {+ "dashed_lines_dash_length_ratio": 12.0,+ "dashed_lines_gap_length_ratio": 3.0,+ "default_bus_thickness": 12.0,+ "default_junction_size": 40.0,+ "default_line_thickness": 6.0,+ "default_text_size": 50.0,+ "default_wire_thickness": 6.0,+ "field_names": [],+ "hop_over_size_choice": 0,+ "intersheets_ref_own_page": false,+ "intersheets_ref_prefix": "",+ "intersheets_ref_short": false,+ "intersheets_ref_show": false,+ "intersheets_ref_suffix": "",+ "junction_size_choice": 3,+ "label_size_ratio": 0.3,+ "operating_point_overlay_i_precision": 3,+ "operating_point_overlay_i_range": "~A",+ "operating_point_overlay_v_precision": 3,+ "operating_point_overlay_v_range": "~V",+ "overbar_offset_ratio": 1.23,+ "pin_symbol_size": 25.0,+ "text_offset_ratio": 0.3+ },+ "legacy_lib_dir": "",+ "legacy_lib_list": [],+ "meta": {+ "version": 1+ },+ "net_format_name": "",+ "ngspice": {+ "fix_include_paths": true,+ "fix_passive_vals": false,+ "meta": {+ "version": 0+ },+ "model_mode": 0,+ "workbook_filename": ""+ },+ "page_layout_descr_file": "",+ "plot_directory": "",+ "reuse_designators": true,+ "space_save_all_events": true,+ "spice_adjust_passive_values": false,+ "spice_current_sheet_as_root": false,+ "spice_external_command": "spice \"%I\"",+ "spice_model_current_sheet_as_root": true,+ "spice_save_all_currents": false,+ "spice_save_all_dissipations": false,+ "spice_save_all_voltages": false,+ "subpart_first_id": 65,+ "subpart_id_separator": 0,+ "top_level_sheets": [+ {+ "filename": "scale.kicad_sch",+ "name": "scale",+ "uuid": "00000000-0000-0000-0000-000000000000"+ }+ ],+ "used_designators": "",+ "variants": []+ },+ "sheets": [+ [+ "c93af7c2-8d58-475f-b200-d5a9d2f9b123",+ "Root"+ ]+ ],+ "text_variables": {+ "BOARD_NAME": "Smart Scale 130x90 4L PLACED 72FP",+ "DATE": "2026-07-22",+ "VERSION": "v1.0"+ },+ "tuning_profiles": {+ "meta": {+ "version": 0+ },+ "tuning_profiles_impedance_geometric": []+ }+}
things/scale.md
diff --git a/things/scale.md b/things/scale.mdnew file mode 100644index 0000000000..e48e202eab--- /dev/null+++ b/things/scale.md@@ -0,0 +1,121 @@+# Smart Scale — AFE4300PNR + nRF52840 + ETA9741++Goal is 0 to 180 kilogram weight plus minus 0.1 kilogram after averaging and body fat plus minus 2 to 3 percent foot to foot. Bluetooth Low Energy to the Things app.++If you weigh without a phone, the scale saves the measurement to internal flash with a timestamp and shows saved on the display. Later you bring the phone near and press Sync in the app, the phone connects and wakes the scale and pulls stored history so no weigh in is lost.++## Block Diagram++```+USB Type C 5V -> ETA9741 -> battery -> 3.3V via inductor -> 3V3 system+3V3 -> ferrite bead -> 3V3 analog -> AFE4300+3V3 -> nRF52840 main chip, OLED display, accelerometer++Load cells 4x 50kg direct solder:+ Red to WS5 pin36, Black to WS6 pin37 ground+ Whites diagonal: front left plus rear right to WS1_P pin30, front right plus rear left to WS1_N pin31 via filter++Electrodes 4 stainless:+ Pogo pad -> 3.3k resistor -> protection diode to ground -> 1k resistor -> 100nF capacitor -> AFE4300+ I_OUTP pin13 to left heel drive, I_OUTN pin14 to right heel drive+ V_INP pin15 to left toe sense, V_INN pin16 to right toe sense++SPI 1MHz nRF to AFE4300, I2C 400kHz nRF to OLED and accelerometer+nRF makes 8MHz clock for AFE4300, PCB antenna to phone+```++## Bill of Materials — LCSC codes and single quantity price++Prices from JLC parts database 2026-07-22.++### Main chips++| Ref | LCSC | MPN | Qty | Price | Purpose |+|---|---|---|---|---|---|+| U2 | C528638 | AFE4300PNR | 1 | $6.8996 | This chip measures both weight and body fat. It provides a stable voltage to the load cells, reads the tiny voltage from the weight bridge for weight, creates a small alternating current that flows between the feet, and measures the returning voltage to compute body impedance. |+| U1 | C190794 | NRF52840-QIAA-R | 1 | $5.7803 | This is the main microcontroller that runs the program and talks to the phone over Bluetooth Low Energy. It advertises once per second so the phone can wake it later, controls the screen over I2C, reads the accelerometer, stores past weigh ins to flash memory, and provides USB for flashing. |+| U3 | C7465513 | ETA9741E8A | 1 | $0.1586 | This is the only power management chip. It takes 5 volt from USB, charges the lithium battery at 500 milliamp, makes a stable 3.3 volt supply that can handle 1.5 amp peaks for the radio, and protects the battery from over voltage and over current, and has a shipping sleep mode under 2 microamp. |+| U4 | C110926 | LIS2DH12TR | 1 | $0.8395 | This accelerometer detects when someone steps on the scale. When acceleration exceeds 1.2 times gravity it sends an interrupt to wake the main chip immediately so the weight can be measured right away. |++### Electrode protection++| Ref | LCSC | MPN | Qty | Price | Purpose |+|---|---|---|---|---|---|+| D-ESD | C84374 | PESD5V0S1BL,315 | 4 | $0.0227 each | This diode protects the measurement chip from static electricity when a foot touches the plates. It has very low capacitance so it does not disturb the body fat measurement, and it shunts a static zap to ground before it can damage the chip. |++### Clocks and magnetics++| Ref | LCSC | MPN | Qty | Price | Purpose |+|---|---|---|---|---|---|+| Y-32M | C32346 | Q13FC13500004 32MHz | 1 | $0.1744 | This crystal gives the accurate 32 megahertz clock that the Bluetooth radio needs to stay on frequency. |+| Y-32k | C12674 | 32.768kHz crystal | 1 | $0.0995 | This crystal keeps the real time clock running while the board sleeps. It gives timestamps to stored weigh ins and times the one second Bluetooth advertising interval. |+| L1 | C5832372 | FTC252012S2R2MBCA 2.2uH | 1 | $0.0341 | This inductor stores energy for the switching regulator inside the ETA9741 chip. It must handle high current during Bluetooth transmission. No base category inductor exists with high enough saturation current in the JLC catalog. |+| FB1 | C1002 | GZ1608D601TF ferrite bead | 1 | $0.0189 | This ferrite bead filters noise and separates noisy digital power from clean analog power going to the weight and body fat chip. |++### Connectors++| Ref | LCSC | MPN | Qty | Price | Purpose |+|---|---|---|---|---|---|+| J-USB | C165948 | TYPE-C-31-M-12 Type-C | 1 | $0.1858 | This connector brings in 5 volt from a USB cable for charging and provides the data lines to the main chip for flashing firmware and logs. |++Load cell wires are soldered directly to board pads with glue for strain relief to avoid a connector.++### Capacitors — Base free++| LCSC | Value | Qty | Price | Purpose |+|---|---|---|---|---|+| C307331 | 100nF 50V 0402 | 11 | $0.0076 | Four block direct current so only alternating current can enter the body on each electrode for safety. Seven are placed close to chip power pins to filter power supply noise and keep the voltage stable. |+| C15195 | 10nF 50V 0402 | 6 | $0.0035 | Two filter common mode noise on the weight inputs, two filter the internal analog filter pins on the body fat chip, and two are extra decoupling capacitors near chips. |+| C23733 | 4.7uF 10V 0402 | 5 | $0.0192 | These hold charge near the analog supplies of the measurement chip and at the power chip output to keep voltage from dropping during Bluetooth transmission. |+| C15525 | 10uF 6.3V 0402 | 3 | $0.0199 | These are bulk capacitors at the power chip input from USB, at the battery pin, and at the microcontroller power pin to smooth the supply. |+| C59461 | 22uF 10V 0603 | 2 | $0.0238 | These large capacitors at the 3.3 volt output handle fast load changes when the radio turns on and transmits. |+| C12530 | 2.2uF 10V 0402 | 1 | $0.0078 | This capacitor stabilizes the internal voltage reference inside the measurement chip so body fat readings stay steady. |+| C52923 | 1uF 16V 0402 | 2 | $0.0143 | One decouples the digital supply of the measurement chip and one forms a delay on the enable pin so the chip powers up in the correct order. |++### Resistors — Base free except reference++| LCSC | Value | Qty | Price | Purpose |+|---|---|---|---|---|+| C11702 | 1k 1% 0402 | 6 | $0.0011 | Two limit current and form a low pass filter with capacitors on the weight inputs. Four are second stage safety resistors after the protection diodes on each electrode to further limit current into the body. |+| C22978 | 3.3k 1% 0603 | 4 | $0.0019 | First stage safety resistors placed close to each electrode entry pad. Together with the 1k resistor they keep body current under 500 microamp even if the drive pin shorts, which meets the safety limit for body contact. |+| C25900 | 4.7k 0402 | 2 | $0.0011 | These pull the data line and clock line of the two wire bus high so the screen and accelerometer can communicate with the main chip. |+| C25905 | 5.1k 0402 | 2 | $0.0009 | These pull the USB Type C configuration pins to ground to tell the charger to provide 5 volt at 500 milliamp. |+| C25744 | 10k 0402 | 6 | $0.0029 | These hold chip select, data ready, reset, bootloader, enable, and button lines high when not being driven so the chips start in a safe state. |+| C26083 | 1M 0402 | 2 | $0.0011 | Two form a voltage divider that reduces battery voltage so the microcontroller can measure battery percent with its analog to digital converter. |+| C4109 | 2k 0402 | 1 | $0.0008 | This resistor sets the lithium battery charge current to 500 milliamp on the power management chip. |+| C852624 | 1k 0.1% 0402 | 1 | $0.0246 | This precise resistor is the calibration reference for body impedance. Its exact value defines all body fat calculations, so it must be high accuracy. A 1 percent error would shift body fat by about 1 percent. |++### Switches++| LCSC | MPN | Qty | Price | Purpose |+|---|---|---|---|---|+| C318884 | tactile switch 5.1mm | 1 | $0.0197 | This button allows bootloader mode when held low at power on for flashing, tare calibration when long pressed 3 seconds with a known weight, and shipping sleep when held 5 seconds to turn off power. It is base category free per your screenshot. |++### Mechanical and display — external, not JLC assembly++| Ref | Qty | Purpose |+|---|---|---|+| Load cells 50kg 3 wire Red Black White | 4 | Metal beams with strain gauges that change resistance under body weight. Four form one full bridge for weight with good rejection of off center loading. |+| Stainless plates 304 50x60mm | 4 | Metal electrodes that touch bare feet. Heel plates drive current, toe plates sense voltage. Gap 5mm per foot avoids direct shorting between drive and sense. |+| Pogo pins 6mm pads | 4 | Spring contacts that connect the board to the stainless plates through the glass top. |+| LiPo 1000mAh JST-PH connector | 1 | Rechargeable battery that powers the board when not plugged into USB. |+| Glass top 8mm tempered 200x300mm | 1 | Structural top with printed isolation to separate electrodes and provide wipeable surface. |+| OLED SSD1306 1.3 inch 128x64 I2C 0x3C | 1 | External display module about $2.80. Shows weight, body fat percent, battery bar, Bluetooth icon, and charging lightning. Replaces discrete LED and buzzer with text and icons. |++## Wiring++### Load cells to AFE4300++Red wires of four cells tied to WS5 pin36 plus 4.7 microfarad to analog ground. Black wires tied to WS6 pin37 to ground plane with single via near chip. Front left white plus rear right white to 1k resistor plus 100 nanofarad differential capacitor to A- plus 10 nanofarad to ground to WS1_P pin30. Front right white plus rear left white to 1k plus 10 nanofarad to ground to WS1_N pin31.++### Electrodes to AFE4300++Plate to pogo pad to 3.3 kiloohm resistor near entry to protection diode to ground via under 4 millimeters to 1 kiloohm resistor to 100 nanofarad blocking capacitor to chip. Left heel drive to I_OUTP pin13, right heel drive to I_OUTN pin14 for current drive. Left toe sense to V_INP pin15, right toe sense to V_INN pin16 for voltage sense. Filter pins 11 and 12 each 10 nanofarad to ground. Reference pin18 1 kiloohm 0.1 percent to ground close to chip.++### nRF52840 to AFE4300 and sensors++High voltage supply pin to 3.3 volt from power chip, digital power pins each 100 nanofarad plus 4.7 microfarad bulk. Programming pins SWDIO P0.18 and SWCLK P0.17. Crystals 32 megahertz on XC1 XC2 and 32.768 kilohertz on XL1 XL2 for real time clock. SPI 1 megahertz: clock P0.13 to pin55, master out P0.12 to pin54, master in P0.11 from pin53, chip select P0.14 pin52 with 10 kiloohm pull up, data ready P0.20 pin50 with pull up as falling interrupt, reset P0.22 pin51 with pull up. I2C0: data P0.30 with 4.7 kiloohm pull up and clock P0.31 with pull up to OLED address 0x3C and accelerometer address 0x18 interrupt to P0.09. P0.09 wakes on step over 1.2 times gravity. Button on P0.10 with pull up for tare and bootloader. P0.03 analog reads battery divider plus capacitor. USB Type C voltage bus to power chip input 10 microfarad, configuration pins 5.1 kiloohm to ground, data minus to USB D- pin, data plus to USB D+ pin. Antenna radio pin to matching network of 1 picofarad capacitor plus 2.7 nanohenry inductor plus 0.8 picofarad capacitor to PCB trace antenna with keepout 5 millimeter with no battery or plates under it. Main chip generates 8 megahertz square wave on a pin to AFE XIN pin58, XOUT not connected. Bluetooth advertises once per second about 15 microamp average and is connectable for phone wake.++### Power ETA9741++5 volt from USB to input pin20 with 10 microfarad. Battery pin to JST lithium battery plus 10 microfarad with internal protection over voltage 4.43 volt over current 3 amp. Switch pin to inductor L1 2.2 microhenry to output node 3.3 volt fixed with two 22 microfarad plus 100 nanofarad at star. Output to digital 3.3 volt to nRF plus ferrite bead to analog 3.3 volt to AFE analog supplies pins 23, 45, 64. Enable to general pin plus 10 kiloohm pull up to battery, low equals shipping sleep under 2 microamp. Charge enable to ground, ISET 2 kiloohm equals 500 milliamp charge, temperature pin 10 kiloohm to ground. Battery percent read via divider. Ground four layer with solid ground on layer two and single analog digital tie under measurement chip.