P18043: Tremor Mitigation DAQ
/public/

Preliminary Detailed Design

Table of Contents

Team and Individual visions for the Preliminary Design Phase

Key Questions for this Phase

EMG

  1. Can we properly place the EMG electrodes?
  2. Can we collect EMG data for ourselves?
  3. Can we tell an ET patient from a normal patient?
  4. What are the appropriate processing filters?
  5. Can we identify the different muscle groups?
  6. Will our electrode placement pick all desired muscle signals?

Electrical

  1. Which 9-DOF sensor should be purchased?
  2. Can sensor output independent roll, pitch, and yaw?
  3. Can the sensor output independent X, Y, Z acceleration?
  4. Can the two above output data at the same time?
  5. Is the data being collected correct?
  6. How to log the data? C++? Python?
  7. What Bluetooth shield should be purchased?

Physical Assembly

  1. Is it feasible to have the Arduino worn on the forearm?
  2. Is it feasible to create a prototype solely for sensor calibration and testing?
  3. What parts will require manufacturing?
    • What material should the parts be made from?
    • What method of manufacturing should be used to create these parts?
  4. Is 3D printing these parts viable?
  5. What parts will require purchasing?
    • Do the prices and lead times of these parts fit our plan and budget?
  6. How should the sensors and electronics be mounted on the device?

Team and Individual Action Items

For this phase, our team as a whole desired to acquire baseline data and perform initial calibration of the sensors purchased during the system design phase. The team as whole will use the valuable information gained during this phase to create a more complete and accurate design. During this phase team members also took more responsibility for their own specialized tasks and design work. The main team member specific action items are as follows:

Dani and Elizabeth:

  1. Tested individual movements using limited variables
  2. Consulted with several potential SMEs
  3. Analyzed data for preliminary data acquisition
  4. Test Protocols for EMG acquisition
  5. Ordered additional electrodes

Saidhon and Lucas:

  1. Ordered Bluetooth sensor
  2. Initial setup for Arduino
  3. Calibrated and tested accelerometer sensor
  4. Connected and tested Bluetooth shield with Arduino
  5. Created and set up a GitHub Repository for codebase
  6. Implemented a Python script to save/log data collected from sensors

Rich:

  1. Consult team about their needs and requirements regarding the key questions to better define them and help create more accurate solutions
  2. Create hand sketches and a high-level plan of the sensor calibration and final prototype
  3. Determine manufacturing requirements and methods for the test and final assembly
  4. Create accurate CAD models of COTS selected during previous phases to help determine the required device
  5. Create CAD models for manufactured parts
  6. Create assembly models
  7. Use CAD models, team input, and the high-level plan to determine Arduino placement feasibility
  8. Select fasteners and other COTS for test and final assemblies
  9. Generate and continuously update BOM
  10. Investigate Construct capabilities and 3D printing

A more detailed view of our team and individual goals can be found under the Planning and Execution tab

Prototyping, Engineering Analysis, Simulation

Electrical

The first part of this phase involved deciding on what 9-DOF sensor was going to be used to record the motion data for the ETs. Multiple different 9-DOF sensors were considered, but the Adafruit BNO055 board was selected because it already had a large software library, and it had functions built in to display the data we wanted.
Adafruit BNO055

Adafruit BNO055

After selecting the sensor, the format of the data collection needed to be decided on. After reading the specification sheet of the BNO055 sensor, it was clear that the roll, pitch, and yaw of the sensor could be displayed in either Quarternions or Eulers. It was decided on to display the data in Quaternions because it is easier to understand because the values are in degrees. The following picture describes the Quarternion system. With respect to the hand's acceleration in the x, y, and z directions, it was decided on to go with the linear acceleration output instead of just normal acceleration. This was decided because the linear acceleration function takes out the acceleration due to gravity. The output from the sensor is in m/s^2.

Quarternions

Quarternions

The last bit analysis done for this phase for the electronics on the device was the selection of a Bluetooth module to be able to transmit the data from the device to a computer. For this selection multiple different factors needed to be considered. Some of these factors were: range of the signal, power, connection type, cost, size of the module, software library, and availability. The first module that was examined was an Adaruit Bluefruit EZ-Link. This device had everything that was required, but unfortunately, the device is being redesigned by Adafruit at the moment, so it could not be purchased at the current time. This led to us finding the Adafruit Bluefruit LE Shield. This device is very similar to the EZ-Link, but it is not as robust. The LE shield still gave the flexibility of multiple methods of connections, fit on top of the processor, and had a reasonable range of 10m of communications. The following picture is the Adafruit Bluefruit LE Shield.

Adafruit Bluefruit LE Shield

Adafruit Bluefruit LE Shield

With all of the components selected, initial design and testing of the electrical subsystems could begin. The following pictures show the overall schematic of the current electrical systems.

Current Electrical Schematic

Current Electrical Schematic

Current Electrical Configuration

Current Electrical Configuration

