Saturday, 1 December 2012

Data Logging



Data logger is an electronics instrument that records measurements of all types at set intervals over a period of time. Data logger also can record a wide variety of energy and environmental measurements including temperature, speed, light intensity, pressure, electric currents and more. The characteristic of a data logger is the ability to take sensor measurements and store the data for future used. This is how data logger works, a data logger works with sensors that then will convert physical phenomena and stimuli into electronic signals such as voltage or current. These electronics signals are then converted or digitized into binary data. The binary data is then easily analyzed by software and stored on a PC hard drive or other form of storage like memory card and CDs.
While we talking about data logger, data logging is the process of using a computer to collect data through sensors, analyze the data and save and output the results of the collection and analysis. Data logging is also implies the control of how the computer collects and analyzes the data. It is commonly used in scientific experiments and in monitoring systems where there is the need to collect the information faster than we do it manually especially when the experiments need accuracy. Figure below shows the complete data logging applications elements.


In every PC data logging and controls system, there are few basic components which are sensors, connectors, conditioning, Analog to Digital (A/D) Conversions, Online-Analysis, Logging/Storage, and Offline-Analysis. A few additional components also required in a dta logging and Control system including D/A Conversions and actuators.

A data logger has an additional recording and storage facilities. It can store readings from events taking days or week to unfold. Afterwards, the computer can read the data from it. There stand alone devices can often record data at high speed for example they can record the flicker of a lamp and take 100’s of readings in second. The data logger has buttons to start and stop according as well as an independent power supply. The buttons allow us to alter the recording speed when the recording would start. The data logger may have an LCD display to monitor what it is doing. In nearly every system that find, data logging sensors plug into a box. The sensor send its ‘readings’ to the box and informs it which type of sensor it is. The sensor identifies itself using pins on the sensor plug while some systems place a resistor across the pins and use its value to identify it. Others sensor have a PIC chip which ‘tells’ the data logger all it needs to know. Some sensors have their own power supply but the best derive all their power via the interface. Some devices get all their power through a USB connection o Parallel port and these tend to be the most reliable. The interface box has a circuit that converts an analogue sensor signal to a digital signal. It also has a way communicating with the computer and most systems use ‘serial’ communication. Serial connections are compatible with almost every type of computer. While this is not fast communication, they transfer data fast enough for most purposes. If we want to show sound waves with these data loggers, we can record the sound at high speed and transfer the data to the computer afterwards. Data logger can collect readings independently of the computer, allows results collected in the lab to be downloaded to the lab computer, can be set to start recording during the night, record very fast, can be set to start recording at a certain sensor reading and can store the results of many experiments. Data logger has a rechargeable battery and uses alkaline batteries.

Sensors
There are many type of sensors that are used in data logging. Sensors often process data before we can see it. The types of sensors that have are sensors to measure motion. Sensors that used to measure motion are accelerometer, light gates and switches, force or dynamic or mechanic pulley, rotation sensor, shock sensor, sonar distance sensor or ranger and strain gauge. The sensors that used to measure heat and temperature are heat flow sensor, full range temperature sensor, low temperature sensor, body temperature range sensor and thermocouple and high temperature sensors. Sensors for light and sound, we used light sensor, calorimeter sensor, infra-red sensor, sound sensor, microphone sensor, sound switch sensor and ultra-violet sensor. Sensors that used in physiology are pressure sensor, breathing monitor sensor, heart rate sensor and electrocardiogram sensor.


Any device that is used to convert physical parameters into electrical signals is called sensors. The sensors must be calibrated so that electrical output they provide maybe used to take meaningful measurements. For examples, flow meters, pressure transducers, accelerometers and microphone.
After we have the sensors, it must be connected to the connectors to transmit its electrical signal to the systems. There are variety of signal connectors that each have their own advantages and disadvantages. The simple connectors can be as simple as tightening a screw around a wire to the more complex like connectors typically used in NDT shown below.



