Arduino and Raspberry Pi in a Laboratory Setting

Similar documents
LAB 5: Induction: A Linear Generator

Conservation of Mechanical Energy Activity Purpose

General Physics I Lab (PHYS-2011) Experiment MECH-1: Projectile Motion

AP Physics Problems Simple Harmonic Motion, Mechanical Waves and Sound

2 Electric Field Mapping Rev1/05

Safety: BE SURE TO KEEP YOUR SMART CART UPSIDE-DOWN WHEN YOU RE NOT ACTIVELY USING IT TO RECORD DATA.

Acceleration/Velocity/Displacement VIBRATION METER

General Physics I Lab (PHYS-2011) Experiment MECH-2: Newton's Second Law

Conservation of Mechanical Energy Activity Purpose

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

Community College of Allegheny County Unit 9 Page #1. Thermocouples R1 = 1K

Comparing Experimental Apples and Oranges with Quantile-Quantile Plots

Acceleration, Velocity, Separate probe VIBRATION METER Model : VB-8202

Current Balance. Introduction

Excitation Optimization of a Standard LRC Circuit with Impulsive Forces Selected via Simulated Annealing

PHY 123 Lab 8 - Standing Waves

2: SIMPLE HARMONIC MOTION

ICMIEE-PI Design and Construction of a Digital Anemometer

1 SIMPLE PENDULUM 1 L (1.1)

Simple Harmonic Motion ===============================================

9.1 Harmonic Motion. Motion in cycles. linear motion - motion that goes from one place to another without repeating.

WeatherHawk Weather Station Protocol

OPERATION MANUAL. Acceleration, Velocity RMS measurement, Metric & Imperial unit PEN VIBRATION METER Model : PVB-820

Equipotential Lines and Electric Fields

Electrical and Magnetic Properties of High Temperature Superconductors Using Varying forms of Data Acquisition

PHYSICS 221 SPRING 2013

1 Weight, 100 g, with hook Measuring tape 1 Weight, 200 g, with hook Sandpaper, carpet, or other rough surface

Rotational Motion. Figure 1: Torsional harmonic oscillator. The locations of the rotor and fiber are indicated.

AP PHYSICS 1 UNIT 3 PRACTICE TEST

Newton s Second Law. Sample

The Equivalence Problem: EinsteinMaxwell Solutions

Construction of a Vibrating Structure for Demonstration of Vibration Measurement

Gravity Waves Over Antarctica

Lab 10 - Harmonic Motion and the Pendulum

APPENDIX 1 DESCRIPTION OF HOT WIRE ANEMOMETER

LAB 6 - GRAVITATIONAL AND PASSIVE FORCES

Surveying and trigonometry

Inverted Pendulum System

EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE (V_3)

Acceleration Due to Gravity

LAB 10: HARMONIC MOTION AND THE PENDULUM

Magnetic Fields. Experiment 1. Magnetic Field of a Straight Current-Carrying Conductor

PHY 123 Lab 4 - Conservation of Energy

Evaluation copy. First-Class Levers. computer OBJECTIVES MATERIALS

Pi in the Sky (Sensors) Ian Bragg from Gadsden, AL Jacksonville State University Mentors: Raj and Dr. Loft NCAR SIParCS

Electrical Connections

2: SIMPLE HARMONIC MOTION

MAS.836 PROBLEM SET THREE

Electric and Magnetic Forces

PRELIMINARY ACTIVITY FOR. Seasons and Angle of Insolation

Calibration Routine. Store in HDD. Switch "Program Control" Ref 1/ Ref 2 Manual Automatic

Constant velocity and constant acceleration

Exp. #1-1 : Measurement of the Characteristics of the Centripetal Force by Using Springs and a Computer Interface

Dynamics. Newton s First Two Laws of Motion. A Core Learning Goals Activity for Science and Mathematics

Home-built Apparatus for Measuring Thermal Conductivity of Glass and Polymer Materials

