Difference between revisions of "My wiki:JW, YS"

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
 
(47 intermediate revisions by 3 users not shown)
Line 13: Line 13:
 
<li>The gamification part is a reward. It works like other applications where trees can be planted. It is also an embodiment of the refreshed mental state.</li>
 
<li>The gamification part is a reward. It works like other applications where trees can be planted. It is also an embodiment of the refreshed mental state.</li>
 
</ol>
 
</ol>
 +
<br/>[[File:Heart.png|100px|thumb|center]]
 +
<center>image src: http://yaab-arduino.blogspot.com/2015/05/beating-heart-with-arduino-and-max7219.html</center>
  
 
= System Architecture =
 
= System Architecture =
 +
 +
<ol>
 +
<li>Desired goals: A disengaging system design that promotes users working efficiently and maximizing their own well-being </li>
 +
<li>
 +
Methods: monitor and reduce inappropriate cell phones use in order to manage stress and anxiety of the user</li>
 +
 +
 +
 
<br/>
 
<br/>
 +
[[File:System-illustration.png|700px]]
 +
<br/><h2>Workflow:</h2><br/>
 +
[[File:Diagram.png|700px]]
 +
<br/>
 +
<h2>Core Components:</h2>
 
<table cellspacing="1" bgcolor="#000000">
 
<table cellspacing="1" bgcolor="#000000">
 
<tr bgcolor="#ffffff">
 
<tr bgcolor="#ffffff">
Line 22: Line 37:
 
</tr>
 
</tr>
 
<tr bgcolor="#ffffff">
 
