Skip to content

jackwu-bamboo/IsothermalAmplification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Isothermal Amplification Detection WeChat Mini Program

A WeChat Mini Program for real-time fluorescence detection and data visualization in isothermal amplification experiments. This application connects to handheld isothermal detection devices via Bluetooth for temperature control and fluorescence intensity monitoring.

Features

🔗 Bluetooth Connectivity

  • Automatic discovery and connection to BLE devices
  • Real-time communication with isothermal detection hardware
  • Device control commands for laser activation/deactivation

📊 Real-time Data Visualization

  • Interactive charts powered by ECharts
  • Multi-channel fluorescence intensity monitoring (4 tubes)
  • Configurable threshold lines for detection analysis
  • Live data streaming and visualization

🧪 Experiment Management

  • Temperature control (36°C - 40°C range)
  • Configurable detection thresholds
  • Sample information input
  • Start/Stop experiment controls

💾 Data Export & History

  • CSV data export functionality
  • Historical experiment data storage
  • File management and viewing capabilities
  • Excel file generation and sharing

Technical Stack

  • Framework: WeChat Mini Program
  • Charts: ECharts for data visualization
  • Data Export: XLSX library for Excel file generation
  • Bluetooth: WeChat BLE APIs
  • UI: WXSS styling with responsive design

Project Structure

├── app.js                 # Application entry point
├── app.json              # App configuration
├── app.wxss              # Global styles
├── project.config.json   # Project configuration
├── sitemap.json          # SEO configuration
├── index/                # Main page
│   ├── index.js          # Page logic
│   ├── index.wxml        # Page template
│   ├── index.wxss        # Page styles
│   └── index.json        # Page configuration
├── ec-canvas/            # ECharts canvas component
│   ├── ec-canvas.js      # Canvas logic
│   ├── ec-canvas.wxml    # Canvas template
│   ├── ec-canvas.wxss    # Canvas styles
│   ├── echarts.js        # ECharts library
│   └── wx-canvas.js      # WeChat canvas adapter
├── utils/                # Utility functions
│   ├── chart_utils.js    # Chart management utilities
│   └── export_excel.js   # Data export utilities
└── xlsx/                 # Excel library
    └── xlsx.mini.min.js  # XLSX library

Installation & Setup

Prerequisites

  • WeChat Developer Tools
  • WeChat Mini Program account
  • Compatible Bluetooth isothermal detection device

Development Setup

  1. Clone the repository
  2. Open the project in WeChat Developer Tools
  3. Configure project settings in project.config.json
  4. Build and preview the application

Device Requirements

  • WeChat version 6.5.6 or higher
  • iOS 9.0+ or Android 5.0+
  • Bluetooth 4.0 (BLE) support

Usage

1. Device Connection

  • Tap "Connect Device" to scan for nearby BLE devices
  • The app automatically connects to devices with "BLE" in their name
  • Connection status is displayed on the interface

2. Experiment Configuration

  • Set target temperature (36°C - 40°C)
  • Enter sample information
  • Configure detection threshold value
  • Adjust experiment parameters as needed

3. Data Collection

  • Tap "Start" to begin experiment
  • Real-time fluorescence data is collected every 15 seconds
  • Laser control is automatically managed during data collection
  • Live chart updates show intensity values for all 4 tubes

4. Data Analysis

  • Monitor real-time fluorescence curves
  • Compare against configurable threshold lines
  • Visual indicators for positive/negative detection

5. Data Management

  • Save experiment data as CSV files
  • Access historical experiment data via "History" button
  • Export and share data files

API Reference

Bluetooth Communication

Chart Configuration

The application supports 4-channel fluorescence monitoring with customizable:

  • Y-axis range (0-1500 intensity units)
  • Threshold lines
  • Time-based x-axis
  • Multiple data series visualization

Data Format

Export Data Structure

  • Time: Minutes from experiment start
  • Tube1-4: Fluorescence intensity values
  • Threshold: Configurable detection threshold
  • Sample Info: User-defined sample identification

Troubleshooting

Common Issues

  1. Bluetooth Connection Failed

    • Ensure device is in pairing mode
    • Check Bluetooth permissions
    • Verify device compatibility
  2. No Data Received

    • Confirm device connection status
    • Check laser control commands
    • Verify communication protocol
  3. Chart Not Updating

    • Ensure ECharts initialization completed
    • Check data format consistency
    • Verify chart instance availability

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For technical support or questions about the isothermal amplification detection system, please contact the development team.

Version History

  • v1.0.0: Initial release with basic BLE connectivity and data visualization
  • Current version includes full experiment management and data export capabilities

Built for precision molecular diagnostics and isothermal amplification research

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published