Giter Site home page Giter Site logo

adhd-multishape-disturbance's Introduction

Shape-color conflicting

a subsytem of WeDA (CHI 2020)

WeDA: Designing and Evaluating A Scale-driven Wearable Diagnostic Assessment System for Children with ADHD

9bc9ca37-5313-4fcd-a9dd-70a22dc56a7e.png

The image above uses ./3D_Print_SourceCode/tri_box.scad. Additional hardware requirements, software configuration, data specifications and circuit diagrams are shown below (in Chinese). One may use OpenSCAD to generate .gcode files for 3D printing

There is another version using servo motors. Involving files include:

  • ./3D_Print_SourceCode/NfcBox_Ard.scad
  • ./3D_Print_SourceCode/NfcBox_Top.scad
  • ./3D_Print_SourceCode/NfcReaderSupporter.scad
  • ./3D_Print_SourceCode/ServoSupporter.scad
  • ./3D_Print_SourceCode/NfcTopShape*

faab0583-7adb-474c-b290-4bfdbf8f8758.png

一、硬件清单

物品 数量
1. Raspberry Pi 3b+ ( Micro SD 卡) 1
2. Raspberry Pi 3b+ 供电线和插头 1
3. 易火眼 ER-302 读写器 4或5 (多余的一个可以用来读写物块信息)
4. MG995 伺服电机 4
5. 9V 干电池 4
6. 9V 干电池电池扣 4
7. 杜邦线簧片 + 杜邦线胶壳 8 (电池正极负极各一个)
8. 1 分 4 可供电 USB Hub 1
9. USB Hub 供电线 1
10. 公-母 杜邦线 12
11. 公-公 杜邦线 4
12. NFC 标签 16 + ( 有的时候 NFC 标签本来就是坏的 )
  • 电池扣本身并没有杜邦线引出,可使用压线钳、杜邦线簧片和杜邦线胶壳 (7) 来制作

二、接线图

  • 当以此方向放置 Raspberry Pi 时:

    引脚信息如下图所示:

  • 约定下文所述引脚耗均为物理引脚

三、环境配置

拿到 Raspberry Pi,烧录系统启动后:

  • 按照上图连线
  • 启动 Pi
  • requirements.txtMultiShape.py 拷贝到 Pi 中
  • 执行 pip3 install -r requirements.txt
    • 如果是 LITE 版系统,则需先安装 pip : sudo apt-get install python3-pip
  • 执行 python3 MultiShape.py 启动整个系统
  • 如需开机自动启动,参考石墨文档中 配置systemd服务实现程序开机启动

四、其他

  • NFC 标签内容及格式:

    # <color>&&<shape>
    
    red&&triangle
    yellow&&circle
  • 脚本中颜色和形状对应的数据包内容

    颜色 颜色代码 形状 形状代码
    blue 00 square 00
    yellow 01 triangle 01
    red 02 round 02
    green 03 pentagon 03
  • 数据包格式和内容详见石墨文档

adhd-multishape-disturbance's People

Contributors

xdrl1 avatar

Stargazers

Teng Zhang avatar LiYibing avatar  avatar

Watchers

 avatar

Forkers

thulasi-vk

adhd-multishape-disturbance's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.