星云科技团队

Nebula Technology Open Source Projects

Explore the team’s model rocket projects, desktop simulator, sensor tools, and learning resources. Start with the built-in tutorial, then try sensor readings and CSV analysis at your desk.

Project overview

Choose a project by what you want to do. Each guide includes a starting point and links to the repository or its documentation.

Two generations of model rockets

Follow the team’s prototype iterations and the roles of the mechanical, electronic, and software systems.

Explore the projects

Model rocket desktop simulator

Run the tutorial on Windows or macOS, save a project, view the charts, and export a report.

Start the tutorial

MPU6050 Arduino driver

Read three-axis acceleration and angular velocity, and compare raw readings with DMP angle output.

Use the driver

HX711 force data logger

Practice zeroing, calibration, serial monitoring, and microSD logging with a bench weighing experiment.

Read the logging guide

Model rocket project resources

vector_rocket1.0

The first-generation repository documents the team’s early thrust-vectoring model rocket prototype. Its code and structure folders organize the software and mechanical resources. Read the README first and use the project retrospective on this site for context.

vector_rocket2.0

The second generation builds on that prototype. Its repository includes software, PCB projects, and supporting library files. Review the files and hardware revisions for each generation to understand the changes between iterations.

Desktop simulator · v1.2.2

RocketFlightSimulater provides a Chinese-language workspace for inspecting a model rocket’s geometry and mass, running a simplified flight model, and exporting plots and numerical results. The steps below use its built-in tutorial.

v1.2.2 improves responsiveness when resizing windows, switching workspaces, and displaying simulation curves by reducing tab-background drawing overhead. It preserves the interface colors and bottom highlight, and retains the existing simulation algorithms and solver.

Choose a package

System / purposev1.2.2 downloadHow to open it
Windows x64NebulaRocket-Windows-v1.2.2.zipExtract the complete archive and open NebulaRocket.exe. Keep the _internal folder beside the executable.
macOS with Apple siliconNebulaRocket-macOS-arm64-v1.2.2.zipExtract the archive and open NebulaRocket.app.
macOS with IntelNebulaRocket-macOS-x86_64-v1.2.2.zipExtract the archive and open NebulaRocket.app.
Source codeNebulaRocket-Source-v1.2.2.zipFor development or running from source; Python setup is described below.

The repository states that the macOS packages use ad hoc signing and have not been notarized by Apple. Compare the archive’s SHA-256 with SHA256SUMS.txt on the release page before first use. The release notes link to the developer verification instructions.

Upgrade an existing project to v1.2.2

The project format remains schema_version: 1, and the new version can open older JSON projects. Legacy motor and structural source notes are ignored on import; the project name and general notes remain editable.

  1. Save the current project

    Save the JSON in the older version and keep copies of your existing projects and reports.

  2. Extract the matching new package

    Choose v1.2.2 for your OS and processor and extract it into a separate directory. Keep NebulaRocket.exe and the _internal folder together on Windows.

  3. Open and recalculate

    Start the new version, choose Open (打开) to load the JSON, select Run Simulation (运行仿真), and export the report into a new directory.

v1.2.2 responsiveness and benchmark conditions

The project compared both versions on one Windows 10 computer with Python 3.10.11, a 1220 × 790 window, and 150% display scaling. The same corrected script ran each scenario seven times per version in alternating order, using a separate process for each run. Values below are medians.

Scenariov1.2.1 (ms)v1.2.2 (ms)Reduction
Resize the charts page: longest event gap508.676.585.0%
Switch workspaces: longest event gap219.525.988.2%
Run simulation to full flight curve: elapsed time1404.7441.368.6%

A 10 ms Tk timer measures the longest event gap as an indicator of main-thread stalls, rather than the rendering time of one chart. Faster chart availability primarily reflects improved UI responsiveness. These Windows results do not establish performance on other devices; no equivalent macOS comparison was reported.

The release notes describe 64 regression checks, a 16-case numerical matrix using two step sizes, and native-package checks covering startup, built-in projects, curve pages, SVG saving, and full report export on Windows and both Mac architectures.

