You are on page 1of 4
Arduino based Noise Detection and Image Capturing by using MATLAB Rahul N. Dhole Dept. of Information Technology, SGGSIB&T, Vishnupuri, Nanded, India rdhole95@gmail.com Vishal S. Undre Dept. of Electrical Engineering, SGGS IE&T, Vishnupuri, Nanded, India vishalundrel1@gmail.com Satish R, Pawale Dept. of Information Technology, SGGS IAT, Vishnupuri Nanded, India satish pawale67@gmail.com Abstract—Generally there is lot of noise produced ‘where itis restricted. We propose a system which will take action om it, Noise detecting sensor provided to required farea and camera set in such way to cover all restricted area, Sensors input is provided to Arduino. If sound intensity is greater than programmed decibel value ‘cameras will capture photo of that area and it will gi ‘warning on that noise. This captured image is sent to action committee. This application implemented in school, colleges, hospitals, administrative buildings ete. ‘Keywords: NDIC, Matduino 1. INTRODUCTION Noise pollution is defined as unwanted sound that is unreasonably introduced in our daily life This can be produced due to humans, animals, vehicles, industries tc, Traditionally hospitals, school, colleges, banks etc. are lass only with cameras, there is no any system used for detection of noise with camera. ‘There are lot of research on noise produced in various electrical and clectronies circuits but this paper expose a new method for surveillance as well as detection of noise produced hospitals, school, colleges, banks ete. This device is not only capture image but also save it along with time, date and year format. This paper is concerned with human noise and the disturbance due to it, Generally Large amount of noise produced at colleges, hospitals, ‘administrative buildings in presence of “silence please” notice. This can be prohibited using ‘Arduino based noise detector and image capturing by using Matlab.” This device contains noise detecting sensor FC-04 Noise is sensed by using this sensor. Sensor is to connect Arduino, by using Matlab programming, graph is plotted between noises versus time. As noise crosses particular level camera will capture image of that moment. Consider this system provided on door of classroom. If classroom is carrying out and some other students which making noise outside of class. If intensity of sound is less than provided noise level in programming this device will not give any warning, As there is noise increased, this will be sensed by the sensor. If the Noise level is greater than the programmed value it will give a warning and capture a photo of that moment Noise produced is detected by @ noise detecting sensor. Sensed value is compared with programmed value, if noise value is less than programmed value it will not take any action on that noise, Ifnoise is greater than programmed value then it will give warming on that noise as well as camera will capture image and save it name with time and date. Fig. 1: Flowchart of NDIC I. Motivation Noise pollution affects both health and behaviour. Unwanted sound (noise) can affect psychological health, Noise pollution can cause annoyance and aggression, hypertension, high stress levels, tinnitus, hearing loss, sleep disturbances, and other harmful effects. Furthermore, stress and hypertension are the leading causes to health problems.3% cardiac assets is ‘caused by noise in Germany in 2009 [2] But noise levels are above than required levels .this ccan be prohibited by using this concept. This device not only gives a waming but also captures photo of that scene, This image helpful for further action on them, Various sound levels are listed in the following table [1] {144 @ National Conference on Advances in Computing, Networking and Security (NCACNS-2013) ‘TABLE 1:SOUND LEVEL AT VARIOUS LOCATIONS Tecate Tis ome range Tools and equipment ange [Neonat tensive care untange Peak evens Tneubsors ange Peak evens Hospils ofan onan Daycare aston up to rovers Schools ‘Aerachool cubs 1S Discothegues Tie Transport in cS Tao II], SPECIFICATION OF SENSOR Dimensions of the sensor: 1.73 in x 0.63 in x 0.35 in [4.4 em x 1.6 em x 0.9 cm] Weight of sensor: 4 gm, ‘The sensor FC-04 is three terminal noise detecting, sensor, One terminal is for input, second terminal for ‘ground and third is for voltage. It senses unwanted sound (noise) and passes to Arduino, Detecting the surrounding sound intensity, not available for detecting, sound loudness or sound of specific frequency Fig, 2:FC-04 Sound Sensor IV. SOFTWARE AND HARDWARE IMPLEMENTATION Sensor is placed where it is necessary. Input in Arduino is taken from noise detecting sensor. By using MATLAB the input is compared with programmed noise value, If input value is less than the programmed value it will not give any action but when input value exceeds a required value it will give an alarm and ‘camera will capture a photo of that moment, The captured photo is sent to punishing committee. Arduino is a single-board microcontroller to make using electronics in multidisciplinary projects more accessible. The hardware consists of an open-source hardware board designed around an 8-bit Atmel AVR ‘microcontroller, or a 32-bit ‘Atmel ARM, The software consists of a standard programming language compiler and aboot loader that ‘executes on the microcontroller. ‘The Arduino board exposes most of the microcontroller’s VO pins for use by other circuits. The Diecimila, Duemilanove, and current Uno provide 14 digital VO pins, six of which can produce pulse-width ‘modulated signals, and six analog inputs. These pins are ‘on the top of the board, via female 0.10-inch (2.5 mm) headers. Several plug-in application shields are also commercially available. ‘Arduino has 328P microcontroller which is used to store and execute the program, In this concept the program is set in that way ifthe user wants to get 7.3 V, DC output then after doing some mathematical calculation this 7.3 value is transfer to servo motor so as to rotate the servo motor to set potentiometer at exact position to drop 7.3 voltage across it. Fig. 3: Arduino Board Here we used Arduino IDE for background programming, the open-source Arduino environment makes it easy to write code and upload it to the VO board, It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gec, and other open source software "The Arduino integrated development environment (IDE) is 2 cross-platform application written in Java programming, and is derived from the IDE for the Processing programming language and the Wiring projects. It is designed to introduce programming to artists and other newcomers unfamiliar with software development, It includes a code editor with features such as syntax highlighting, brace matching, and automatic indentation, and is also capable of compiling and uploading programs to the board with single click [3] For GUI we used here Matlab and sending all actions through Matlab itself. MATLAB is a numerical computing environment and fourth-generation programming language. Developed by Math Works, MATLAB allows us matrix manipulations, plotting of functions, data and graphs implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C+, Java, and Fortran. ‘Although MATLAB is intended primarily for numerical computing, an optional toolbox uses the MuPAD symbolic engine, allowing access to symbolic computing capabilities. An additional package, ‘Simulink, adds graphical multi-domain simulation and Model-Based Design for dynamic and embedded systems, Arduina based Noise Detection and Image Capturing by using MATLAB ® 145, A. Connectivity of Arduino with MATLAB ‘Accessing Arduino through Matlab is quite easy, ‘we have to download its required package, and burning package into the Arduino, we termed it as Matduino. ‘After that we can directly access Arduino by using is a variable which open the Arduino which is connected to COM port number 6, when we execute this firs it will check whether the Arduino is connected to COM port or not if itis not connected then it will display an error, if tis successfully connected then we can directly send command from command prompt of Matlab. ‘Syntax: digital Write (pin number, action) digitalWrite (13, 1); Here, if we want 10 write some data then we can use digital Write Q/and send ‘I’ to start and “0” for stop ‘operation, in the same sense we canalso read, write analog as well as digital values. For analog value we use analog Read (pin number). B. Reading Sensor Values on Arduino Sct up the basic Arduino program: void setup) { Serial. begin(9600); // set up the serial connection for printing void loop() { Serial. printin(44); / print out the value 444 ©. Open the Arduino Serial monitor to see the output ftom the board. ‘When board is powered and connected to the computer. Place the potentiometer on the breadboard. We want a variable value, not binary, so we will read values on the ‘Arduino from the analog input pins. Hook up @ wire from the centre leg of the potentiometer to analog pin 0, In the program we'll represent ths like: int ANALOGINPUTPIN = 0; V. IMPLEMENTATION Firstly we declare a communication porta ie OMS a- Arduino (COMB), av-nanalog Read) In infinite loop analog values are read and stores in variable ‘av’ and by making some mathematical calculation it will display on user sereen AnalogValue = (Anolog value + 0.48828125) We will use this value, which iz getting from sound sensor and will process it further, Afer getting the vale we just plot the graph oft. plot (xy) Ire sensor value is greater than SOUD then it will indicate in some other colour format, count will be incremented by 1. Ifthe counter incremented by 2 then camera will start capturing the image. vid. = videoinput(winvideo); By using videoinput() function we can activate the camera and by using getsnapshor@ function we will capture the image. m= getsnapshot(vid); rgbmap = ycber2rgb(im); ssa = datestr(now, ‘dd newName = sprintit'%s.jpa’, ssa); imwrite(egbmap, newName); ‘The datesir() function we used to store the image as name of system date and time.imwrite() function used to write data into disk. VI. FUTURE COPE When this concept is implemented in colleges, hospitals, administrative buildings, libraries, banks. ‘This can be used for control of industrial noise, vehicle noise, [fnoise from industry is greater than fixed value, then government can take action on it Class room noise exceeds 80 dB, According to one study, at least 64% students are seriously affected, and since the limit value is 80 dB, This Bad effect of noise fon children in school can be reduced by using this concept. Which can be implemented in all places where silence is necessary. VII. ResuLt The following figures 1, 2, 3 show time versus intensity of noise here X-axis is for time and Y-axis for noise intensity. The pink square spot represent the noise detected at what time and its intensity jue) \90984-/0/08)00 Fig. 1: Sensor Values ated by Graph Figure 1, 2, 3, shows the intensity of noise changes with respect to time and points indicates cither device give waming or not. In figure | at time 2 the intensity of sound is between 26.8 to 27, al time 5 the intensity of sound is nearly equal to 26.4 and at time 7 the intensity fof sound is above the limit of intensity of sound then the NDIC will give warning to stop noising, 146 © National Conference on Advances in Computing, Networking and Security (NCACNS-2013) Fig, 2: Sensor Value>3008 In figure 2 the intensity of sound is seen increase exponentially at time 124, 125, 126 the intensity is above the limit in this situation at 124 the NDIC gives waming to stop noise but further the noise will not reduce therefore at 125 and 126 it will capture image. ‘As same condition happen in figure 3 the strength of sound of sound is very large at time 160 then NDIC will give warning and instantly gives warning by hearing noise again, jgualt \\oged-4 08 =o Fig 3: Sensor Values <30dB and>30488 VIII. Conctusion In this paper we have designed and implemented a system which monitors the premises of the silent zones such as hospitals, educational campus, administrative buildings, ete. Excess of intensity of the noise in these promises will first war the people nearby, and then capture the snapshot of the people causing disturbance and the snapshot will store the date and time at the particular moment as the filename of that snapshot. The snapshot can be viewed only by the authorized person. And the people will stop producing noise in silent zones because they are in under observation of NDIC. ACKNOWLEDGEMENT ‘This work has been supported Dr. LM Waghmare, Dr. R.C. Thool and by TEQIP phase-II, at Shri Guru Gobind Singhji Institute of Engineering and, Technology, Vishnupuri, Nanded. REFERENCES [1} Health eects of noise om children and perception ofthe risk of ose ited by Mare Louse Bistrup Copenhagen 2001, [2] A Beet Review of the Legislative Aspects of Noise Pallton, 1D. Brind Kumar, Sharad V. Ober, Akash Goenka. [3] tpuienswekipedia orp Arduino

You might also like