Conditioning is the next steps needed for the electrical signal provided by the sensor to be useful.It is including all actions performed on the signal to improve its usability before it is digitized. There are few types of conditioning that can be used. Amplification is used when the voltage levels being measured are very small. Amplification is used to maximize the effectiveness of the digitizer. The typical sensors that require amplification are the thermocouples and strain gauges. Attenuation is the reverse of the amplification and necessary for measuring the high voltages. Filtering is the required to remove unwanted frequency components from a signal that will prevents the aliasing and reduces noise.
Excitation is used to provide the required currents and can be voltage or current source depending on the sensor type. Linearization is a type of sensors produce voltage signals that are not linearly related to the physical quantity they measuring. Isolation is used to in conjunction with attenuation to protect the system and the user from dangerous voltages or voltage spikes. It also can be used to when the sensor is on a different electrical ground plane from the measurement sensor. Lastly, multiplexing. Multiplexing allows you to automatically route multiple signals into a single digitizer. Most of the sensors required the combination of two or more of this conditioning technique like thermocouple.
There is also other components that build the data logging systems like A/D conversion that convert analog electrical signal into digital values and transmit those signal to the computer and these is done by the using the data acquisition (DAQ) board. Online analysis is used after the analog signal has been converted to raw binary values. For logging or storage ,PC based data logging systems generally use the hard drive of the PC to store data, but may also use tape drivers, network drivers, or RAID drivers. After that, offline analysis is the performing mathematical analysis on data after it has been acquired to extract information. There are two forms of control part of the PC system. The first one is open – loop control which is independent of the current state of the process and the second one is the closed-loop control in which the PC measures one or more input variables and uses software to make decisions about what control signals should be output. Other than that, there is also D/A converter which the function is to takes the digital values output by the computer and turns them into analog signals which can be conditioned and then connected to actuators. Actuators is any device that converts electrical signals to physical parameters. 
 People we ask why we use data logging. Data logging help us do a lot of things. Data logging help us to perform the experiments in a short time. If we do a manual experiments, we will take time to construct the apparatus, adjust the parameters, collect the data and to analysis the data. By using the data logging, we also can perform the experiments online and also perform the online analysis. For online analysis, this step will include any analysis that we could like to do before storing the data. The most basic example is, when converting the voltage measurements to meaningful scientific units, such as degree Celsius. We can complete these complex calculations and data compressions before logging the data. Controlling part of a system based on current measurements. Every data-logging software applications have to complete the conversions from binary to voltage and the conversions from voltage to scientific units. 
There is also step in data logging which is log that refers to the storage of analyzed data including any formatting required for the data files. When doing the experiment, it is very important to save all the data from the experiment, therefore by doing data logging, we can save all the data that need to be analyzed and also the format. Other than that, data logging also help you to do the offline analysis. Offline analysis is the analysis that we do after storing the data. For example, we can use the data stored to look for trends in historical data or data reduction.
Data logging also will help us by displaying, sharing and reporting the experiment that had be done. This application can save our time and also the experiment can be repeated over again to get the result that we need. This does not means the data logging application will prepare for you the full report of the experiment like the full writing report but it can help you to create any reports that need to make present the data. Data logging also can present the data straight from the online analysis. This means that the monitor able to display the data you need and also analyzed the data and also viewing the historical data.


DATA LOGGING : SPEED OF SOUND

Engage :



Last weekend, my family decide to go to Gua Kelam in Perlis. As we walk through the cave there is a lot of nice things to watch. Then, I notice something interesting, when we talk in the cave, we can hear our voice be reflect. We hear our own voice echo. Why this happened? I also notice the same phenomena occur when I talk in empty house or when I shout in the tunnel. How can this happen and what is the cause?