High Level Physical Assembly Planning

At the beginning of this phase there was interest to design and create a physical prototype for sensor calibration purposes. To determine whether this goal was feasible and to begin the design process if it was, a high level plan and hand sketches were created. An example of these hand sketches is pictured below
Hand Sketch

Hand Sketch

Based on this plan preliminary answers for the following physical assembly key questions were found.

What parts should be manufactured and how should they be manufactured?

Based on this planning it was determined that the calibration prototype would require 2 manufactured components:

For this prototype, the selected method for creating both of these parts was 3D printing. 3D printing was initially selected as the manufacturing process for these parts for the following reasons:

The desire to 3D print these parts resulted in a 3D printing feasibility investigation detailed in our feasibility section lower on this page.

How should the sensors and electronics be attached?

As a result of our initial planning it was determined that machine screws and nuts should be used to secure electronics and sensors for the following reasons:

The following image depicts a CAD model of the proposed sensor base for the hand with sensors secured with fasteners.

Hand Assembly

Hand Assembly

Hand Assembly Top

Hand Assembly Top

Feasibility: Prototyping, Analysis, Simulation

EMG Testing

Goal: Gather a baseline of EMG data from both a normal subject and and ET patient to get a better understanding the EMG data we will be working with as well as the processing and analysis that we would have complete. In addition, we wanted to test out determined electrode placement.

Equipment: AD instruments hardware; 2 PowerLab26, 4 sets of electrodes (4 positive and negative electrode cables, 2 reference electrode cables), Sticky electrodes, Electrode gel for better conduction, LabChart 7.

Equipment

Equipment

Preliminary Electrode Placement

The first image shows the example placement we tried to mimic on each individual. We tested normal individuals with different forearm sizes to get an idea of how the initial electrode placement will work on different people.

Electrode Placement

Electrode Placement

Preliminary Results

Data was collected for both an ET patient and a 3 different non-ET volunteers. Images below show a sample of data for from our ET patient and one of non-ET volunteers where both start with their arm stretch out straight in front of them and then complete a single slow wrist extension movement. The time where the patient and volunteers had their right arm stretch out in front of them was defined as the baseline stability.

Data collected from ET patient

Data collected from ET patient

Data collected from

Data collected from "Normal" volunteer

See link in Test Plans section for the complete procedure of EMG baseline testing.

From this testing, we have developed key questions to answer for the next phase.

Electrical Feasibility

Goals: Confirm proper operation of 9-DOF sensor, confirm device can output data to determine roll, pitch, and yaw, confirm device can output linear acceleration, confirm both position and motion data can be output at the same time, confirm data can be logged into a .csv file, initial Bluetooth configuration

Confirm Proper Operation of 9-DOF Sensor: The first part of feasibility was to confirm that the Adafruit BNO055 board we received worked properly and to set-up the software libraries. The board was confirmed to work by using multiple different programs from Adafruit that output data such as raw position data from the sensors and values from the onboard accelerometer, gyroscope, and magnetometer.

Confirming Output of Roll, Pitch, Yaw, and Linear Acceleration: Roll, Pitch, Yaw, and Linear Acceleration are the values that are needed to be output by the device. Obtaining these values to be output together involved three steps: output roll, pitch, and yaw, output linear acceleration, and then output both at the same time. This was done by modifying example code provided by Adafruit. The following capture is an example output of the sensor. In this case, the blue is the x-axis, the green is the y-axis, and the red is the z-axis. The values on the vertical axis are degrees that the device is rotated from the origin. The horizontal axis is the number of samples taken.

 Initial Testing of BNO055

Initial Testing of BNO055

Through this testing, it was confirmed that the proper Quarternion data could be collected, and linear acceleration was also collected. Currently, it is the hope that the acceleration data will be able to show the shaking due to the Essential Tremors.

Logging the Data from Sensors: Methods of logging the data were also explored in this phase. Different methods of data logging were examined. At first, it was attempted to log the data with code that would be loaded to the Arduino, but this was seen as unpractical because we are sending data to a computer via Bluetooth. This means that a script could be used to log the incoming data. After some research, a script that monitored the serial port of the computer and then put that data into proper columns in a .csv file was created using Python. This Python will later be expanded to include the data from the EMG sensors and the feature to upload the data to a server.

Initial Bluetooth Testing: Once the Bluetooth module was received, initial testing was started. These tests involved making sure that the Bluetooth module was functioning correcting and confirm that the amount of required data could be transmitted via Bluetooth. The first test that was performed was done using sample code provided from Adafruit. This code toggled an LED on the Bluetooth Module, and the request to change LED came from a cell phone connected via Bluetooth. This worked as expected, so it was confirmed that the Bluetooth module was wired correctly and was transmitting correctly. Next, another sample code from Adafruit was tested to be able to confirm that proper bandwidth was available for the data we need to transmit. In this test, motion and position data provided by the sensors on a cell phone were transmitted to the Arduino via the Bluetooth module and then communicated to the PC via a serial connection. This test also worked as expected. This confirmed that bandwidth will not be a problem and we will be able to transmit all of the required data properly. This test also opened up another method of confirming that our sensors are working properly by comparing the values found by a cell phone to our BNO055 data.