Prerequisites: Successful completion of PHYS 2222 General Physics (Calculus) with a grade of C or better.

Simple circuits - 3 hr

General Physics I Lab. M1 The Atwood Machine

RC Circuit (Power amplifier, Voltage Sensor)

Cosmic Muon Shower Study with QuarkNet

1 SIMPLE PENDULUM 1 L (1.1)

Physics 2310 Lab #3 Driven Harmonic Oscillator

Physics 102: Earth, Air, Fire, and Water Laboratory. Laboratory Manual. Montana State University-Billings

Theory An important equation in physics is the mathematical form of Newton s second law, F = ma

LAB 05B: Friction 2 times PURPOSE BACKGROUND MATERIALS PRELIMINARY QUESTIONS: (TO DO BEFORE THE LAB!!) Lab 05B: Friction 1/5 Mr.

Experimenting with Forces

Lab 10: Harmonic Motion and the Pendulum

OPERATION MANUAL. Acceleration, Velocity RMS measurement, Metric & Imperial unit PEN VIBRATION METER Model : PVB-820

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

THE ACOUSTIC IMPEDANCE MEASUREMNET SYSTEM USING TWO MICROPHONES

Lab 10 Circular Motion and Centripetal Acceleration

AIMS Education Foundation

General Physics I Lab. M7 Conservation of Angular Momentum

AP Physics C: Mechanics Practice (Systems of Particles and Linear Momentum)

GIS Visualization: A Library s Pursuit Towards Creative and Innovative Research

COURSE OUTLINE General Physics I

Circular Motion and Centripetal Force

Galaxy Inclination and Surface Brightness

Design and Fabrication of a Capacitance Dilatometer for use in the Quantum Design Physical Property Measurement System

Electrostatic Breakdown Analysis

Lab: Newton s Second Law

Experiment A11 Chaotic Double Pendulum Procedure

Mechanical and Acoustical Resonators

VMS-GeoMil. Background

Lesson Plan: Introduction to Quantum Mechanics via Wave Theory and the Photoelectric Effect

Elcometer 116C. Sling Hygrometer. Operating Instructions

Lab 9. Rotational Dynamics

RC Circuits. Equipment: Capstone with 850 interface, RLC circuit board, 2 voltage sensors (no alligator clips), 3 leads V C = 1

PHY 123 Lab 9 Simple Harmonic Motion

Activity 1: Investigating Temperature

Lab #2 - Two Degrees-of-Freedom Oscillator

Purpose: Materials: WARNING! Section: Partner 2: Partner 1:

Chemical Kinetics I: The Dry Lab. Up until this point in our study of physical chemistry we have been interested in

AP PHYSICS: Lab #4 Projectile Motion Lab

Precalculations Individual Portion Correlation and Regression: Statistical Analysis of Trends

Physics 248 Spring 2009

AP Physics C. Momentum. Free Response Problems

Chapter 9: Circular Motion

02 Coupled Oscillators

Centripetal Force Lab

Transcription:

Utah State University DigitalCommons@USU Physics Capstone Project Physics Student Research 5-16-217 Arduino and Raspberry Pi in a Laboratory Setting Dustin Johnston Utah State University Follow this and additional works at: http://digitalcommons.usu.edu/phys_capstoneproject Part of the Physics Commons Recommended Citation Johnston, Dustin, "Arduino and Raspberry Pi in a Laboratory Setting" (217). Physics Capstone Project. Paper 52. http://digitalcommons.usu.edu/phys_capstoneproject/52 This Report is brought to you for free and open access by the Physics Student Research at DigitalCommons@USU. It has been accepted for inclusion in Physics Capstone Project by an authorized administrator of DigitalCommons@USU. For more information, please contact dylan.burns@usu.edu.

