Close

Implementation of a 3D Scanner Arm

A project log for 3D Scanner Arm Control Board

Development of a rotary scanning arm control system

walker-arceWalker Arce 01/18/2020 at 05:010 Comments

Abstract

Three-dimensional scanning technology has reduced dramatically in price and ease of implementation.  Unfortunately, these low-cost, three-dimensional scanning systems lack intuitive tracking during the scanning of a part.  This leads to issues with mesh alignment during scanning, inaccuracies in the completed mesh and additional time to scan completion.  This is problematic, especially when dealing with human subjects, where fatigue and impatience become a problem for the completion of a stationary scan.  To address this, we have developed a low-cost, simple to use, and repeatable apparatus which rotates any scanner or camera about the central axis of the part being scanned.

Introduction

Historically, the production of sockets for prostheses and orthoses has been an involved process that requires clinician intervention in the molding, casting, and fitting to the residual limb [1].  The consequence of this process is high expense and long turnaround time, resulting in ineffective prosthesis prescription especially in recent amputees whose training with a prosthesis is crucial immediately after injury [2].  To address these issues, the implementation of recently emergent technologies, such as 3D scanning and additive manufacturing, has been experimentally and clinically applied to stream line this process [1], [3].  In general, these studies have either relied on complex, expensive, and difficult-to-implement scanning and manufacturing technologies which limited their applicability in the clinic or used extremely low cost and low-quality equipment which led to questionable applicability [4-6]. 

The purpose of this present investigation is to create a stable platform for low-cost 3D scanners which eliminates reliability concerns in the production of accurate additively manufactured sockets for use in prosthetic and orthotics. 

Methodology

Creation of a Custom Control System

To fulfill the requirements of this study, a custom printed circuit board will be designed in the EAGLE EDA package from Autodesk.  This system will need to be able to control the NEMA 23 stepper motor that drives the gearing of the arm as well as accept input from the user’s computer in order to configure the system.  Possible configuration changes would be altering the rotations per minute (RPM) of the motor to accommodate scanner quality.  For instance, a lower quality scanner may need a slower RPM to capture a similar mesh density to a higher quality scanner. 

In addition, the integrated motor driver will require thermal relief and careful design to ensure that the high current of the motor will not overheat the driver chip, causing the motor to stop in its rotation and the system failing.  This behavior is mainly characterized by the current limiting of the chip, which is where careful consideration of the calculations is necessary [7].  To calculate the maximum current of the motor coils the following equation is used:

And when solved for the reference voltage (Vref), becomes:

By incorporating a trim potentiometer into the voltage reference pin of the motor driver, we can dynamically change this and tune it to suit our motor.  The only dependent parameter is Rcs which is the current sensing resistor used in the design of the motor driver.  This will normally be in the range of milli-Ohms.

The implemented power supply should be capable of supplying both the motor driver and motor, but also the supporting microcontroller circuitry and active cooling elements.  Motor drivers and motors can normally operate on voltages in the range of 12V – 24V if not higher, so a wall plug power supply is suitable if it can deliver the currents necessary, which can be in the range of 1A – 3A.  The microcontroller implemented should have a USB interface to allow for the configuration changes to be applied, as well as enough input/output pins to drive the multiple pins of a motor driver.  Finally, the active cooling elements used are a set of push/pull fans that are mounted on both sides of the housing to pull heat out of the interior chamber of the scanner arm.

The mentioned elements are characterized in the block diagram shown, which shows the control flow of the system, with the output being the stepper motor actions.  At this point in time, no considerations were made on the ability to interface with a scanner through this system, as the complexity faced with integration of multiple scanners would be outside the scope of this study.  The interfacing of the scanner is handled by the user’s PC with a separate USB port.

Results

Custom Electronic Control System

The designed control system was able to fulfill the requirements of the study.  The integrated motor driver runs with very limited heating when driving the scanner arm.  It has a small enough footprint to be integrated into a small housing chamber that increases the efficiency of the cooling and the cost of the system is under thirty USD.

The thermal considerations for the design were implemented within the specification of the datasheets provided by Allegro Microsystems [7], as the A4988 motor driver was used.  This incorporates 68mΩ sense resistors with a 10kΩ to adjust the motor coil current.  The A4988 is controlled u sing an ATmega32u4RC USB microcontroller from Microchip which not only incorporates the USB interface required but also twenty-six input/output lines [8]. 

By following the datasheet specifications for the A4988, a thermally resilient design was realized as shown [7].

Similarly, by following the specification for the ATmega32u4, a reliable and repeatable design was realized that is optimized for the space that it was designed in [8].