The speed of sound is the distance travelled during a unit of time by a sound wave propagating through an elastic medium. In dry air at 20 °C, the speed of sound is 343.2 metres per second. In fluid dynamics, the speed of sound in a fluid medium either gas or liquid is used as a relative measure of speed itself. The speed of an object (in distance per time) divided by the speed of sound in the fluid called the Mach number.
The speed of sound in an ideal gas depends on frequency, but it is weakly depends on frequency for all real physical situations. Sound speed depends on pressure only because the air is not quite an ideal gas. For different gases, the speed of sound is inversely dependent on square root of the mean molecular weight of the gas, and affected to a lesser extent by the number of ways in which the molecules of the gas can store heat from compression, since sound in gases is one type of compression.
Speed of sound refers to the speed of sound waves in air and the speed of sound varies from substance to substance. Sound travels faster in liquids and non-porous solids compared in air. It travels about 4.3 times as fast in water, and nearly 15 times as fast in iron. Sound waves in solids are composed of compression waves just as in gases and liquids, but also exhibit a different type of sound wave called a shear wave, which occurs only in solids. The different types of waves in solids usually travel at different speeds. The speed of a compression sound wave in solids is determined by the medium's compressibility, shear modulus and density.
Sound is a longitudinal wave that is created by a vibrating object, such as a guitar string, the human vocal cords or the diaphragm of a loudspeaker. Moreover, sound can be created or transmitted only in a medium, such as a gas, liquid and solid. To see how sound waves are produced and why they are longitudinal, consider the vibrating diaphragm of a loudspeaker. When the diaphragm moves outward, it compresses the air directly in front of it. The compression causes the air pressure to rise slightly. The region of increased pressure is called condensation, and it travels away from the speaker at a speed of sound. The condensation is analogous to the compressed region of coils in a longitudinal wave.

Sound travels through gases, liquids and solids at considerably different speeds as shown in the table below:
Substance
Speed (m/s)
Gases
Air(0º C )
Air (20º C )
Carbon dioxide (0ºC )
Oxygen (0º C )
Helium (0º C )

331
343
259
316
965
liquids
Chloroform (20º C )
Ethyl alcohol (20º C )
Mercury (20 º C )
Fresh water (20º C )
Seawater (20º C )

1004
1162
1450
1482
1522
Solids
Copper
Glass (Pyrex )
Lead
Steel

5010
5640
1960
5960

Near room temperature, the speed of sound in air is 343 m/s and is markedly greater in liquids and solid. For example, sound travels more than four times faster in water and more than seventeen times faster in steel than it does in air. In general, sound travels slowest in gases, faster in liquids and fastest in solids. Like the speed of a wave on a guitar string, the speed of sound depends on the properties of the medium. In a gas, it is only when the molecules collide that the condensations and rarefactions of a sound wave can move from the place to other place. It is reasonable, then, to expect the speed of sound in a gas to have the same order of magnitude as the average molecular speed between collisions. Sonar is a technique for determining water depth and locating underwater objects, such as reefs, submarines, and schools of fish. The core of a sonar unit consists of an ultrasonic sound, and at a later time the reflected pulse returns and is detected by the receiver. The water depth is determined from the electronically measured round-trip time of the pulse and a knowledge of the speed of sound in water. In a liquid, the speed of sound depends on the density and the adiabatic bulk modulus. For the speed of sound in liquid for example in seawater, the speed is 1522 m/s, which is more than four times as great as the speed in air. The speed of sound is an important parameter in the measurement  of distance. Accurate distance measurements using ultrasonic sound also play an important role in medicine where the sound often travels through liquid-like materials in the body. A routine preoperative procedure in cataract surgery, for example, uses an ultrasonic probe called an A-scan to measure length of the eyeball between the lens of the eye and the retina. When sound travels through a long, slender, solid bar, the speed of the sound depends on the properties of the medium.

Empower :

Ø  Equipment required
v  2 microphones-crystal Mics were used since they are cheap and give a large output
v  1 metre wooden rule
v  Fast digital storage oscilloscope-the ADC-212 was used
v  A balloon-to burst for a sudden loud sound source

Ø  Experiment set up

v  The experiment was set up as shown below with two crystal microphones placed 1 metre apart.


Result
The balloon was burst approximately 2 m away from the foremost Mic. The plot below shows the results clearly.
The lefthand “BLUE” trace is from the foremost Mic (Mic1) and the righthand “red” trace is from Mic (Mic2).
 The waveform from Mic1 between -164µs and 500 s is clearly visible in the trace from Mic2 delayed by 2929 µs. There is second variation , in the waveform from Mic1, around 1.5 ms caused by an echo  from one  wall or ceiling.