Utah State University Physics Department Arduino and Raspberry Pi in a Laboratory Setting Physics 49 Research Paper Abstract The purpose of this research project was to study the use of Arduino and Raspberry Pi s and investigate the practicality of integrating them into the intermediate and advance laboratory classes. After purchasing diverse types of sensors to use with Arduino and Raspberry Pi, the sensors were then performance tested. The types of sensors that were characterized were an accelerometer, altimeter, barometric pressure, gyroscopic, humidity, magnetic, temperature, and vibrational sensors. Using this analysis, the existing labs can be upgraded and their manuals can be updated and improved to use these sensors where appropriate. This will allow students to learn valuable programming and circuitry skills while using them to advance their knowledge of different physics concepts. Student: Dustin Johnston Mentor: Jonathan Price Spring 217

P a g e 1 of 1 Background Arduino is an open source hardware and software project that began in 23 at the Interaction Design Institute Ivrea (IDII) in Ivrea, Italy. 2 It began as a project to create low cost, easy to use, and effective digital products by non-engineers. Adafruit Industries, a New York City supplier of Arduino boards, parts, and assemblies, estimated in mid-211 that over 3, official Arduinos had been commercially produced, and in 213 that 7, official boards were in users' hands. 1 This project aims to test the usefulness and then implement low cost and easy to use Arduino sensors in a laboratory setting. It has been shown that this is possible by students at the French University Paris-Sud. 3 Being able to use these sensors effectively would allow students to create a data center that would give students real time data on pressure, temperature, humidity, lighting conditions, or any other condition the sensors are able to measure. Since these sensors are not overly expensive, this would also help reduce the cost of lab equipment in the future, provided the sensors are able to collect data effectively enough to be used. Setup and Procedures Figure 1: The Piezo Element, Large Flat Vibration Sensor with and without an imbedded mass Figure 3: Setup used to drop the masses during data runs with tape placed every 1 cm The initial steps involved becoming familiar with Arduino and the Arduino IDE. This free IDE is based on the C/C++ coding languages and is documented at Arduino.cc, which makes it much easier to use by students as there are many helpful websites dedicated to walking students through the basics. The first sensors to be characterized were vibration sensors. The ones tested were from Sparkfun and included the round Piezo element sensor, the Piezo large flat sensor with attached mass and the Piezo large flat sensor without attached Figure 2: Simple setup of the Arduino Uno and the three vibration sensors mass (see Figure 1). We started with these sensors as they were the easiest to write code for and the characterization was thought to be fairly strait forward. The sensor was connected to an analog-in pin, placed in a parallel circuit with a 1 Megaohm resistor and then grounded (see Figure 2). The sensor that was being characterized was placed on various locations on the table or floor, and the surface was marked every 1 cm away from the sensor, (see Figure 3). Using this set up, the performance of the vibration sensors could be characterized by dropping a heavy mass from a 5 cm or 1 cm height and landing at multiples of 1 cm away up to 5 cm from the

P a g e 2 of 1 Figure 4: Simplified code used to obtain the digital values sensor. In order to drop the mass more consistently, a string was attached to the mass and was draped over a hanging piece of material. The string was pulled until the mass was at the same height each time, then released. This helped reduce human error in the setup. There was a total of six different sensor setups and two different drop heights for each of the set-ups. A code was implemented to collect data every four milliseconds. The built in analog to digital converter (ADC) reads the raw voltage from the sensor and converts it into a digital value in the range of -123. The code would then print this value to the serial monitor or plotter in an endless loop (see Figure 4). These values were then exported into an Excel spreadsheet for data analysis. Results Piezo Flat Sensor Taped to Ground with Loose 2 g Mass on Top. 5 cm Drop with 5 g Mass 16 14 12 1 8 6 4 2 3 5 7 9 11 13 15 17 Figure 5: Flat sensor taped to carpeted ground. 5 cm drop with 5 g mass. The first data spike in time corresponds to a 1 cm distance from the mass drop point and each subsequent spike corresponds to a further 1 cm from the previous spike.

