440 likes | 800 Views
Wireless Mood Detector. Group 2 Crystal Menon & Eric Tashakkor ECE 445 – Senior Design December 1, 2005. What is a “wireless mood detector”?. The Wireless Mood Detector (WMD) is a wireless audio system controlled by the user’s emotional state or mood.
E N D
Wireless Mood Detector Group 2 Crystal Menon & Eric Tashakkor ECE 445 – Senior Design December 1, 2005
What is a “wireless mood detector”? • The Wireless Mood Detector (WMD) is a wireless audio system controlled by the user’s emotional state or mood. • The WMD solves the common problem of wasting time finding music to fit one’s mood. • The WMD can be used as a treatment tool for psychologists and music therapists.
Product Features • Mood Machine software with customizable playlists for each mood • Plays all popular audio and video formats (mp3, wma, wav, mid, mpg, avi, wmv) • PC serial interface • Wireless transmitter (range ~300ft) • Noninvasive biological sensors
Product Benefits • No more searching through thousands of MP3s to find the perfect song • Music changes automatically as the user’s mood changes • Wireless connection allows for mobility in the room
System Overview • Hardware: • Temperature Sensor, Pulse Sensor, PIC Microcontroller, Wireless Link • Software: • Mood Machine programmed in VB.NET
Hardware Overview • Temperature Sensor • Measures the user’s skin temperature • Pulse Sensor • Measures the user’s heart rate using an EKG and converts it to a simple waveform for the PIC
Hardware Overview • PIC Microcontroller • Converts analog sensor data to digital format • Communicates with PC through wireless link • Wireless Link • Sends serial data from PIC to PC • MAX232 chip converts TTL voltages to RS232
Temperature Sensor • To find the temperature we use the Motorola MTS 102 analog temperature sensor • The MTS 102 requires a constant current of 100µA • We use the LM 334 adjustable current source
Temperature Sensor • For a 100µA current, we calculated the Rset resistor value using the equation Iset= VR/ Rset * 1.059 • We found the relationship between temperature and voltage: Temperature (°C) = -444.48 * Vout + 290
Pulse Sensor • Based on an EKG using the AD 622 Amplifier • Electrodes and 4.7kΩ resistors between the test subject and the AD 622 input • The RC circuit eliminates any DC offset
Pulse Sensor • Output from EKG is fed into the V+ input pin of the Differential Amplifier LM 311 single high-speed voltage comparator • The LM 311 compares the input voltage to a reference voltage V- • When V+ > V-, the comparator outputs a high signal. Otherwise, it is low.
Pulse Sensor • The output from EKG and LM 311 is not a smooth, clean signal • To correct for this, we feed the comparator’s output into a D flip-flop
PIC Microcontroller • Temperature output pin is connected to the Microcontroller pin RA0 to convert A/D • Pulse sensor output pin is connected to the Microcontroller pin RC1 to count time between peaks
Sensor Data Collection • PIC takes 31 temperature data points to be averaged on the PC • We do this because the temperature sensor voltage fluctuates
Sensor Data Collection • For the pulse sensor, the PIC counts the time between two peaks from the D flip-flop by incrementing internal registers • The PIC sends these numbers to the PC in order to calculate the heart rate
Wireless Link • The PIC sends 40 bytes across the Linx transmitter (3 header, 31 temperature, and 6 pulse) at 4800 baud. • The Maxim MAX232 converts the TTL voltages (0/5V) from the Linx receiver to RS232 logic (-10/10V) • The PC reads in the data on COM2.
How Mood Machine Works • Software receives data from PIC that contains numbers to calculate the user’s temperature and pulse. • Calculated temperature and pulse are compared to the mood chart. • Current playlist changes to another Windows Media Player list for a different mood.
Calculating Temperature and Pulse • Average digital numbers and convert to voltages • Voltage (V) = 188.71 * Number + 11.615 • Convert to temperature • Temperature (°C) = -444.48 * Voltage + 290 • Calculate pulse • Pulse (BPM) = 60 / ((Number * 20) / 16,000,000)
The Possibilities Are Endless… • Customizable mood detection • User circuit integrated into a wearable wristband, watch, necklace, or earrings • New and improved sensors for better mood resolution • The WMD would adjust the lighting and temperature of the room