The overall system is shown, including the 5V regulator, screw terminal block for power input as well as power output for the active cooling fans.  The programming pins of the ATmega32u4 can also be seen along with USB interface and stepper motor connector.

Testing of the Apparatus

Testing was performed using a stand-in for a human subject, simulating a forearm and hand without fingers. Scanning took place at 8 RPM, and two full rotations about the simulated residual limb were performed before the scan completed, following the protocol that was proposed for this study. 

Results of the procedure appear promising, as the scan required no user intervention and produced repeatable results. Each scan took approximately 30 seconds, which is significantly faster than other comparable methods [5].  The results of the scan are in the gallery.

Discussion

The main drawback of the designed control board is the incorporation of a trim potentiometer to adjust the current of the motor coils.  This could have been implemented through the microcontroller’s ability to generate pulse width modulation (PWM) signals to allow for on-the-fly current adjustments which would not only accommodate motors with different current requirements but also allow for the motor current to be increased at the apex of the circular movement to increase the holding torque.  By doing this, the motor would be less likely to skip steps from the increased moment arm generated by the weight of the scanning apparatus throughout its travel circumference.  By then reducing the current once this point is passed, the hazard of the increased current creating enough thermal mass to cause the system to fail is mitigated. 

One limitation of the mechanical design is the physical routing of the wires for the NEMA 23 stepper motor. By using the motor as a counterbalance, the wires were then forced to be housed outside the rest of the assembly and floated freely. In general, this was not problematic, but did lead to anomalous mesh bodies during faster scans which required additional post-processing. Future designs would benefit from static motor mounting to mitigate this issue.

The scope of the test scans produced for this research was limited; rather than testing on a human subject, a simple simulator for an amputee’s residual limb was used. This made repeatability easier by eliminating variability in subject arm placement.

In general, the novel 3D scanning apparatus developed for this study shows promise for the enhancement of low-cost residual limb models. Inconsistencies in the stitching of meshes were rectified by the repeatability and smoothness of scanner trajectories about the simulated residual limb, and scanning times were drastically reduced compared to comparable methods. Operation of the apparatus was simple, and made easily compatible with the existing 3D scanning workflow, allowing for seamless integration into the simulated clinical setting.

Future research relating to this apparatus will focus on the optimization of scanning speed, testing on human subjects, and redesigning for use in lower-limb amputees.

Acknowledgements

I would like to thank the Biomechanics Research Building at the University of Nebraska at Omaha for supporting this study with facilities and laboratory space to perform our experiments.

Funding Received

This research was supported by the NASA Nebraska Student Fellowship.

References

[1] Rosicky, Jiri, et al. “Application of 3D Scanning in Prosthetic and Orthotic Clinical Practice.” Proceedings of the 7th International Conference on 3D Body Scanning Technologies, Lugano, Switzerland, 30 Nov.-1 Dec. 2016, 2016, doi:10.15221/16.088. 

[2] Krebs, D. E., Edelstein, J. E., & Thornby, M. A. (1991). Prosthetic management of children with limb deficiencies. Physical therapy, 71(12), 920-934.

[3] Jin, Yu-An, et al. “Additive Manufacturing of Custom Orthoses and Prostheses – A Review.” Procedia CIRP, vol. 36, 2015, pp. 199–204., doi:10.1016/j.procir.2015.02.125. 

[4] Commean, P. K., Smith, K. E., & Vannier, M. W. (1996). Design of a 3-D surface scanner for lower limb prosthetics: a technical note. J Rehabil Res Dev, 33(3), 267-78. 

[5] Comotti, Claudio, et al. “Low Cost 3D Scanners Along the Design of Lower Limb Prosthesis.” Proceedings of the 6th International Conference on 3D Body Scanning Technologies, Lugano, Switzerland, 27-28 October 2015, 2015, doi:10.15221/15.147. 

[6] Buffa, Roberto, et al. “A New, Effective and Low-Cost Three-Dimensional Approach for the Estimation of Upper-Limb Volume.” Sensors, vol. 15, no. 6, 2015, pp. 12342–12357., doi:10.3390/s150612342.

[7] Allegro Microsystems, “DMOS Microstepping Driver with Translator And Overcurrent Protection”, A4988 datasheet, Jan. 2012 [Revised May 2014]

[8] Microchip, “8-bit Microcontroller with 16/32K bytes of ISP Flash and USB Controller”, ATmega32u4 datasheet, Aug. 2007 [Revised April 2016] 

[9] Anakwe, R. E., Huntley, J. S., & McEachan, J. E. (2007). Grip strength and forearm circumference in a healthy population. Journal of Hand Surgery (European Volume), 32(2), 203-209.

[10] “Sense™3D Scanner.” 3D Systems, www.3dsystems.com/shop/sense/techspecs.

Discussions