P a g e 3 of 1 45 4 35 3 25 2 15 1 5 Piezo Flat Sensor Taped to Table with 2 g Mass Taped on Top. 5 cm Drop with 5 g Mass 2 7 12 17 22 27 32 Figure 6: Flat sensor taped to the top surface of the table. Each of the data points in each the runs collected during this project correspond to a digital value (ADC) that is the result of the code used. For the purpose of this project, the digital range value output was suitable to compare the sensors with each other. Further analysis would be able to take this ADC value and extract useful information such as the force or magnitude of the vibration within the sensor. In order to retrieve these values, additional testing and calibration of the vibration sensors would be necessary. Looking at each run, it is easy to tell that the vibrations picked up by the sensors did not last long, and were inconsistent in magnitude. As the mass was dropped at the same height for each Piezo Flat Sensor With Embedded Mass Hanging off Edge of Table. 5 cm Drop with 5 g Mass 9 8 7 6 5 4 3 2 1 Figure 6: Flat sensor taped to table. 5 cm drop with 5 g mass. 1 3 5 7 9 11 13 15 Figure 7: Flat sensor with embedded mass taped such that the sensor was hanging from the table. 5 cm drop with 5 g mass

P a g e 4 of 1 run, it would make sense that the largest response would be at the closest drop to the sensor for each run. This was not the case for many of the runs collected during this project. Figure 5 shows that the vibration that occurred for each drop lasted four to eight milliseconds while Figure 6 s vibrations lasted about forty milliseconds. The setups that had the sensors hanging off the edge of the table showed to most response to stimulation. The smaller peaks occurred as the setup was moved to prepare for the next drop. The large spike in Figure 7 shows the random nature of the mass striking the table again. There is a clear start to the data points at the time of impact, but the fading out of the vibration through the surface is shown. This is drastically different from Figures 5 and 6 which showed a jagged start and stop of data collection. The amplitude of the vibration for each run held little to no correlation to the distance that the impact occurred from the sensor. There are many factors that can attribute to this inconsistency including the impact point of the mass as it hit the surface. Depending on if the edge or the flat or rounded surface of the mass landed first could cause different vibrations to travel through the surface to the sensor. The surface itself might cause some variation in the vibrations as different surfaces have varying mediums and speeds of sound and could dampen or amplify the vibration due to resonance. See the appendix for additional figures. Conclusion and Future Work With additional time and a more controlled environment to conduct the experimentation, this project could lead to useful progress of incorporating Arduino and eventually Raspberry Pi s into a laboratory setting. In order for the vibration sensors to pick up any reading, a large force in close proximity to the sensor in needed. A force that strong would likely not occur naturally, and the intended use of the vibration sensors to monitor small disturbances in a room was not fulfilled. The inconsistency and sporadic nature of the sensors makes it nearly impossible to effectively use them in a scientific manner in a laboratory setting. The best sensor would be the flat sensor with the embedded mass since it was the most responsive while it was hanging off the edge of the table. This could be due to the fact that it was not taped down to the surface which could have dampened the sensors motion but instead was hanging freely allowing for more motion and more data points to be collected. This project was unable to effectively include the vibration sensors into the existing intermediate and advanced lab work. However, no real conclusion can be made concerning reducing the cost of sensors used by lab students and exposure to learning a coding language and using that language effectively. Future endeavors in this field of study might yield successful incorporation of other sensors into the existing labs. Further experiments and work with this equipment could incorporate Raspberry Pi s into the system to create a server that could report information from sensors connected to the Arduino Uno. This server could be used by students to have useful data without having to collect it themselves. The introduction of the Raspberry Pi would further expand student s knowledge of coding and circuitry as well as allow instantaneous data analysis and the ability to passively collect data over an extended period of time.

