Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchapron committed Jun 17, 2019
1 parent ec6fb6b commit 77debb0
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 152 deletions.
39 changes: 36 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,47 @@ As mentionned in the paper, you are able to found here:
* Data collected during our experiment

# Full code of the device
It is available in the folder ```code/```.
While it is programmed in **GoLang**, it has been compiled to run on many platforms (see ```code/cmd/```).
The **GoLang** program is available in the folder ```code/```.
However, you may have to change some constants depending on your settings (See file ```code/constants.go``` for more informations).

<u>_It is highly recommended to recompile your own executable._</u>

# Description of the hardware
The module is composed of 3 Infrared Proximity Sensors (*IRPS*), sending their data to an *ADS1x15*, to convert the analog values to digital ones (which can be read by the Raspberry Pi Zero W). The protocol used between the *ADS1x15* and the Raspberry Pi is I²C. The schema is available below and in the folder ```hardware/```.

In this section, the full equipment will be explored.

### Electronics
The module is composed of 3 Infrared Proximity Sensors (*IRPS*), sending their data to an *ADS1x15*,
to convert the analog values to digital ones (which can be read by the Raspberry Pi Zero W).
The protocol used between the *ADS1x15* and the Raspberry Pi is I²C.
The schema is available below and in the folder ```hardware/```.

![Hardware Schematics][hardware_schema]

Here is the devices required to build this module. We use the maker's link, to let you choose your own provider.
* 1x Raspberry Pi Zero W (<https://www.raspberrypi.org/products/raspberry-pi-zero-w/>)
* 1x ADS1x15 (<https://www.adafruit.com/product/1085>)
* 3x Infrared Proximity Sensors (<https://www.sparkfun.com/products/8958>)

### Aesthetics

The 3D-model is provided in the directory ```hardware/```.
The main unit is in the file ```hardware/main_unit.stl``` and both surrounding modules are available in ```hardware/left_unit.stl``` & ```hardware/right_unit.stl```.
Every case has holes in its side, to be able to connect everything together. To hide wires, we chose to use an Expandable Sleeving Cable Wire (coming through those holes).

The whole module fully developed is shown in the next figure.

![Full device][full_device]

# Dataset

As explained in our paper [1], we also provide our collected data in the following repository :
<https://github.com/LIARALab/Datasets/tree/master/SpeedSensorDataset>

# References

[1] Chapron, Kévin; Bouchard ,Kévin; Gaboury, Sébastien. (2019, September). "Real-time Gait Speed Evaluation at Home". GOODTECHS 2019 - 5th EAI International Conference on Smart Objects and Technologies for Social Good.


[hardware_schema]: https://github.com/LIARALab/SpeedSensor/raw/master/hardware/Schema_device_bw.png "Hardware schematics"
[full_device]: https://github.com/LIARALab/SpeedSensor/raw/master/hardware/Photo_device_bw.png "Hardware Aesthetics"
139 changes: 0 additions & 139 deletions cmd/app-ble.go

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion DataManagement.go → code/DataManagement.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package speedsensor
package code

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions EventAnalyzing.go → code/EventAnalyzing.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package speedsensor
package code

import (
"github.com/kevinchapron/BasicLogger/Logging"
"github.com/kevinchapron/FSHK/speedsensor/BLE"
"github.com/kevinchapron/FSHK/speedsensor/code/BLE"
"github.com/montanaflynn/stats"
"sync"
"time"
Expand Down
4 changes: 2 additions & 2 deletions EventSaver.go → code/EventSaver.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package speedsensor
package code

import (
"encoding/csv"
"encoding/json"
"fmt"
"github.com/kevinchapron/FSHK/speedsensor/BLE"
"github.com/kevinchapron/FSHK/speedsensor/code/BLE"
"os"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion Gobot.go → code/Gobot.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package speedsensor
package code

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion cmd/app-test-sensors.go → code/cmd/app-test-sensors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"
Log "github.com/kevinchapron/BasicLogger/Logging"
"github.com/kevinchapron/FSHK/speedsensor"
speedsensor "github.com/kevinchapron/FSHK/speedsensor/code"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/app.go → code/cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"
Log "github.com/kevinchapron/BasicLogger/Logging"
"github.com/kevinchapron/FSHK/speedsensor"
"github.com/kevinchapron/FSHK/speedsensor/BLE"
speedsensor "github.com/kevinchapron/FSHK/speedsensor/code"
"github.com/kevinchapron/FSHK/speedsensor/code/BLE"
"github.com/montanaflynn/stats"
"sort"
"time"
Expand Down
2 changes: 1 addition & 1 deletion constants.go → code/constants.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package speedsensor
package code

import "time"

Expand Down
Binary file added hardware/Photo_device_bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hardware/Schema_device_bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 77debb0

Please sign in to comment.