THUgewu commited on
Commit
d707571
·
verified ·
1 Parent(s): 3a7bc06

Add TsFile (converted from nuerrr/robot-sensor-telemetry)

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - robotics
5
+ - time-series-forecasting
6
+ language:
7
+ - en
8
+ tags:
9
+ - tsfile
10
+ - timeseries
11
+ - robotics
12
+ - embedded-systems
13
+ - ultrasonic
14
+ - autonomous-robot
15
+ - PIC16F877A
16
+ - time-series
17
+ - format:tsfile
18
+ pretty_name: Robot Sensor Telemetry Dataset (TsFile)
19
+ size_categories:
20
+ - n<1K
21
+ configs:
22
+ - config_name: default
23
+ data_files:
24
+ - split: robot_sensor_telemetry
25
+ path: robot_sensor_telemetry.tsfile
26
+ ---
27
+
28
+ # Robot Sensor Telemetry Dataset (TsFile)
29
+
30
+ Apache TsFile version of [`nuerrr/robot-sensor-telemetry`](https://huggingface.co/datasets/nuerrr/robot-sensor-telemetry).
31
+
32
+ ## Overview
33
+
34
+ This dataset contains real-time sensor telemetry collected from an autonomous robot built for CIE-349/408 Embedded Systems at Zewail City University of Science and Technology (Spring 2026).
35
+
36
+ - **Tables:** 1 TsFile table(s), 81 rows in total.
37
+ - `robot_sensor_telemetry`: 81 rows, 1970-01-01 00:00:00 → 1970-01-01 00:00:20 (UTC)
38
+
39
+ ## Schema (TsFile structure)
40
+
41
+ ### `robot_sensor_telemetry.tsfile`
42
+
43
+ - **Time** (INT64, milliseconds) — the source `timestamp_ms` column.
44
+ - **TAG**: none — the table is stored as a single device.
45
+ - **FIELD** (8): `front_cm` (int64), `rear_cm` (int64), `left_cm` (int64), `right_cm` (int64), `motor_state` (string), `face_verified` (int64), `tilt_warning` (int64), `fall_detected` (int64)
46
+
47
+ ## Conversion notes
48
+
49
+ - One CSV, one TsFile, single robot: no TAG column.
50
+ - Time = the source `timestamp_ms` (milliseconds since the telemetry session started, 250 ms sampling) stored as INT64 milliseconds.
51
+ - No column is dropped.
52
+
53
+ ## Usage
54
+
55
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
56
+
57
+ ```python
58
+ from pathlib import Path
59
+ from tsfile import TsFileReader
60
+
61
+ path = Path("robot_sensor_telemetry.tsfile")
62
+ with TsFileReader(str(path)) as reader:
63
+ schemas = reader.get_all_table_schemas()
64
+ print("tables:", list(schemas))
65
+ table_name = next(iter(schemas))
66
+ table = schemas[table_name]
67
+ columns = [column.get_column_name() for column in table.get_columns()]
68
+ print("columns:", columns)
69
+ field_names = [
70
+ column.get_column_name()
71
+ for column in table.get_columns()
72
+ if column.get_column_name() not in {"Time", "time"}
73
+ ]
74
+ if field_names:
75
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
76
+ batch = result.read_arrow_batch()
77
+ if batch is not None:
78
+ print(batch.to_pandas().head())
79
+ ```
80
+
81
+ ## Source & license
82
+
83
+ - Original dataset: [`nuerrr/robot-sensor-telemetry`](https://huggingface.co/datasets/nuerrr/robot-sensor-telemetry)
84
+ - Source card title / publisher: Robot Sensor Telemetry Dataset
85
+ - License: mit (as declared by the original dataset).
robot_sensor_telemetry.tsfile ADDED
Binary file (1.9 kB). View file
 
source_dataset_card.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - robotics
5
+ - time-series-forecasting
6
+ language:
7
+ - en
8
+ tags:
9
+ - robotics
10
+ - embedded-systems
11
+ - ultrasonic
12
+ - autonomous-robot
13
+ - PIC16F877A
14
+ pretty_name: Robot Sensor Telemetry Dataset
15
+ size_categories:
16
+ - n<1K
17
+ ---
18
+
19
+ # Robot Sensor Telemetry Dataset
20
+
21
+ ## Description
22
+
23
+ This dataset contains real-time sensor telemetry collected from an autonomous robot built for CIE-349/408 Embedded Systems at Zewail City University of Science and Technology (Spring 2026).
24
+
25
+ The robot uses a PIC16F877A microcontroller reading 4x HC-SR04 ultrasonic sensors at 250ms intervals. Telemetry is streamed over UART to an ESP32 NodeMCU, forwarded via UDP to a Raspberry Pi 3B, and served to a Flutter mobile app over HTTP.
26
+
27
+ ## Dataset Structure
28
+
29
+ | Column | Type | Description |
30
+ |--------|------|-------------|
31
+ | timestamp_ms | int | Milliseconds since robot boot |
32
+ | front_cm | int | Front ultrasonic sensor distance (cm) |
33
+ | rear_cm | int | Rear ultrasonic sensor distance (cm) |
34
+ | left_cm | int | Left ultrasonic sensor distance (cm) |
35
+ | right_cm | int | Right ultrasonic sensor distance (cm) |
36
+ | motor_state | string | Current motor command: FORWARD/BACKWARD/TURN_LEFT/TURN_RIGHT/STOP/IDLE |
37
+ | face_verified | bool | Whether biometric face recognition lock is verified |
38
+ | tilt_warning | bool | MPU6050 tilt > 30 degrees detected |
39
+ | fall_detected | bool | MPU6050 tilt > 60 degrees detected |
40
+
41
+ ## System Architecture
42
+
43
+ The robot operates as a 4-tier distributed pipeline:
44
+
45
+ 1. **PIC16F877A** — Hard real-time controller, reads sensors via Timer1, drives motors via PWM
46
+ 2. **ESP32 NodeMCU** — WiFi bridge, forwards UART telemetry to Raspberry Pi over UDP
47
+ 3. **Raspberry Pi 3B** — Flask server, face recognition security gate, UDP auto-discovery
48
+ 4. **Flutter Android App** — Mobile dashboard with D-pad control and radar display
49
+
50
+ ## Face Recognition Security
51
+
52
+ Motor commands are blocked unless a verified face is detected by the `face_recognition` library (dlib-based deep learning model) running on the Raspberry Pi. Face encodings are stored persistently in a `.pkl` file (biometric database).
53
+
54
+ ## Safety Features
55
+
56
+ - Software obstacle cutoff: front sensor < 10cm → force STOP
57
+ - Tilt/fall detection via MPU6050 accelerometer
58
+ - Biometric lock: commands blocked until face verified
59
+
60
+ ## Team
61
+
62
+ - Nouran Essam (202300627)
63
+ - Menna Khaled (202301665)
64
+ - Shrooq Amin (202300112)
65
+
66
+ Zewail City University of Science and Technology — CIE-349/408 Spring 2026