The function of the RGB sensor is to identify colors. The sensor does this using an array of 64 photodiodes. There are four groups of photodiodes; each group has a filter over it making it sensitive to a different color of light (white, red, blue, or green). The sensor unit analyzes each photodiode one color at a time and measures the intensity of the light that passes through it. If a red object is being sensed, the photodiodes beneath the red filters will sense higher light intensity values than the other filter colors. The photodiode senses the intensity of the light and outputs this intensity data in the form of a current. For example, if the photodiode senses high light intensity it outputs a high current, and if the photodiode senses low light intensity it outputs a low current. The color sensor module contains an internal current-to-frequency converter that converts current readings from photodiodes into a square wave whose frequency is proportional to the intensity of the sensed color. The light intensity values of each color (which have now been converted into a frequency) are averaged and turned into an RGB value. By measuring the relative level of red, green and blue light, the color of the object is determined. Since we know that the red component of the RGB value will be high and the blue and green components will be low when red is sensed, we can specify the range for each RGB component associated with a certain color in the code. RGB values detected by the color sensor module are monitored in real time. When the criteria for “red” is met, and blood is detected, the code signals for an alarm to sound, which wakes up the patient.
The sensor unit housing has two compartments. The bottom compartment is inaccessible to the patient and houses the RGB sensor and Beetle microcontroller. The other compartment houses the batteries and is accessible so that the patient can change the batteries. The housing also features an access channel that runs from the RGB sensor to the outside edge of the housing; this channel is large enough for the dialysis tubing to fit through allowing the device to be placed directly over top of the needle access site. Future designs would eliminate the rigid housing in favor of a flexible bandage with scaled down interior components that would be adhered over the top of the needle insertion site.
Inside view of the battery compartment
Interior of the bottom compartment. The RGB sensor sits on top of the glass viewport
Isometric view of the bottom component. Notice the central access port to allow a power supply and data transmission between the controller and the sensor.
Bottom view of the device. The IV tubes run through the channel and the open viewport rests over the top of the venous return needle.
Code is uploaded to the microcontroller to tell the other components of the device what to do. Color sensor code tells the RGB sensor to look for the color red and send a signal to the alarm unit when red is detected. The color sensor code also tells the alarm unit to trigger an alarm if it receives communication from the sensor unit that red has been detected. The Beetle board features a Bluetooth transmitter and receiver which allows wireless communication between the sensor and alarm units.
Two 3V coin batteries were chosen to power the prototype device because they are small in size and contain enough energy to power the sensor unit for approximately 40,000 hours, which is equivalent to 4,000 treatment cycles.
The function of the buzzer is to sound loud enough to wake a patient from sleep and alert them that they are bleeding.