Coder Social home page Coder Social logo

moldingmanikin's Introduction

MoldingManikin

Arduino code for a prototype CPR training manikin that simulates dampening on recoil to make compressions feel more realistic. Uses a solenoid coil wrapped around the manikin spring (shown in picture below) to adjust the spring force throughout the recoil. A motor driver controls the voltage (using PWM) through the coil to adjust magnetic force. See here for a video demo. You can see the chest recoil looks more like a nerf ball reinflating than a spring shooting back up.

Picture of the inside of the manikin

Mechanical Setup

Uses an accelerometer at the base of the chest plate (shown below) along with a series of kalman filters (for smoothing) to estimate depth.

Picture of the accelerometer

Arduino Code

  • MoldingManikin.ino - The main arduino code file. Contains setup() and loop() functions. Handles setup and manages other .ino files below. Also accepts and handles input for these settings:
    • Damping magnitude (Recoil Time) - Set inside CPRDummy android app set to "Damping Test" mode.
    • Molding (residual damping) - Set using a potentiometer (optional)
  • bluetooth_connection.ino - Sends depth and ventilation data over bluetooth to CPRDummy android app.
  • magnet_control.ino - Sets direction and magnitude of magnet force
  • accelerometer.ino - Handles accelerometer input and converting to usable depth (z) data for calculations. Uses a stack of 2 kalman filters for smoothing.
  • ventilations.ino - Reads ventilation velocity sensor. Uses a kalman filter to smooth raw data.
  • KalmanSmooth - My library for handling real-time smoothing of sensor data using a kalman filter.

moldingmanikin's People

Contributors

njwidmann avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.