Skip to the content
2 layers41 × 36 mmBed sensor, the printed circuit board in 3D

This sensor is built around the open source schematic of the Ardunio Pro Mini and the seperate parts we're tested sepertly and the final board was printed from oshPark.

Size
41 × 36 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
31
Pads
170
Tracks, vias
511, 51
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
15 Mar 2018
Updated
22 Nov 2019

Overview

Bed sensor is an open-source printed circuit board by GaitRehabilitation, from the GaitRehabilitation/bed-sensor repository on GitHub. It is a 2-layer board of 41 × 36 mm with 32 parts on 31 nets, routed with 511 tracks and 51 vias.

It is built around the ATMEGA328-AU, DM3AT-SF-PEJM5 and MIC5205-3.3YM5, with the MPU-9250 among its other parts. Its parts include 9 capacitors, 6 resistors, 5 connectors, 4 ICs and 3 diodes. It belongs with the sensors and measurement boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

Bed Sensor

Background

bed sensor

This sensor is built around the open source schematic of the Ardunio Pro Mini and the seperate parts we're tested sepertly and the final board was printed from oshPark. This is an experemential sensor that makes sure patients roll over within a fixed interval. The model uses a state machine with two states: COUNTING_STATE, and a ROTATING_STATE. The counting state samples the direction of the acceleration vector and during the ROTATING_STATE, the arc angle between the current vector and the sampled data from the counting state determins the rotation of the device from the resting state. A average filter is sampled from the current resting angle of the sensor is sampled by taking 20% of the current sample vector and 80% of the current resting angle. This is a mitigation strategy that avoids sampling from sudden movments and affecting the angle of the sensor. The counting state is reset if the devaition from the scalar vector is greater then .35 g's.

Programming

Tools:

building cpp code scons build. The compiled code produces a hex

avrdude -c <programmer> -p atmega328 -b 57600 -U flash:w:main.hex -U lfuse:w:0xff:m -U hfuse:w:0xd1:m -U efuse:w:0xff:m

avr fuse

Fuse Calculator

Maintainers

The current maintainers of this repository are:

License

text
/**
* Copyright 2018 GaitRehabilitation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

Parts

32
QtyValueFootprintReferences
410kResistor_SMD:R_0805_2012MetricR1, R2, R3, R9
3.1uFCapacitor_SMD:C_0603_1608MetricC4, C5, C6
3.1ufCapacitor_SMD:C_0603_1608MetricC8, C9, C10
110KConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalRV1
110nFCapacitor_SMD:C_0603_1608MetricC2
110uFCapacitors_Tantalum_SMD:CP_Tantalum_Case-T_EIA-3528-12_ReflowC1
110uFCapacitors_Tantalum_SMD:CP_Tantalum_Case-B_EIA-3528-21_ReflowC3
11KResistor_SMD:R_0805_2012MetricR4
12N2219Package_TO_SOT_SMD:SOT-723Q1
1330Resistor_SMD:R_0805_2012MetricR8
1ATMEGA328-AUPackage_QFP:TQFP-32_7x7mm_P0.8mmU3
1Buzzercomponents:PS1240P02BTBZ1
1CFAH0802D-YYH-JPcomponents:CFAH0802D-YYH-JPU5
1Conn_01x02components:JSTPH2J4
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1Conn_01x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1Crystal_GND2components:OSC_CSTCE8M00G55-R0Y1
1DDiode_SMD:D_0603_1608MetricD2
1DM3AT-SF-PEJM5components:HRS_DM3AT-SF-PEJM5J5
1ISPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ3
1LD271LED_SMD:LED_0603_1608Metric_Pad0.67x1.00mm_HandSolderD3
1LEDLED_SMD:LED_0603_1608MetricD1
1MIC5205-3.3Package_TO_SOT_SMD:SOT-23-5U1
1MPU-9250Package_DFN_QFN:QFN-24-1EP_3x3mm_P0.4mm_EP1.75x1.6mmU2
1SW_SPSTcomponents:SW_CuK_OS102011MA1QN1_SPDT_AngledSW1

Similar boards

  • 2 layers17.5 × 29.5 mmMicro logger, the printed circuit board in 3D

    Micro logger

    GaitRehabilitation/mini_data_capture

    The current maintainers of this repository are:

    33 partsApache-2.0
  • 4 layers127.8 × 56.1 mmController, the printed circuit board in 3D

    Controller

    sudo-junkie/Controller

    ESP32-based replacement PCB for UCOM USB game controller, with LCD, IMU, IR TX/RX and more...

    105 parts1
  • 2 layers55.4 × 33 mmWasd code upgrade, the printed circuit board in 3D

    Wasd code upgrade

    cbiffle/keybrain

    Drop-in replacement controller for WASD CODE v2B keyboard

    24 parts82
  • 2 layers65.2 × 100 mmGk midi module, the printed circuit board in 3D

    Gk midi module

    cycfi/nexus

    The Nexus breakout box

    115 parts20
  • 2 layers139 × 139 mmBreeze electronics design, the printed circuit board in 3D

    Breeze electronics design

    microdynamics-robot-quadcopter/breeze_electronics_design

    This project is created and managed by EDA softwares, which contains the breeze quadcopter's component library, footprint library, schematic, printed circuit boards, etc.

    107 parts13GPL-3.0
  • 4 layers16.5 × 16.5 mmRpcube, the printed circuit board in 3D

    Rpcube

    diminDDL/rpcube

    An all in one small BGA package containing an RP2040, easing the integration of an RP2040 into your design.

    90 parts5MIT
  • 2 layers73.7 × 48.3 mmGpsdo3, the printed circuit board in 3D

    Gpsdo3

    glenoverby/gpsdo3

    Improved GPS Disciplined Oscillator

    55 parts5

Questions

How big is the Bed sensor PCB?

It measures 41 × 36 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bed sensor use?

32 parts, built around the ATMEGA328-AU, DM3AT-SF-PEJM5, MIC5205-3.3YM5 and MPU-9250. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Bed sensor KiCad files?

From the GaitRehabilitation/bed-sensor repository on GitHub, at the commit this page was made from: the board is hardware/bed_sensor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bed sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask GaitRehabilitation before reusing the design.