Assalamualaikum and hi! π
Week : 9
Date : 22 Sept 2019 - 28 Sept 2019
Activities :
1. Soldering signal conditioning circuit.
π 22 September 2019
β 9.30 pm - 11.00pm
π¬ Research Lab, Level 4, UniKL BMI
π The components of the signal conditioning circuit were soldered according to the layout that has been sketched in the Fritzing software. To make it much easier, the circuit is sketched on a paper to identify full connection for the sound sensor, the signal conditioning and the Arduino UNO board.
Circuit with soldering parts.
*click to expand image*
Circuit with labeled pins.
*click to expand image*
π 24 September 2019
π By using the previous coding (testing sound sensor capability), the coding is modified to print out the value of sound that been detected by the sound sensor on the serial monitor of Arduino IDE 1.8.9 software. Instead of using the digital pin in the coding, the analog pin is declared in the coding because the frequency of sound is an analog signal. Digital signal only has two values which are HIGH and LOW.
π By using the analog input in the coding, the signal from the sound sensor will be received by the Arduino UNO board analog input pin and send to the computer. Arduino UNO board acts as a communication function between the sound sensor and the computer.
π In the coding, the analogRead(pin) function indicates the analog information is stored into a variable. This function will convert the analog value from the analog input pin and returns a digital value. The conversion is done automatically due to the Arduino UNO board has a built-in analog-to-digital converter (ADC). The serial monitor of Arduino IDE 1.8.9 software will print out the value of the sound by giving the instruction of Serial.println.
π In this analog sound sensor coding, I want the serial monitor to print out the value of the sound detected and classified it based on a specific range. So, the if-else case is written in the coding. The serial monitor will print out "Sound detect" if the value is less than 300 or otherwise, it will print "High sound detect".
Condition >> value sound sensor less than 300
Serial monitor >> print "Sound detect"
Condition >> value sound sensor more than 300
Serial monitor >> print "High sound detect"
π Yet, for this coding, Arduino UNO still cannot print out the exactly value of the frequency of the sound sensor. It only prints the value in byte.
π By using the analog input in the coding, the signal from the sound sensor will be received by the Arduino UNO board analog input pin and send to the computer. Arduino UNO board acts as a communication function between the sound sensor and the computer.
π In the coding, the analogRead(pin) function indicates the analog information is stored into a variable. This function will convert the analog value from the analog input pin and returns a digital value. The conversion is done automatically due to the Arduino UNO board has a built-in analog-to-digital converter (ADC). The serial monitor of Arduino IDE 1.8.9 software will print out the value of the sound by giving the instruction of Serial.println.
π In this analog sound sensor coding, I want the serial monitor to print out the value of the sound detected and classified it based on a specific range. So, the if-else case is written in the coding. The serial monitor will print out "Sound detect" if the value is less than 300 or otherwise, it will print "High sound detect".
Condition >> value sound sensor less than 300
Serial monitor >> print "Sound detect"
Condition >> value sound sensor more than 300
Serial monitor >> print "High sound detect"
π Yet, for this coding, Arduino UNO still cannot print out the exactly value of the frequency of the sound sensor. It only prints the value in byte.
Analog sound sensor coding with serial monitor.
*click to expand image*
3. Coding - Connecting Arduino WeMos to the Wi-Fi connection.
π 25 September 2019
π Arduino WeMos D1 R2 board is an ESP8266 Wi-Fi-based board that uses the Arduino layout with an operating voltage of 3.3V. For the development of this project, Arduino WeMos is used for transmitting the data from the Arduino UNO board to the end-users smartphone (specifically to Telegram) via a Wi-Fi network.
π To program coding for Wi-Fi network connection, SSID and password are important. Service Set Identifier (SSID) is a unique ID for naming wireless network. Typically, SSID is the name for a Wi-Fi network. By declaring the SSID of my Wi-Fi network from the hotspot of my mobile phone and the password in the coding, Arduino WeMos board can communicate with the Wi-Fi network after the coding is uploaded into the board.
π By using the function WiFi.localIP(), the Internet Protocol address (IP address) will be print out in the serial monitor of Arduino IDE 1.8.9. An IP address is a numerical label assigned to each device connected to a network that used for communication. It serves two main functions which are the host or network interface identification and the location address.
π After this coding is uploaded into the Arduino WeMos board, the ESP8266 in Arduino WeMos board will search the Wi-Fi connection that has been set up in the coding based on the SSID and password. If it is connected with the Wi-Fi network, the serial monitor will print out "Wi-Fi connected" and "IP address".
Condition >> connected to Wi-Fi
Serial monitor >> print "Wi-Fi connected" and "IP address: __________"
Condition >> not connected to Wi-Fi
Serial monitor >> print "..............................................................................."
π 26 September 2019
π To program coding for Wi-Fi network connection, SSID and password are important. Service Set Identifier (SSID) is a unique ID for naming wireless network. Typically, SSID is the name for a Wi-Fi network. By declaring the SSID of my Wi-Fi network from the hotspot of my mobile phone and the password in the coding, Arduino WeMos board can communicate with the Wi-Fi network after the coding is uploaded into the board.
π By using the function WiFi.localIP(), the Internet Protocol address (IP address) will be print out in the serial monitor of Arduino IDE 1.8.9. An IP address is a numerical label assigned to each device connected to a network that used for communication. It serves two main functions which are the host or network interface identification and the location address.
π After this coding is uploaded into the Arduino WeMos board, the ESP8266 in Arduino WeMos board will search the Wi-Fi connection that has been set up in the coding based on the SSID and password. If it is connected with the Wi-Fi network, the serial monitor will print out "Wi-Fi connected" and "IP address".
Condition >> connected to Wi-Fi
Serial monitor >> print "Wi-Fi connected" and "IP address: __________"
Condition >> not connected to Wi-Fi
Serial monitor >> print "..............................................................................."
Wi-Fi network connection coding with serial monitor.
*click to expand image*
Wi-Fi network via mobile phone's hotspot is connected to Arduino WeMos
*click to expand image*
4. Collecting data on sound alarm.
π 26 September 2019
β 2.00 pm - 5.00pm
π¬ SPS 209, UniKL BMI
π Data is collected based on two types of sound alarm of the Phillips Patient Monitor serial number CN94370041; battery failure and NIBP cuff failure. Battery failure when the patient monitor is having extremely low battery and NIBP cuff failure occurs if the NIBP cuff is removed, not properly attached or failed to deflate.
π By connecting an oscilloscope to the output pin of the circuit, the waveform of the medical equipment alarm can be observed. The sound sensor is put as close as possible to the speaker of the patient monitor so that the sound sensor can capture the alarm sound. The sound sensor also is put as far as possible to see how far the sound sensor can capture the alarm sound and filter the other medical equipment's alarm. Due to the patient monitor can adjusting the volume of the alarm, the data for alarm during the lowest volume and the highest volume are also collected to be further analysed.
Name : Phillips Patient Monitor VM6
Serial Number : CN94370041
Alarm's Volume : 3 (min) to 10 (max)
π The collected data are measured and write into Microsoft Excel for further analysis. Based on the data, it can be observed that the range of frequency for the patient monitor with battery failure alarm is 1000 Hz to 1100 Hz and the range of frequency for the patient monitor with NIBP cuff failure alarm is 500 Hz to 555 Hz. The maximum distance between the sound sensor and the patient monitor is 8 inches for volume 3 (minimum volume) and 21 inches for volume 10 (maximum volume). If the sound sensor is further than that distances, the sound sensor will capture other sounds such as other medical equipment's alarm.
π For further observation can be seen here >> Collection of data
5. Coding - Sound sensor with Arduino UNO
π 27 September 2019
π By connecting an oscilloscope to the output pin of the circuit, the waveform of the medical equipment alarm can be observed. The sound sensor is put as close as possible to the speaker of the patient monitor so that the sound sensor can capture the alarm sound. The sound sensor also is put as far as possible to see how far the sound sensor can capture the alarm sound and filter the other medical equipment's alarm. Due to the patient monitor can adjusting the volume of the alarm, the data for alarm during the lowest volume and the highest volume are also collected to be further analysed.
Name : Phillips Patient Monitor VM6
Serial Number : CN94370041
Alarm's Volume : 3 (min) to 10 (max)
Sound sensor is connected as near as possible to the speaker of the patient monitor.
*click to expand image*
Test 1: Waveform of patient monitor with battery failure
*click to expand image*
Test 2: Waveform of patient monitor with battery failure
*click to expand image*
Test 1: Waveform of patient monitor with NIBP cuff failure
*click to expand image*
Test 2: Waveform of patient monitor with NIBP cuff failure
*click to expand image*
π For further observation can be seen here >> Collection of data
5. Coding - Sound sensor with Arduino UNO
π 27 September 2019
π This coding is the continuing of the analog sound sensor coding. The problem for the previous coding for Arduino UNO board is because the serial monitor only prints the value of sound detected in byte (0 to 1023). For the newest coding, a formula is implemented in the coding so that the serial monitor can print the exact value of frequency for the patient monitor's alarm sound.
Serial monitor print the exact value of frequency when NIBP cuff failure alarm sound.
*click to expand image*
"Hard time doesn't create heroes. It is during the hard times when the 'hero' within us is revealed."
Bob Riley
Bob Riley
Post a Comment
<< home >>