Your first session

  1. Open the tutorial

    The application loads a demo project at startup. New (新建) resets the demo parameters, while Open (打开) loads an existing JSON project.

  2. Review the project

    Select the project properties in the component tree to see its name and notes. Units appear beside the inputs, with common quantities displayed in units such as mm and g.

  3. Run and inspect results

    Select Run Simulation (运行仿真), then Flight Simulation → Results and Charts (飞行仿真 → 结果与曲线). Review altitude, speed, static stability, and events along the timeline.

  4. Save an editable project

    Select Save (保存) to create a JSON project. Use Open (打开) to continue later, and rerun the simulation after changing any inputs.

  5. Export the report

    Select Export Report (导出报告) and choose an output directory. Charts and reports belong to that calculation, so rerun after editing inputs before exporting again.

The chart toolbar supports panning, box zoom, restoring the view, and saving individual plots as PNG, SVG, and other formats. Full report exports retain the files listed below.

Use the exported files

FilePurpose
report.htmlOpen it offline in a browser to review or print the inputs, summary, events, and charts.
project.jsonLoad this file in the application to continue editing the project.
result.jsonComplete numerical results for further analysis.
flight.csv / motor.csv / events.csvFlight, motor, and event time series that can be opened in a spreadsheet.
flight.png / motor.png / stability.pngExported charts for your project records.

The model assumes a single stage, no wind, and vertical motion in one dimension. It is intended for preliminary subsonic analysis. Simulated height is measured above the launch point, while the atmosphere model uses absolute elevation. The model notes explain the constant drag coefficient, instantaneous parachute deployment, and simplified structural checks.

Run from source

Run these commands from the downloaded project directory. Use Python 3.10 on Windows, or Python 3.12 with Tkinter on macOS. Start app.py after installing the dependencies.

Windows / PowerShell

py -3.10 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe app.py

macOS / Terminal

python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python app.py

MPU6050 Arduino driver

The library includes examples for raw six-axis readings and for DMP orientation output. At your desk, observe the readings with the module still and during a slow rotation before using them in your own data analysis.

Prepare and install

  1. Prepare the environment

    Install the Arduino IDE and Arduino AVR Boards in the Boards Manager. The repository uses the Arduino Uno R3 as its reference board.

  2. Install the library

    Choose Code → Download ZIP on GitHub. In the Arduino IDE, choose Sketch → Include Library → Add .ZIP Library… and select the downloaded archive.

  3. Check the wiring

    With power disconnected, connect the supply, ground, and I²C according to the module specification. On an Uno R3, SDA is A4 and SCL is A5. Check the supply voltage and I²C pull-up levels separately.

  4. Run an example

    Open File → Examples → MPU6050 and choose an example. Select the board and serial port, upload the sketch, and open the serial monitor at the matching baud rate.

ExampleSerial settingOutput
MPU6050_Raw38400 baudLines start with a/g: and contain ax, ay, az, gx, gy, gz, in that order.
MPU6050_DMP6115200 baudLines start with ypr and contain yaw, pitch, roll in degrees. Connect INT to D2 when using an Uno R3.

Understand the readings

  • The raw example defaults to ±2 g and ±250 °/s. At those settings, divide acceleration counts by 16384.0 for g, and angular velocity counts by 131.0 for °/s.
  • The six a/g: fields are sensor readings. The ypr fields are angles produced by the DMP. Six-axis DMP yaw is relative and will drift over time.
  • The default I²C address is 0x68. If the module pulls AD0 high, use the matching 0x69 address in the example.

In your own sketch, include Wire.h and MPU6050.h and create an MPU6050 object. Start Wire, check testConnection(), and initialize the module. Use a set of six-axis readings after readMotion6(…) returns true. The repository bundles the I2Cdev dependency.

HX711 force data logger

The board reads a bridge sensor, records to microSD, and can output over USB serial or Zigbee. This walkthrough uses an assembled board for a bench weighing experiment, from checking the setup to zeroing, calibration, and recording.

Environment and files