3D Printing and Calibration Prototype Feasibility

In order to test the feasibility of creating a calibration prototype and the feasibility of using 3D printed parts, the following steps were taken:

The Construct's Capabilities

When working through the Construct students have access to multiple FlashForge Creator Pro printers that have the following properties:

The Construct also has a GigaBot Large-format 3D Printer however students have significantly less access to this printer.

3D printing Results

Based on research and talking with individuals at the construct it was determined that 3D printing the Arduino base is not the best option for its current geometry. This was determined for the following reasons:

It was also determined that creating a calibration prototype was unfeasible due to the additional lead time and effort associated with machining the Arduino base out of sheet plastic. However, it was determined that the hand sensor base could be 3D printed if desired, so as a means to test the Construct's 3D printing capabilities, the part was printed. The following is an image of the resulting 3D printed part.

3D Hand Base - Top

3D Hand Base - Top

3D Hand Base - Bottom

3D Hand Base - Bottom

Some observations regarding the 3D printed part:

As a result of this 3D printing investigation the following key questions will need to be answered next phase:

  1. What type of plastic should parts be machined from?
  2. Is 3D printing a viable method for creating the covers for our electronics?
    • If not how should these covers be manufactured?

Arduino Placement Analysis

One of our main risks going into this phase was that our device may be too bulky on the arm. As a result, an investigation was launched to see if the Arduino device along with the power would fit on the forearm without interfering with electrode placement. To do this the following tasks were completed.

Determining the Maximum Length a Device Can Extend Along the Forearm

In order to achieve this goal, the forearms of our team members were measured. Using their measurements and knowledge gained through the preliminary placement of electrodes, it was determined that the device can extend at most 5” along the average team members forearm. This is a significant restriction since the Arduino Mega itself is approximately 4.5” long x 2.25” wide.

Determining if the Required Components Could Fit in The Allotted Space

To accomplish this the following actions were taken:

CAD models of the COTS can be found within the Drawings, Schematics, Flow Charts, Simulations section. The following image depicts the component fit assembly.

Phase 3 Fit Assembly

Phase 3 Fit Assembly

Arduino Placement Analysis Results

Based on this feasibility testing it was determined that the Arduino and other electronic devices could not be on the forearm without being too bulky or encroaching on the electrodes. As a result, the following key questions will need to be answered next phase:
  1. What are the consequences of moving the electronics to the upper arm?
  2. What is the best method to deal with the additional length of wire?
  3. What are some options to secure our wires and connections?
  4. What are the associated risks with this move and how do we mitigate them?

Drawings, Schematics, Flow Charts, Simulations

CAD Models

All CAD files generated during the detailed design phase can be found here. Phase_3_CAD_Files

Some select parts are pictured bellow.

COTS

Arduino Mega Model:

Arduino Model

Arduino Model

3D PDF can be found here: Arduin_Mega_3

MyoWare Sensor and Electrodes Model:

Myoware Model

Myoware Model

3D PDF can be found here: Myoware_3

Adafruit 9-DOF Absolute Orientation IMU Fusion Breakout:

9-DOF Model

9-DOF Model

Manufactured Parts

Hand Sensor Base:

Hand Base Iso

Hand Base Iso

Hand Base Bottom

Hand Base Bottom

3D PDF can be found here: Tech_Base_Hand

Bill of Material (BOM)

Our Completed Bill of Materials owned by Rich:

public/web/photo gallery/BOM.png

Here is a link to our Bill of Materials Live Document

Test Plans

EMG

Here is the link for Baseline EMG Testing Procedure. This document also contains notes of observations made throughout testing. Here is a link for Preliminary EMG sensor testing. Here we used the EMG collection equipment available to us to gather some data to test our Myoware senors against once we get those up and running.

Risk Assessment

Here is the Updated Risk assessment from Subsystems Design.
Updated Risks

Updated Risks

Design Review Materials

Here is the pre-read that was sent out 24 hours prior to review. Here is the final presentation.

Plans for next phase

Here we provide a link to our updated project plan. It is an Excel file with a few different tabs. The first tab, Project Planner, contains the overall schedule for the project. The second tab, Changes made to week 7-11, contains the adjustments made to the planned tasks during this phase. The third tab, Individual Accomplishments wk 11, lists the accomplishments of each team member completed during this phase. The final tab, Individual goals for wks 12-15, provides the goals/ planned action items for each member for the next phase.

Home | Planning & Execution | Imagine RIT

Problem Definition | Systems Design | Preliminary Detailed Design | Detailed Design

Build & Test Prep | Subsystem Build & Test | Integrated System Build & Test | Customer Handoff & Final Project Documentation