PRE2016 3 Groep8: Difference between revisions
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
== Bluetooth Kitchen Scale == | == Bluetooth Kitchen Scale == | ||
'''Introduction''' | |||
As extra help the application that will be developed can be linked to a kitchen scale with Bluetooth. The idea is that if you scoop up dinner on your plate while it is on the scale, the application immediately knows how much grams you are going to eat. In order to realize this, it’s necessary that the kitchen scale can be read out by a computer. In this case this will be tried using a Arduino. If the Arduino is able to read out the date collected from the scale, a software tool has to convert the output to “grams”. So a calibration is needed for the Arduino to give the correct output. Finally an Arduino Bluetooth device is needed to communicate with the application on a android device. | |||
'''Electronics''' | '''Electronics''' | ||
There are two possible ways to read out a kitchen scale by making use of Arduino. These two possibilities are dependent on the kitchen scale. A kitchen scale has a so called “load cell” inside, these can be seen as the sensor of the scale that has to be read out. Dependent on the scale, a Load Cell Amplifier Module is needed. | |||
PLAATJE LOAD CELL | |||
In the best case, the scale has a PWM (Pulse-Width Modulation) signal as output by making use of an ADC (Analog Digital Converter). In this case no additional electronics then the Arduino are needed. In this case the PWM signal can be taken directly from the breadboard of the scale. In the figure below an example of a suitable circuit diagram can be seen. The PWM signal has to be connected to the Arduino interrupt pin d3 and the output of the ADC has to be grounded to the Arduino. | |||
PLAATJE SCHAKEL SCHEMA | |||
In the other scenario, the scale doesn’t make use of an ADC, so it has no PWM output. In this case a Load Cell Amplifier Module is needed to convert the signal, for instance an Arduino HX711. If this is the case the existing breadboard of the scale isn’t needed any more, only the Load Cell itself is needed. This way will be easier probably, because no tinkering with the existing breadboard (complicated electronics) is needed. In the figure below a possible circuit diagram for this case can be seen. | |||
PLAATJE SCHAKEL SCHEMA | |||
'''Calibration''' | |||
To use the “Arduino scale” the output needs to be calibrated first. This can be done by weighing multiple weights on the scale and note the corresponding outputs. An appropriate way to do this by making use of Microsoft Excel. After plotting the results, it’s possible to determine an equation with a gain and offset. However more investigation in how to do this correctly is definitely needed yet! Furthermore an Arduino script has to be written, so the correct output in grams can be derived automatically by making use the calibration expression. | |||
'''Bluetooth Connection''' | |||
To make the system described above suitable for the application that will be developed, it’s necessary that the Arduino can communicated with the android application by making use of Bluetooth. To make this possible a BT module (like HC-06 or HC-05) is needed. Simple codes for this module already exist on the internet but finally have to be modified to be suited for the application. In the figure below a possible circuit diagram for the connection of the BT module can be seen. | |||
PLAATJE BT MODULE | |||
== Sources == | == Sources == | ||
[1] https://www.diabetesfonds.nl/home | [1] https://www.diabetesfonds.nl/home |
Revision as of 13:53, 12 February 2017
Student Numbers of group 8 members
- 0957735
- 0895428
- 0955135
- 0957168
- 0960769
- 0959019
Introduction
Problem definition
More than 1.2 million people in the Netherlands have diabetes. That is about one out of every fourteen people and everyday about 169 people are newly diagnosed. [1] Although it is treatable with medicines or insulin, it is a chronically disease you are confronted with everyday. Depending on the type of diabetes, people have to insert insulin three times a day, around every meal. A diabetes patient always has to keep track of the number of grams of carbohydrates that have been consumed. On the basis of a formula, it can be calculated how much insulin is needed to keep ones blood sugar level on healthy terms. However, this is a standard formula for everyone and throughout your own life it also differs how much extra insulin is needed for every gram of carbohydrates. This formula should actually differ for every person and change from time to time. It is also quite some work to always keep track of the food or carbohydrates you have eaten, especially for a plate full of hot steaming food...
Our solution
Our goal is to develop a diabetes application that helps a patient with the problems mentioned above. The most important part of the application is an algorithm that learns from the user and optimizes the formula accordingly. At the start of using the application you have to fill in what you have eaten on a day and your blood glucose level for a longer period. From this information the algorithm learns what your blood glucose level will be depending only on what you have eaten on a day. This information will be used to let the user know how much insulin must be inserted. Additionally, the input of what you have eaten should be simple. This can be done with text or a picture. The program also remembers what you often eat at a certain time of the day, so if you want to fill in what you have eaten you receive suggestions of specific meals or snacks. As extra help the application can be linked to a kitchen scale with Bluetooth. If you scoop up dinner on your plate while it is on the scale the application immediately knows how much grams of, for instance, potatoes you are going to eat.
Week planning
Task division
Introductory presentation, February 13th: Joris Veens, Ineke Kil
- Defining autonomous part for formula optimizing: Joris Veens, Jolien van der Thiel
- Bluetooth connected kitchen scale: Joris Verhagen, Bjorn van Rixtel
- Lay-out application (inputs, outputs as well): Ainse Kokkelmans
- USE aspects, ethical aspects, social relevance: Ineke Kil
Case scenario
Users
Bluetooth Kitchen Scale
Introduction As extra help the application that will be developed can be linked to a kitchen scale with Bluetooth. The idea is that if you scoop up dinner on your plate while it is on the scale, the application immediately knows how much grams you are going to eat. In order to realize this, it’s necessary that the kitchen scale can be read out by a computer. In this case this will be tried using a Arduino. If the Arduino is able to read out the date collected from the scale, a software tool has to convert the output to “grams”. So a calibration is needed for the Arduino to give the correct output. Finally an Arduino Bluetooth device is needed to communicate with the application on a android device.
Electronics There are two possible ways to read out a kitchen scale by making use of Arduino. These two possibilities are dependent on the kitchen scale. A kitchen scale has a so called “load cell” inside, these can be seen as the sensor of the scale that has to be read out. Dependent on the scale, a Load Cell Amplifier Module is needed.
PLAATJE LOAD CELL
In the best case, the scale has a PWM (Pulse-Width Modulation) signal as output by making use of an ADC (Analog Digital Converter). In this case no additional electronics then the Arduino are needed. In this case the PWM signal can be taken directly from the breadboard of the scale. In the figure below an example of a suitable circuit diagram can be seen. The PWM signal has to be connected to the Arduino interrupt pin d3 and the output of the ADC has to be grounded to the Arduino.
PLAATJE SCHAKEL SCHEMA
In the other scenario, the scale doesn’t make use of an ADC, so it has no PWM output. In this case a Load Cell Amplifier Module is needed to convert the signal, for instance an Arduino HX711. If this is the case the existing breadboard of the scale isn’t needed any more, only the Load Cell itself is needed. This way will be easier probably, because no tinkering with the existing breadboard (complicated electronics) is needed. In the figure below a possible circuit diagram for this case can be seen.
PLAATJE SCHAKEL SCHEMA
Calibration To use the “Arduino scale” the output needs to be calibrated first. This can be done by weighing multiple weights on the scale and note the corresponding outputs. An appropriate way to do this by making use of Microsoft Excel. After plotting the results, it’s possible to determine an equation with a gain and offset. However more investigation in how to do this correctly is definitely needed yet! Furthermore an Arduino script has to be written, so the correct output in grams can be derived automatically by making use the calibration expression.
Bluetooth Connection To make the system described above suitable for the application that will be developed, it’s necessary that the Arduino can communicated with the android application by making use of Bluetooth. To make this possible a BT module (like HC-06 or HC-05) is needed. Simple codes for this module already exist on the internet but finally have to be modified to be suited for the application. In the figure below a possible circuit diagram for the connection of the BT module can be seen.
PLAATJE BT MODULE