Install Arduino AVR Boards, the Arduino SD library, and Bogdan Necula’s HX711 Arduino Library in the Arduino IDE. The repository’s compile checks used versions 1.8.6, 1.2.4, and 0.7.5 respectively. Open firmware/Collecting_Card_Logger/Collecting_Card_Logger.ino and select Arduino Uno and the CH340 serial port as documented.

  1. Connect and start

    With power disconnected, connect the bridge sensor and insert a FAT16/FAT32 microSD card. Keep the sensor unloaded while powering the board.

  2. Confirm the zero

    Open serial at 115200 baud, 8N1, with no flow control. At startup, the firmware averages the first 16 samples and tares. Look for # ZERO_COUNTS=… before reviewing the readings.

  3. Use a reference weight

    Wait for readings to settle both unloaded and loaded, and record the mean raw_counts for each. Reference force is the mass in kg multiplied by 9.80665.

  4. Set the calibration factor

    Enter (loaded counts − unloaded counts) ÷ reference force in N as kCountsPerNewton, keeping its sign. Upload the firmware again and check the same reference weight.

  5. Compare serial and microSD

    After # SD_FILE=FORxxx.CSV appears, note the filename. Read back the CSV after the session and compare its timestamps and counts with serial output. Each startup creates a new sequentially numbered file.

ColumnMeaningWhat to check
elapsed_msMilliseconds since this startupThe count restarts after a reset or power cycle.
raw_countsSigned 24-bit HX711 raw countsObserve unloaded fluctuations and changes with a load.
net_countsRaw counts minus the unloaded zeroAfter unloading, check whether this returns near zero.
force_NCalibrated force in newtonsThis field is blank before calibration; raw and net counts still appear.

The firmware syncs microSD roughly once per second, so an unexpected power loss can lose recent records. Opening USB serial may trigger a DTR reset. With Zigbee, check serial settings, logic levels, and contention during USB uploads against the full guide.

Learning algorithms and analyzing data

A Kalman filter combines a model prediction with a noisy measurement to update a state estimate and its uncertainty. Start with a one-dimensional room-temperature example to understand the data before reading the full derivation.

  1. Prepare measurements

    Try synthetic readings of 22.0, 22.2, 21.9, 22.1, and 22.0 °C. Plot them in sample order and keep the originals for comparison.

  2. Identify the uncertainties

    Q represents uncertainty in the process model, R represents measurement noise, and P is the variance of the estimation error. Keep the quantities in a consistent unit system.

  3. Compare the curves

    Plot each estimate alongside its measurement. A larger R generally gives the previous estimate more weight and smooths the result. A larger Q generally lets the filter follow changing measurements more readily.

One update of a constant-temperature model

x is the estimated temperature, z is the current measurement, and K is the Kalman gain. This constant-state example shows how the quantities relate.

P_predict = P + Q
K = P_predict / (P_predict + R)
x = x + K * (z - x)
P = (1 - K) * P_predict

Common questions

Why do the results differ from the inputs I just changed?

Select Run Simulation (运行仿真) again after editing, then inspect or export the results. Use project.json in the export directory to check the inputs for that run.

How do I open the reports and data?

Open report.html offline in a browser. Import CSV files into a spreadsheet using comma-separated columns, and load the project JSON through Open (打开). Keeping the full export directory makes it easier to match plots and results.

What should I check if MPU6050 output is unreadable or the connection fails?

Check the example’s baud rate first, followed by the board, serial port, common ground, SDA/SCL, and AD0. The DMP example also needs the INT connection. Check power and I²C logic levels against the module’s specifications.

Why is force_N blank in the HX711 output?

This is the default before calibration. Confirm that raw_counts and net_counts are present, then calculate and set kCountsPerNewton as documented. Upload again and verify a known load.

How can I report a problem or reuse the code?

Use Issues in the relevant repository and include the version, OS or board, reproduction steps, and logs. The MPU6050 library preserves Jeff Rowberg / I2Cdevlib attribution and uses MIT. HX711 firmware uses MIT and its hardware uses CERN-OHL-P-2.0. Consult each repository’s current license files for other projects.