<tr bgcolor="#ffffff">
<td>EDA (electrodermal activity)</td>
+
<td>EDA (electrodermal activity)<br/>
 +
                [[File:Bitalino photo.jpg|200px|thumb|center|src: https://iml.dfki.de/cognitive-load-measurement-using-electrodermal-activity/]]
 +
</td>
 
<td>Measure electrodermal activity</td>
 
<td>Measure electrodermal activity</td>
 
</tr>
 
</tr>
 
         <tr bgcolor="#ffffff">
 
         <tr bgcolor="#ffffff">
<td>Robotic arm
+
<td>Robotic arm<br/>
                <blockquote class="imgur-embed-pub" lang="en" data-id="a/qSW4jfr"  ><a href="//imgur.com/a/qSW4jfr">aaa</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>"
+
                [[File:RoboticArm.png|200px|thumb|center|src: https://shop.sb-components.co.uk/products/piarm-the-diy-robotic-arm-for-raspberry-pi]]
<br/><img src = "https://imgur.com/a/qSW4jfr">
 
 
                 </td>
 
                 </td>
 
<td>Actively take away cellphones and detect cellphones with IR distance sensor</td>
 
<td>Actively take away cellphones and detect cellphones with IR distance sensor</td>
 
</tr>
 
</tr>
 
  <tr bgcolor="#ffffff">
 
  <tr bgcolor="#ffffff">
<td>Pi zero/Pi3</td>
+
<td>Pi zero/Pi3<br/>
 +
                [[File:Pi.jpg|200px|center]]</td>
 
<td>Data center</td>
 
<td>Data center</td>
 
</tr>
 
</tr>
 
  <tr bgcolor="#ffffff">
 
  <tr bgcolor="#ffffff">
<td>P3 touchscreen</td>
+
<td>P3 touchscreen<br/>
 +
                [[File:Touch.jpg|200px|center]]</td>
 
<td>Dashboard, display sensor data and other relevant information (nice to have)</td>
 
<td>Dashboard, display sensor data and other relevant information (nice to have)</td>
 
</tr>
 
</tr>
 
  <tr bgcolor="#ffffff">
 
  <tr bgcolor="#ffffff">
<td>LED matrix</td>
+
<td>LED matrix<br/>
 +
                [[File:Heart.png|100px|center]]</td>
 
<td>Visualize time duration</td>
 
<td>Visualize time duration</td>
 
</tr>
 
</tr>
Line 48: Line 67:
 
= Required Hardware =
 
= Required Hardware =
 
<ul>
 
<ul>
<li>BITalino Electrodermal Activity (EDA)
+
<li>[arrived] EDA: https://www.reichelt.de/arduino-grove-gsr-sensor-grv-gsr-sens-p191210.html?&trstct=pos_0&nbc=1</li>
<br/>https://www.exp-tech.de/sensoren/biometrisch/6621/bitalino-electrodermal-activity-eda</li>
 
  
<li>ECG-GEL-ELECTRODE
+
<li>[arrived]Metal Robot-Arm Kit
<br/>https://www.exp-tech.de/zubehoer/sonstige/5587/ecg-gel-electrode</li>
 
 
 
<li>2-Lead Electrode Cable
 
<br/>https://plux.info/cables/227-2-lead-electrode-cable.html (did not find it in the listed shop) (optional: this Kit: https://www.exp-tech.de/plattformen/kits/6618/bitalino-heartbit-kit then with this Kit we do not need the other EDA equipments (the first two) anymore because it contains others and is expensive)</li>
 
<li>Metal Robot-Arm Kit
 
 
<br/>https://www.reichelt.de/metall-roboter-arm-kit-fuer-raspberry-pi-4-dof-rpi-robot-arm-p266037.html?CCOUNTRY=445&LANGUAGE=de&trstct=pos_0&nbc=1&&r=1</li>
 
<br/>https://www.reichelt.de/metall-roboter-arm-kit-fuer-raspberry-pi-4-dof-rpi-robot-arm-p266037.html?CCOUNTRY=445&LANGUAGE=de&trstct=pos_0&nbc=1&&r=1</li>
  
<li>IR Distance sensor  
+
<li>[arrived] IR Distance sensor  
 
<br/>https://www.reichelt.de/infrarot-abstandssensor-gp2y0a21yk0f-rbt-sen-ir01-p258659.html?&trstct=pos_2&nbc=1</li>
 
<br/>https://www.reichelt.de/infrarot-abstandssensor-gp2y0a21yk0f-rbt-sen-ir01-p258659.html?&trstct=pos_2&nbc=1</li>
<li>Ultra sound distance sensor  
+
<li>[arrived] Ultra sound distance sensor  
 
<br/>https://www.reichelt.de/entwicklerboards-ultraschall-abstandssensor-hc-sr04-debo-sen-ultra-p161487.html?&nbc=1&trstct=lsbght_sldr::284398</li>
 
<br/>https://www.reichelt.de/entwicklerboards-ultraschall-abstandssensor-hc-sr04-debo-sen-ultra-p161487.html?&nbc=1&trstct=lsbght_sldr::284398</li>
  
<li>Pressure sensor  
+
<li>[arrived] Pressure sensor  
 
<br/>https://www.reichelt.de/de/de/arduino-drucksensor-20-g-bis-10-kg-ard-sen-pressure-p284398.html?trstct=pos_0&nbc=1&&r=1</li>
 
<br/>https://www.reichelt.de/de/de/arduino-drucksensor-20-g-bis-10-kg-ard-sen-pressure-p284398.html?trstct=pos_0&nbc=1&&r=1</li>
  
<li>Led matrix  
+
<li>[arrived] Led matrix  
 
<br/>https://www.conrad.de/de/p/wemos-8x8-matrix-led-shield-v1-0-0-fuer-d1-802231563.html#productDescription</li>
 
<br/>https://www.conrad.de/de/p/wemos-8x8-matrix-led-shield-v1-0-0-fuer-d1-802231563.html#productDescription</li>
 
</ul>
 
</ul>
Line 75: Line 88:
  
 
<br/>While being a phone junkie at home harms none, being one at work may cost quite a bit. Facing this issue, our ultimate vision is to “rescue” people from their addiction at the workplace. “Digital Stress Cleaner” (DSC) is the first baby step towards this goal. DSC helps users get used to a low proximity to their cellphones. Daily enforcement along with the small treat (gradually formed LED pattern) will eventually replace users’ old unhealthy habit of cellphone overuse with a new one, which is associated with an intrinsic disengagement of cellphones, higher working efficiency and a better, calmer mental state.
 
<br/>While being a phone junkie at home harms none, being one at work may cost quite a bit. Facing this issue, our ultimate vision is to “rescue” people from their addiction at the workplace. “Digital Stress Cleaner” (DSC) is the first baby step towards this goal. DSC helps users get used to a low proximity to their cellphones. Daily enforcement along with the small treat (gradually formed LED pattern) will eventually replace users’ old unhealthy habit of cellphone overuse with a new one, which is associated with an intrinsic disengagement of cellphones, higher working efficiency and a better, calmer mental state.
 +
= Milestones =
 +
<h3>1st Milestone: - 22.01 (Done)</h3>
 +
<ul><li>Task:
 +
<ul><li>
 +
Load cell connected to pi </li>
 +
<li>LED matrix connected to esp32 </li>
 +
<li>Pi web server interface</li>
 +
<li>Eda connect to pi and read data</li>
 +
<li>Pir sensor connect to pi and detect movement</li> </ul></li>
 +
<li>
 +
Minimum: load cell, led, eda, pir. </li>
 +
<li>Nice to haves: web server interface: 1. showing live data from all elements, 2. Using buttons to control the start time of the system. </li>
 +
</ul>
 +
<h3>2nd Milestone: 22.01- 01.03 </h3>
 +
<ul><li>Task:
 +
Robot arm building and control,
 +
Communication between all elements</li>
 +
<li>Risk:<ul>
 +
<li>Arm can not hold the object at the proper time (slow reaction)</li>
 +
<li>Arm can not put the object into the proper place (movement direction control)</li>
 +
<li>Arm can not move flexibly (4 axis mechanical design)</li>
 +
<li>Coordination between elements</li></ul></li>
 +
<li>Minimum:
 +
Movable arm, able to hold object
 +
All elements work well separately </li>
 +
</ul>
 +
 +
<h3>3nd Milestone: 01.03 - 12.03 </h3>
 +
<ul><li>
 +
Task:
 +
Video, Teaser,
 +
4 pages system description (including code, photos, schematics, etc.),
 +
Presentation preparation</li>
 +
</ul>
 +
= Implementation =
 +
 +
WS2812B LED MATRIX
 +
 +
Sn74ahct125n pinout
 +
 +
protection circuit
 +
https://www.led-studien.de/schutzschaltung-fuer-ws2812-pixel/
 +
 +
Tutorial
 +
https://docs.micropython.org/en/latest/esp8266/tutorial/neopixel.html
 +
 +
https://randomnerdtutorials.com/micropython-ws2812b-addressable-rgb-leds-neopixel-esp32-esp8266/
 +
 +
Rgb color chart
 +
https://www.rapidtables.com/web/color/RGB_Color.html
 +
 +
Interesting to check
 +
https://gpiocc.github.io/learn/micropython/esp/2020/05/30/martin-ku-control-neopixels-over-the-internet-with-esp32-and-micropython.html
 +
 +
Load cell
 +
https://github.com/dcrystalj/hx711py3
 +
https://www.instructables.com/Arduino-Scale-With-5kg-Load-Cell-and-HX711-Amplifi/
 +
 +
Robotic arm
 +
https://www.waveshare.com/wiki/Robot_Arm_for_Pi
 +
 +
Web Server
 +
https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/
 +
 +
GSR sensor: galvanic skin response
 +
https://wiki.seeedstudio.com/Grove-GSR_Sensor/
 +
 +
Hard and software configuration: https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/
 +
Grove Base Hat for Raspberry Pi
  
 
= Evaluation =
 
= Evaluation =

Latest revision as of 22:44, 27 January 2021

System Description[edit]

“Digital stress cleaner” is a system that is designed for disengagement of digital consumption. Due to the “attention economy”, digital products like “Tik Tok”, “Instagram” are designed to make users addicted to it and therefore users did not do productive work, which causes anxiety.


During study hours, this system will monitor user’s anxiety by using EDA (electrodermal activity). If the EDA shows the user is under stress, the system will give the user a signal which is sent by robotic arm(swing back and forth) This signal is a kindly reminder that the user is playing with the smartphone for too long and should hand in the smartphone to the designated area. The robotic arm which is mounted on the table, will then detect the smartphone by using IR distance sensor. If the user has put it to the designated area, the robotic arm will clamp it and put it into the container which will detect if the smartphone is within it by using pressure sensor. Then comes the gamification part: the LED matrix display will begin to draw one random point every two minutes. After the user has successfully concentrated on his/her work for a long time, the whole pattern will be shown, which will be different every time.


Annotation:

  1. The user’s mental state is normal by default. We assume stress is caused by compulsory checking of smartphone/ unstoppable consuming short videos, procrastination and so on.
  2. Users can set up when the study hour is. Before study hours begins, the user will turn on the robot arm, put on EDA devices and other preparation.
  3. This system does not require users to hand in their phones at the beginning or do not allow users to touch their phones like other time management applications, because users may need their phones when they encounter problems. It works like a monitor and only takes action when necessary.
  4. The container is equipped beside the table where it is not that easy reachable for users. But it is not far away for robotic arm.
  5. The gamification part is a reward. It works like other applications where trees can be planted. It is also an embodiment of the refreshed mental state.


Heart.png
image src: http://yaab-arduino.blogspot.com/2015/05/beating-heart-with-arduino-and-max7219.html

System Architecture[edit]

  1. Desired goals: A disengaging system design that promotes users working efficiently and maximizing their own well-being
  2. Methods: monitor and reduce inappropriate cell phones use in order to manage stress and anxiety of the user

  3. System-illustration.png

    Workflow:


    Diagram.png

    Core Components:

    Technology/materials Purpose
    EDA (electrodermal activity)
    Measure electrodermal activity
    Robotic arm
    Actively take away cellphones and detect cellphones with IR distance sensor
    Pi zero/Pi3
    Pi.jpg
    Data center
    P3 touchscreen
    Touch.jpg
    Dashboard, display sensor data and other relevant information (nice to have)
    LED matrix
    Heart.png
    Visualize time duration

    Required Hardware[edit]

    Relation to Digital Health[edit]

    “Instead of improving our lives, technology is increasingly getting in the way of enjoying our lives. And the biggest source of trouble is that device that's with you wherever you go.” We can confidently but not really proudly admit that we, people who are stuck in the modern society, have a problem with digital devices, especially with the cellphones. This problem is known as smartphone addiction, smartphone overuse or cellphone dependency. The problematic use of cellphones comprehends “preoccupation with mobile communication, excessive money or time spent on mobile phones, and use of mobile phones in socially or physically inappropriate situations”. Pardon the bluntness, but we are mostly, if not all, phone junkies.


    While being a phone junkie at home harms none, being one at work may cost quite a bit. Facing this issue, our ultimate vision is to “rescue” people from their addiction at the workplace. “Digital Stress Cleaner” (DSC) is the first baby step towards this goal. DSC helps users get used to a low proximity to their cellphones. Daily enforcement along with the small treat (gradually formed LED pattern) will eventually replace users’ old unhealthy habit of cellphone overuse with a new one, which is associated with an intrinsic disengagement of cellphones, higher working efficiency and a better, calmer mental state.

    Milestones[edit]

    1st Milestone: - 22.01 (Done)

    • Task:
      • Load cell connected to pi
      • LED matrix connected to esp32
      • Pi web server interface
      • Eda connect to pi and read data
      • Pir sensor connect to pi and detect movement
    • Minimum: load cell, led, eda, pir.
    • Nice to haves: web server interface: 1. showing live data from all elements, 2. Using buttons to control the start time of the system.

    2nd Milestone: 22.01- 01.03

    • Task: Robot arm building and control, Communication between all elements
    • Risk:
      • Arm can not hold the object at the proper time (slow reaction)
      • Arm can not put the object into the proper place (movement direction control)
      • Arm can not move flexibly (4 axis mechanical design)
      • Coordination between elements
    • Minimum: Movable arm, able to hold object All elements work well separately

    3nd Milestone: 01.03 - 12.03

    • Task: Video, Teaser, 4 pages system description (including code, photos, schematics, etc.), Presentation preparation

    Implementation[edit]

    WS2812B LED MATRIX

    Sn74ahct125n pinout

    protection circuit https://www.led-studien.de/schutzschaltung-fuer-ws2812-pixel/

    Tutorial https://docs.micropython.org/en/latest/esp8266/tutorial/neopixel.html

    https://randomnerdtutorials.com/micropython-ws2812b-addressable-rgb-leds-neopixel-esp32-esp8266/

    Rgb color chart https://www.rapidtables.com/web/color/RGB_Color.html

    Interesting to check https://gpiocc.github.io/learn/micropython/esp/2020/05/30/martin-ku-control-neopixels-over-the-internet-with-esp32-and-micropython.html

    Load cell https://github.com/dcrystalj/hx711py3 https://www.instructables.com/Arduino-Scale-With-5kg-Load-Cell-and-HX711-Amplifi/

    Robotic arm https://www.waveshare.com/wiki/Robot_Arm_for_Pi

    Web Server https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/

    GSR sensor: galvanic skin response https://wiki.seeedstudio.com/Grove-GSR_Sensor/

    Hard and software configuration: https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/ Grove Base Hat for Raspberry Pi

    Evaluation[edit]

    • User test / survey
    • Is user’s stress reduced?
    • Electrodermal activity comparison
    • Screen time report
    • ...

    References[edit]