P a g e 5 of 1 References 1. "How many Arduinos are "in the wild?" About 3,". Adafruit Industries. May 15, 211. 2. David Kushner (211-1-26). "The Making of Arduino". IEEE Spectrum 3. American Journal of Physics 85, 216 (217); doi: http://dx.doi.org/1.1119/1.497243

P a g e 6 of 1 Appendix 45 Piezo Flat Sensor Taped to Table with 2 g Mass Taped on Top. 5 cm Drop with 5 g Mass 4 35 3 25 2 15 1 5 2 7 12 17 22 27 32 Figure I. Flat sensor taped to table. 5 cm drop with 5 g mass Piezo Flat Sensor Taped to Table with 2 g Mass Taped on Top. 1 cm Drop with 5 g Mass 45 4 35 3 25 2 15 1 5 1 6 11 16 21 26 31 Figure II. Flat sensor taped to table. 1 cm drop with 5 g mass

P a g e 7 of 1 Piezo Element Taped to Table with 2 g Mass Taped on Top. 5 cm Drop with 5 g Mass 6 5 4 3 2 1 1 3 5 7 9 11 13 15 17 19 21 Figure III. Element taped to table. 5 cm drop with 5 g mass Piezo Element Taped to Table with 2 g Mass Taped on Top. 1 cm Drop with 5 g Mass 12 1 8 6 4 2 2 4 6 8 1 12 14 16 18 2 22 24 26 Figure IV. Element taped to table. 1 cm drop with 5 g mass

P a g e 8 of 1 Piezo Flat Sensor Hanging off Edge of Table. 5 cm Drop with 5 g Mass 16 14 12 1 8 6 4 2 1 3 5 7 9 11 13 15 17 Figure V. Flat sensor taped such that the sensor was hanging from the table. 5 cm drop with 5 g mass Piezo Flat Sensor Hanging off Edge of Table. 1 cm Drop with 5 g Mass 6 5 4 3 2 1 1 4 7 1 13 16 19 Figure VI. Flat sensor taped such that the sensor was hanging from the table. 1 cm drop with 5 g mass

P a g e 9 of 1 Piezo Flat Sensor With Embedded Mass Hanging off Edge of Table. 5 cm Drop with 5 g Mass 9 8 7 6 5 4 3 2 1 1 3 5 7 9 11 13 15 Figure VII. Flat sensor with embedded mass taped such that the sensor was hanging from the table. 5 cm drop with 5 g mass 12 Piezo Flat Sensor With Embedded Mass Hanging off Edge of Table. 1 cm Drop with 5 g Mass 1 8 6 4 2 2 5 8 11 14 17 2 23 Figure VIII. Flat sensor with embedded mass taped such that the sensor was hanging from the table. 1 cm drop with 5 g mass

P a g e 1 of 1 Piezo Flat Sensor Taped to Ground with Loose 2 g Mass on Top. 5 cm Drop with 5 g Mass 16 14 12 1 8 6 4 2 3 5 7 9 11 13 15 17 Figure IX. Flat sensor taped to carpeted ground. 5 cm drop with 5 g mass Piezo Flat Sensor Taped to Ground with Loose 2 g Mass on Top. 1 cm Drop with 5 g Mass 2 18 16 14 12 1 8 6 4 2 7 9 11 13 15 17 19 21 Figure X. Flat sensor taped to carpeted ground. 1 cm drop with 5 g mass

P a g e 11 of 1 Piezo Element Taped to Ground with Loose 2 g Mass on Top. 5 cm Drop with 5 g Mass 6 5 4 3 2 1 3 4 5 6 7 8 9 1 11 12 Figure XI. Element taped to carpeted ground. 5 cm drop with 5 g mass Piezo Element Taped to Ground with Loose 2 g Mass on Top. 1 cm Drop with 5 g Mass 8 7 6 5 4 3 2 1 3 4 5 6 7 8 9 1 11 12 13 14 15 16 Figure XII. Element taped to carpeted ground. 1 cm drop with 5 g mass