Enhance :
  •  Telling how far away a person with a starter’s gun, at a running race, is by comparing the time difference from when you can see the gun’s smoke to when you hear the sound.
  •   Telling how far away a cliff is by making a sound and measuring how long it takes for the echo to return
  •   Telling where an enemies gun was fired.
  •   Telling  how far away a lighting strike.

Stella


Title : Predator Prey Dynamics
Objectives :
    1)    To understand how simulation can integrate in teaching and learning.
    2)    To differentiate between the theory and simulation in teaching and learning.
    3)    To understand the concept of prey and predator.
Introduction :
Simulation is an operation of model, which is representation of that system. It is amenable to manipulation which would be impossible, too expensive, too impractical to perform on the systems which is potrays. There are some steps that involve in the simulation. First, define an achievable goal. Then, put together a complete mix of skills on the team and it is involving the end user. After that, choose the appropriate simulation tools and model the appropriate level of detail. Lastly, start early to collect necessary input.
There are some reasons teaching by using simulations. First, it can promotes the deep learning that can empower understanding as supposed to surface learning. In deep learning, students can learn the scientific method including the importance of model building that use instructional simulations and gives students concrete formats of what it means to think like a scientist and do scientific work. Besides, students can know the relationships among variables in a model. This is because by using simulation, it allows the students to change parameter values and see what will be happens. Students can develop a feel for what variables are important and the significant of magnitude changes in parameters. Other than that, students can know the data issues, probability and sampling theory. Simulations help the students to understand more. By using simulations, it can help the students on how to use a model to predict outcomes, where it can help the students understand that scientific knowledge rests on the foundation of testable hypothesis.
Besides, we can learn to reflect on and extend knowledge. Students can transferring knowledge to new problems and situations. A well done experiment is constructed to include an extension to a new problem or new set of parameters that requires students to extend what they have learned before. Not only that, by using simulations, it allows to understand and refine their own thought process and seeing social processes and social interactions in action.
By using simulation, we can conduct the experiment more easier and faster. Besides, we can get the results as soon as possible, because of the information that have been provided. So, students will be more understand as they can change the variables as they want and this can help the students to save their time and understand the theory. In this task, I chose the predator-prey simulation because I think this simulation is easier to understand compared to the others.
In my opinion, this simulation should be used by the teacher at school. This is because it is not just easier for the teacher to conduct the experiment very well, but it also can attract the student’s interest as it can increase the knowledge and allow the students to explore more about the topics related to the experiment.


Results :

Figure 1

Figure 2

Figure 3

Figure 4

             A simulation is an experimental learning that allows us to control the parameters and use it to achieve the desired instructional results. Simulations are in a way, a lab experiment where it can helps the students to adjust the parameter and repeat the experiment many time as they want. Besides, it facilitates the students to explore more the experiment, so that the students feels more interested and happy to learn something new through the simulation of the experiment that have been conducted.
            Based on Figure 1, when the size of 1 time lynx harvest is 0, the results shows that both of the population which are the the hares and the lynx are in linear or relatively constant. This is because maybe they get enough food or resources so that they have no competition among them and they can survive their life without any problems.
             For Figure 2, the results shows that when the number of lynx is increase, the number of hare is decrease as the size of 1 time lynx harvest is 210. This is because, as we know lynx is a predator, while the hare is a prey. So, when there is a limited food supply or any condition that can disturb their survive, the lynx will harm the hares. There is a relationship between them. Therefore, as the number of lynx increase, the number of hares will be decrease.
            For Figure 3, the result shows the same result as graph 2 but the peak for graph 3 is higher compared to Figure  2 as there is an increase in the size of 1 time lynx harvest, that is 480. It shows that there is no increase in the number of hares, but there is an increase in the number of lynx. So, this will effect the hares because an increase in the number of lynx will limit the sources of food. So, they will compete each other to get the food for survival.
            For Figure  4, the result shows the same result as graph 3 but the peak for graph 4 is higher compared to Figure  3 as there is an increase in the size of 1 time lynx harvest, that is 680. It shows that there is no increase in the number of hares, but there is an increase in the number of lynx. So, this will effect the hares because an increase in the number of lynx will limit the sources of food. So, they will compete each other to get the food for survival.
            There are many advantages by using this simulation. First, it is enjoyable activities where we can motivates the students to conduct an experiment better. This is because, as we know some experiment that have conducted is failed. So, by using simulation the students just need to manipulate the related parameter and then the result will be shown. Moreover, it will save our time because we do not need to spend a lot of time to set up the experiment and it will promote the critical thinking among the students.
               Besides that, through this simulation the students can expect the result that they will get as they have repeated the experiment many time. This can create a student’s critical thinking. Simulations are effective at helping the students and the students are often deeply involve in simulations and the teacher should guide their students on how to use the simulation, how to manipulate the parameter and how to get a better result.
            Other than that, the simulation can give a lot of benefits because it can create an interactive, authenthic and meaningful learning oppotunities possible. The students can observe, explore, recreate and receive immediate feedback about real objects, phenomena and process that would otherwise be too complex, time-consuming or dangerous. This simulation will include the animations, visualisations and interactive laboratory exercises that can attract the students’ interest.  In a simulated environment, time changes can be sped up or slowed down, abstract concepts can be made concrete and tacit behaviors visible. Teachers can focus students’ attention on learning objectives when real-world environments are simplified, causality of events is clearly explained, and unnecessary cognitive tasks are reduced through a simulation.
            The simulations can be effective in developing content knowledge and process skills, as well as in promoting more complicated goals such as inquiry and conceptual change. Gains in student understanding and achievement have been reported in general science process skills and across specific subject areas, including physics, chemistry, biology and many more. So, the simulation will bring many advantages in teaching and learning process. Computer simulation offers the opportunity to experiment with phenomena or events, which for a number of reasons, cannot normally be experimented with in the traditional way. Simulations provide students with experience that may be difficult or impossible to obtain in everyday life. For example, in class it is not possible to experiment actively with an economic system. The only thing the teacher can do is to discuss the nature and content of the system. Experimenting would surely be useful because this can generate an insight into the functioning of the economic system.
               Computer simulation programs can be used in education to give the student more feeling for reality in some fields of learning. This is because, the simulation can be equally as effective as real life, hands-on laboratory experiences in teaching students scientific concept. Besides, it enhance the learning achievement levels of students, enhance the problem solving skills of students and foster peer interaction. This simulation are also may enhance creativity in which the students can come to understand by engaging in acts of technological creation.
              Computer simulations give students the opportunity to observe a  real  world experience and interact with it. Simulations are useful for simulating labs that are impractical, expensive, impossible, or too dangerous to run. Simulations can contribute to conceptual change, provide open-ended experiences for students, provide tools for scientific and problem solving experiences. Computer simulations also have potentials for distance. The main purpose of this paper is to review the use of computer simulations in science education. Simulation is a way to enhance teaching and learning with technology in both the classroom and distance. The second purpose is to review potential use and benefits of computer simulations in science laboratories distance education.
             Computer simulated instruction can give the students the opportunity to observe a real world experience and interact with it. In science classrooms, simulation can play an important role in creating virtual experiments and inquiry.  Problem based simulations allow students to monitor experiments, test new models and improve their intuitive understanding of the related experiment. Simulations are also potentially useful for simulating labs that are impractical, expensive, impossible, or too dangerous to run. Simulations can contribute to conceptual change, provide open-ended experiences for students, provide tools for scientific inquiry and problem solving experiences. An appropriate way for simulations in science education is to use  them  as  a supplementary material. On the other hand in some situations simulations are the only tools to use like experimenting for dangerous or long-term situations. The most significant computer applications in science instruction is the use of simulations for teaching material, which cannot be taught by conventional laboratory experimentation. Computer simulated experiences were very effective as  hands-on laboratory experiences. This suggest that it may be possible to use a computer simulated experiment in place of a laboratory experience in the teaching and learning process.
             Simulations can activate science process skills of students, which are the basic skills for scientific inquiry. These skills are classified in two main groups: basic science process skills and integrated science process skills.  Basic science process skills consists of observing, inferring, measuring, communicating, classifying, and predicting while science process skills includes controlling variables, defining operationally, formulating hypotheses, interpreting data, experimenting, and formulating models.
       Computer simulation can enable students to use the skills of graph communication, interpreting data, and controlling variables in simulated experiments, and helped them master these skills.  Computer simulations can be as an inquiry tool.  Inquiry is fundamental for science learning. Inquiry procedure included positing hypotheses, conducting experiments, observing and recording data and making conclusions.
              Computer simulations are good tools for individual learning. It have the potential to provide constant access whenever needed by students. There are four key elements of inquiry curriculum that may benefit from computer simulations. First, it make science accessible. Second, make thinking visible. Third, help students learn from each other and lastly, help students develop autonomous learning. Students must have enough control of lab equipment to start and stop an experiment and make appropriate  adjustments. The experiment should be no more difficult to conduct than with the equipment physically present. Students need appropriate feedback.  Online simulations may be appropriate solutions.
          By exposing complex concepts and abstract phenomena, computer simulations offer the opportunity to engage students in higher-level thinking and challenge them to struggle with new ideas. Lessons involving computer simulations should remain student-centered and inquiry-based to ensure that learning is focused on meaningful understandings, not rote memorization. When students work with simulations individually or in small groups, discussion and collaboration among teachers and peers should be fostered. Regardless of the implementation you choose, students should be prompted to form and test their own hypotheses and justify their decisions. By encouraging reflection on their actions and decision-making, you can help expose student misconceptions, allowing for conceptual change and development. Students can then begin to monitor and take responsibility for their own learning.
          Besides, the most important benefits computer simulation can have in education is that it makes the otherwise inaccessible phenomena or processes accessible to students, including those phenomena or processes inaccessible because of extreme size (too large or too small), extreme speed (too fast or too slow), or because of security considerations  and cost considerations. Then, the benefit of educational computer simulation is its feature of visualization, which can help learners establish mental model of an abstract or dynamic process. In a simulation program, the effects of changes made on input parameters can be visualized immediately from the output curves. Therefore computer simulation is especially helpful in the learning of interrelationships between factors in complex phenomena or abstract processes. Another advantage of educational computer simulation becomes quite apparent, computer simulation is highly motivating to learners. Students in a learning environment integrated with computer simulation have higher motivation towards learning, because computer simulation is not only more interesting, but it offers them a unique way to access, interact with and understand the otherwise inaccessible or complex phenomena.
            As we know, computer simulation will brings a lot of advantages. Using computer simulation prior instruction can motivates the learner. Computer simulation program can be used in the introduction of new learning content to motivate students. This type of use is directly related to computer simulation’s power in motivating learners as discussed above. Compared to traditional paper-based learning materials, computer simulation program has the advantage of quickly gaining students' attention and greatly enhancing their interests and motivation toward the learning contents.
          Computer simulation can be used during the instruction process to facilitate students' learning. This type of use is closely related to the benefit of visualization as discussed above. The feature of visualization can help students learn about complex phenomena or abstract processes more easily and possibly also with a better recall and retain of the learning contents. In addition to motivating and facilitating learners, simulation program may also have the function of promoting and facilitating students' further investigation of learning contents. This type of use is related to the benefits of interaction and visualization. After studying the learning materials and experiencing the simulation program, some students may want to do further exploration with the learning contents. And computer simulation program makes it possible for them to manipulate and experiment with the phenomenon or process as  they can change the values of input parameters and examine which output variables are changed consequently and how they are changed.
              Simulations are useful complements to theoretical learning and are beneficial when used to test out theories, ideologies, and hypotheses. Simulations enable learners to actively engage in experiential educational encounters that provide for reflective thinking and alternative ways of incorporating this new reflectivity into action. A successful simulation is based on identifying appropriate learning objectives and designing a learning activity. As conclusion, simulation has appropriate for five learning objectives. First, to develop highly complex cognitive skills such as decision making, evaluating and synthesizing. Second, to impact positively on the learner’s values, beliefs or attitudes. Third, to induce empathy. Forth, to sharpen human relation shills such as interpersonal communication skills. Lastly, to unlearn negative attitudes or behaviors.