This topic describes how to develop smart electric motorcycle products (including electric mopeds) on the Tuya Developer Platform. It targets hardware, embedded, and app developers.
Smart electric motorcycles share most of their solution with smart electric vehicles. This topic follows the same eight-step workflow from feature definition to product release. It also describes key differences for electric motorcycles, including national-standard classification, license plates, the Bluetooth Low Energy (Bluetooth LE) + X hardware architecture, and dashboard-app interaction.

In China, electric two-wheelers fall into three categories under GB 17761-2024 and the Safety Specifications for Electric Motorcycles and Electric Mopeds. Each category has its own compliance, registration, license, product category, and panel requirements. Confirm the category before development.
| Category | Maximum speed | Vehicle type | Driver’s license | License plate |
|---|---|---|---|---|
| Electric bicycle | ≤ 25 km/h | Non-motor vehicle | Not required | Yellow (small) |
| Electric moped | ≤ 50 km/h | Motor vehicle | F license | Blue |
| Electric motorcycle | > 50 km/h | Motor vehicle | E or D license | Yellow (large) |
To develop a model with a maximum speed above 25 km/h (electric moped or electric motorcycle), follow the workflow in this topic. The same workflow applies to electric bicycles capped at 25 km/h. For electric bicycles, pay attention to data points (DPs) for overspeed power cutoff and tamper-proof during feature definition.
The following GB 17761-2024 requirements affect development most:
Open the Tuya Developer Platform and click Create on the home page. Under Standard Category, select Outdoor Travel > Travel > Smart Electric Vehicle.
Smart electric motorcycles, electric mopeds, and electric bicycles currently share the Smart Electric Vehicle category. An incorrect category affects recommended DPs, panel selection, and app integration logic. Do not change the category after product creation unless you confirm the impact.
After you create the product, the platform generates a product ID (PID). Use this PID for all embedded, app, and cloud debugging.
Tuya abstracts hardware capabilities into DPs. DPs fall into three categories:
| Type | Defined by | Application scenarios | Example |
|---|---|---|---|
| Standard features | Tuya platform | Common capabilities | Lock, unlock, battery level, speed, and positioning |
| Custom features | Developer | Standard features are not enough | Custom battery management system (BMS) fields and exclusive riding mode |
| Advanced features | Platform-enabled | Cross-device and cloud services | QR code pairing, NFC card management, route records, and password management |
DPs support only the following six data types: Boolean (Bool), Value, Enum, Fault/Bitmap, String, and Raw.
The following table reflects actual values from the Tuya standard DP templates for smart electric vehicles and electric motorcycles. Use it as a minimum viable DP set for a new product, and select the corresponding DP IDs during development.
| DP ID | Feature | Identifier (ID) | Type | Read/write | Description |
|---|---|---|---|---|---|
| 1 | Anti-theft switch | blelock_switch |
Bool | rw | Arm or disarm the Bluetooth anti-theft device. |
| 2 | Start | start |
Bool | rw | Power on or start the vehicle. |
| 3 | Battery level | battery_percentage |
Value | ro | Main battery level percentage, from 0 to 100. |
| 4 | GPS position | gps_position |
String | ro | Latitude and longitude string. See the vehicle positioning protocol. |
| 5 | Speed | speed |
Value | ro | Vehicle speed in km/h, from 0 to 250. Report it at 1 Hz or higher. |
| 6 | Ride time | ridetime_once |
Value | ro | Total ride time in seconds since startup. |
| 11 | Unit setup | unit_set |
Enum | rw | km or mile, shown on the dashboard and the app. |
| 12 | Total mileage | mileage_total |
Value | ro | Total mileage in km. Accumulated and retained across power cycles. |
| 13 | Estimated range | endurance_mileage |
Value | ro | Estimated range that the vehicle calculates from the current battery level. |
| 14 | Current ride mileage | mileage_once |
Value | ro | Current ride mileage in km after startup. |
| 18 | Riding mode | level |
Enum | rw | eco, normal, sport, and more. Electric motorcycles usually support three or more levels. |
| 19 | Find vehicle | search |
Bool | rw | Trigger a beep or flash from the app to locate the vehicle. |
| 24 | GPS | gps_signal_strength |
Value | ro | GPS signal strength level. |
| 25 | 4G | 4g_signal_strength |
Value | ro | 4G signal strength. |
| 26 | Fault detection | fault_detection |
Bool | rw | Trigger a vehicle self-check from the app. |
| 27 | Status | status |
Enum | ro | Vehicle state machine, such as standby, riding, charging, and fault. |
| 29 | Power system | power_system |
Fault | ro | Fault Bitmap for the motor, controller, speed limiter, and more. |
| 30 | Smart system | smart_system |
Fault | ro | Fault Bitmap for the central control, communication, positioning, and more. |
| 31 | Electronic system | electronic_system |
Fault | ro | Fault Bitmap for the dashboard, lights, horn, and more. |
| 32 | Lithium battery system | lithium_battery_system |
Fault | ro | Fault Bitmap for the battery and BMS. |
| 45 | Geofence | geofence_switch |
Bool | rw | Geofence switch. It takes effect after you enable the advanced geofence feature on the platform. |
| 58 | Battery 1 information | battery_info |
String | ro | Detailed main battery fields, such as voltage, temperature, and cycle count. |
| 60 | ICCID | iccid |
String | ro | ICCID of the 4G SIM card. Used for positioning, billing, and SIM management integration. |
Bitmap design example for Fault DPs
Split electric motorcycle faults into four fault DPs: power_system, smart_system, electronic_system, and lithium_battery_system. In each DP, define one fault source for each bit according to the vehicle fault list.
power_system smart_system electronic_system lithium_battery_system
bit0 Motor overheat bit0 4G comm loss bit0 Dashboard comm loss bit0 Low battery
bit1 Motor Hall fault bit1 Bluetooth LE comm loss bit1 Dashboard light fault bit1 Battery overheat
bit2 Controller overheat bit2 GPS fix lost bit2 Headlight fault bit2 Battery under-voltage
bit3 Controller overcurrent bit3 Cloud auth fail bit3 Turn-light fault bit3 Battery over-voltage
bit4 Speed limiter fault bit4 OTA interrupted bit4 Horn fault bit4 Cell imbalance alert
bit5 Power under-voltage ... ... bit5 BMS comms fault
... ...
Recommendation: Always use a Fault DP with a Bitmap. Do not create a separate Bool DP for each fault. Splitting faults by subsystem makes app-side alerts easier to categorize and easier to extend later.
Add a custom DP when the standard DP table does not cover a capability you need. For example:
commute_voice_enable.Advanced features used often on electric motorcycles include:
Smart electric vehicles and electric motorcycles must use Tuya’s dedicated ride apps, not the SmartLife app. Select the app by sales region:
| Sales territory | Control app | App store keywords |
|---|---|---|
| Mainland China | 涂鸦出行 | 涂鸦出行 |
| Overseas | Tuya Ride | Tuya Ride |
The platform might prompt you to scan the QR code with the SmartLife app for testing. This prompt does not apply to the smart electric vehicle category. Download 涂鸦出行 or Tuya Ride by sales region to preview and test the panel.
涂鸦出行 and Tuya Ride include an electric vehicle all-in-one panel. Most electric motorcycle customers can use it out of the box without customization. The following image shows the all-in-one panel: a 3D vehicle model, battery level, range, speed, communication signals, one-tap lock, modes, unlock methods, lights, and sound shortcuts.
The all-in-one panel covers the following capabilities:
Apply for a custom panel only when you need strong differentiation, such as a custom BMS details page, brand-specific 3D model, or brand theme color.
Electric motorcycles ride at higher speeds, and checking a phone while riding is unsafe. Design smart electric motorcycles differently from electric bicycles:
Example: When a rider receives a phone call, the dashboard shows the caller’s information. The rider answers or hangs up with a handlebar button, without taking out the phone. This is the standard interaction pattern for smart electric motorcycles, and is rare on electric bicycles.
The following image shows the role split in smart electric motorcycle automation between the dashboard and phone. During riding, the dashboard takes priority. The phone focuses on remote capabilities.
The following image shows the overall system architecture for a smart electric motorcycle. Solid lines show regular paths, and dotted lines show the 4G direct-to-cloud path.
Tuya offers two hardware integration paths for electric motorcycles. Choose one based on the compute capacity of your main controller and your cost target:
| Solution | Microcontroller | Module | Best for | Difficulty |
|---|---|---|---|---|
| MCU SDK | Your MCU | Tuya Bluetooth or 4G module | The mainstream option, used most often | Low |
| TuyaOS | Module runs the business logic | TuyaOS-compatible module | Sufficient resources and cross-platform goals | Medium |
| Scenario | Recommendation |
|---|---|
| Standard-configuration electric motorcycle, mainly controlled by phone | Bluetooth LE. |
| Commercial operation, fleet, or large model | Bluetooth + 4G dual mode. |
| Overseas or export model | Use Bluetooth first, and add 4G when required. |
Bluetooth serves as the primary communication protocol for electric motorcycles because it:
By feature granularity and cost, electric motorcycle smart features come in three typical form factors. All three form factors use the Bluetooth LE + X hardware architecture, so you can upgrade smoothly.
| Form factor | Communication capabilities | Typical features | Application scenarios | Installation |
|---|---|---|---|---|
| Bluetooth anti-theft device | Bluetooth LE only | One-tap start and stop, find vehicle, Bluetooth proximity unlock, and alarm on arming | Entry-level electric motorcycle and local control only (no remote features) | Standalone module with one power line |
| 4G smart control unit | Bluetooth LE, 4G, and GPS | Remote positioning, remote control, seat lock, analog sensing, and control | Mid-to-high-end electric motorcycles, operations, and fleets | Standalone central control box that can work across models |
| 4G dashboard | Integrated Bluetooth LE, 4G, and GPS | Dashboard display and all remote capabilities (the most integrated option) | Integrated vehicle design, BOM reduction | Built into the dashboard with no extra parts |
Selection recommendation:
The Bluetooth LE + X architecture uses the Bluetooth LE module as the system hub. The module connects to the vehicle MCU and the 4G Category 1 (CAT.1) module through UART. Bluetooth LE handles local control, low-power keepalive, and power management. 4G provides remote capabilities. The MCU runs vehicle business logic. Connect a standalone GPS module directly to the MCU through UART. The MCU parses NMEA data and reports it as needed.
┌─────────────────┐
┌──UART──┤ 4G CAT.1 module │── ✈ Cloud
│ └─────────────────┘
┌─────┴───────────────┐
│ Bluetooth LE module │── 📱 Direct Bluetooth LE ── 涂鸦出行 / Tuya Ride app
│ (BF6H-M) │
│ System hub │
│ + Power management. │
└─────┬───────────────┘
│ UART
│
┌─────┴────────────┐ ┌───────────────────────┐
│ MCU │── UART──┤ Standalone GPS module │── Satellite
│ Vehicle business │ │ GB600/610 and more │
└──────────────────┘ └───────────────────────┘
This wiring assigns GPS management to the MCU and provides the following benefits:
| Pin (silk screen) | I/O | Direction | Feature |
|---|---|---|---|
TXD0 / RXD0 |
PD7 to PD6 | OUT / IN | UART with 4G module. |
TXD1 / RXD1 |
PA3 to PA2 | OUT / IN | UART with MCU. |
PWM1 |
PA7 | IN | Cellular module wakes up Bluetooth (low level ≥ 60 ms) |
PWM0 |
PA6 | IN | Cellular module presence detection (active low, used across PCBs) |
PWM5 |
PA5 | OUT | Bluetooth controls 4G power (active high to power on) |
PWM4 |
PA4 | OUT | Power control for an optional peripheral (active high to power on); use as needed |
PA1 |
PA1 | OUT | Bluetooth wakes up the MCU (drive high ≥ 20 ms before sending data) |
PA0 |
PA0 | IN | MCU wakes up Bluetooth (drive high ≥ 50 ms before sending data) |
Vehicle sleep and wake-up: Bluetooth LE acts as the system power manager. During standby, it disconnects power to the 4G module to save power. When a remote command arrives, the 4G module wakes Bluetooth LE through PWM1, and Bluetooth LE then wakes the MCU. The MCU manages GPS power according to the ignition and startup state machine.
The UART between the Bluetooth module at 3.3 V and the 4G module at 1.8 V must use level shifting to prevent port damage and unstable communication. Tuya recommends two solutions:
| Solution | Component | Strength | Best for |
|---|---|---|---|
| Bidirectional level translator | TXS010X or SN74LVC series | Few components, strong anti-interference capability, and automatic bidirectional translation | Mass production |
| Discrete NPN inverter | S8050 with 10 KΩ and 1 KΩ pull-up resistors | Lowest cost | Minimal or low-cost design |
Connect the standalone GPS module to the vehicle MCU through UART. The MCU parses NMEA messages and reports location, speed, satellite count, and other results as DPs. This wiring keeps the Bluetooth LE UART free, and the MCU controls the power-on sequence directly.
| Recommended GPS module | Manufacturer | Frequency bands | Application scenarios |
|---|---|---|---|
GB600 |
Tuya | L1 single frequency, five-system multimode: GPS, BDS, Galileo, QZSS, and GLONASS | Preferred for entry-level and low-cost mass production. Uses the Beken BK1661 SoC and offers a compact and low power design. |
GB610 |
Tuya | L1 + L5 dual-frequency, multimode and multifrequency positioning, including BDS B2A/B2B/B2I and Galileo E5A | High-accuracy scenarios. Uses Beken BK1662 SoC, supports 120 tracking channels, cold start time of about 28 seconds, and tracking sensitivity of -165 dBm. |
You can find complete datasheets and sample code for both modules in Tuya Developer Platform > GNSS Module. For a new design with no special requirements, choose GB600 first. Choose GB610 for accuracy-sensitive cases, such as fleet deployments or dense urban canyon scenarios.
Wiring notes:
Tuya has verified the following modules in electric motorcycle scenarios. You can search all datasheets and SDK documents in the Tuya Developer Platform.
| Model | Sales territory | Frequency bands | Size | Resource link |
|---|---|---|---|---|
L511C-Y6E |
China | LTE FDD B1/3/5/8, TDD B34/38/39/40/41 | 17.7×15.8×2.3 mm | |
L511E-Y6E |
Europe, Southeast Asia, Africa, Australia, Middle East, Hong Kong, Macau, and Taiwan | LTE FDD B1/3/5/7/8/20/28, TDD B38/40/41 | Same as above | Same as the L511 series |
L511A |
North America | LTE FDD B2/4/5/12/13/14*/66/71 | Same as above | Same as the L511 series |
MG661-LA-19 |
Latin America | LTE FDD B2/3/4/5/7/8/28/66 | N/A | N/A |
| Model | Sales territory | Frequency bands | Size | Resource link |
|---|---|---|---|---|
BF6H-M |
Global | 2.4 GHz ISM band | 19×15.5×2.5 mm |
Pick the 4G module by sales region and use BF6H-M for Bluetooth. Other 4G modules (NL668-AM, MC665-EU, MA510-GL, and more) are integrated and remain available for existing inventory or special customer requests. For new designs, choose the L511 series first.
Workflow:
Your MCU Tuya Bluetooth module Phone app / Cloud
┌────────────────┐ UART ┌───────────────────────┐ Bluetooth LE/4G ┌──────────────┐
│ Vehicle logic │<-----> │ Tuya standard protocol│<---------------> │ Tuya Ride │
│ + MCU SDK │ TX/RX │(Universal) │ │ + Tuya cloud│
└────────────────┘ └───────────────────────┘ └──────────────┘
The MCU SDK helps you implement:
You only need to implement two callbacks:
dp_download_handle(): Handle control DPs sent from the app, such as locking the vehicle.dp_report(): Report current status DPs, such as speed and battery level.The module runs the TuyaOS kernel. The vehicle host MCU completes integration through a simple communication interface. The benefit is that one business codebase runs across different chip platforms and protocols (Bluetooth and cellular). Select a module that supports TuyaOS.
Use TuyaOS when:
Go to Product Configuration on the Tuya Developer Platform. Select and configure the following items as needed:
| Item | Focus for electric motorcycles |
|---|---|
| Firmware update | Support both Bluetooth and 4G. For major versions, push them during charging by default to save user data. |
| Multilingual support | Required: Chinese and English are the baseline. For overseas, add Spanish, Portuguese, Vietnamese, and Indonesian. |
| Pairing information | Select Bluetooth pairing. 4G versions do not need pairing. |
| Device information push | Send anti-theft alerts, low battery alerts, overspeed alerts, and geofence breach alerts through push channels. |
| Scene linkage | Electric motorcycles use this less often. You can leave it disabled at the start. |
| Shortcut switches | Add frequent actions, such as one-tap lock and find vehicle, to the app homepage. |
| Product manual | Use the electronic manual on the platform to reduce printing cost. |
Electric motorcycles do not use Wi-Fi, so the only pairing channel is Bluetooth. Tuya recommends the following two Bluetooth pairing methods. Select one or use both based on production process and target users:
| Solution | Trigger method | User operation | Application scenarios |
|---|---|---|---|
| A: Bluetooth-triggered pairing | The user performs a physical action on the vehicle, such as pressing and holding the anti-theft button for five seconds or turning the ignition on three times. The vehicle enters a discoverable broadcast state. | The Add Device page and other app pages discover the vehicle automatically. | Entry-level model, anti-theft device form factor, and no extra printing on the production line. |
| B: Bluetooth QR code pairing | A unique QR code (with PID, MAC, and a one-time binding token) is pre-printed on the vehicle or its package. | Tap Scan in the app to bind in one step. | Mid-to-high-end vehicles, 4G dashboard or smart control unit, smooth out-of-box experience. |
| Dimension | A: Bluetooth-triggered pairing | B: Bluetooth QR code pairing |
|---|---|---|
| User experience | Average. Users read the manual to learn the trigger. | Smooth. Scan to bind, near zero learning cost. |
| Mispairing prevention | Weak. Several nearby vehicles broadcast the same name, and the user picks one. | Strong. The QR code carries a unique MAC and token, with one-to-one binding. |
| Production process | Simple. No need to generate or print a unique code. | Complex. The line generates, prints, and applies a QR code per vehicle. |
| After-sales code replacement | N/A | Users need customer service or a fallback flow after QR code loss. |
| Platform dependency | Standard Bluetooth pairing, supported by all Bluetooth devices by default. | Requires the QR code pairing advanced feature in product configuration. |
| Recommended group | Entry-level electric motorcycle or Bluetooth anti-theft device | 4G smart control unit or 4G dashboard vehicles |
Recommendation: For high-end models or complete vehicle shipments, use solution B first. Keep solution A as a fallback for QR code loss or damage.
| Trigger | Push content |
|---|---|
| Vibration above the threshold while the vehicle is still | "Your vehicle Scooter-26B detected abnormal vibration." |
| Battery at or below 20% | "Battery is low. Charge soon." |
| Outside the geofence | "Your vehicle has left the home area." |
| OTA complete | "New firmware is ready. Restart the vehicle to apply." |
Flash the firmware and the license to the device, or the device cannot connect to the cloud.
For the complete solution, flashing tool downloads, pin wiring for different modules such as Bluetooth and 4G, and production test processes, see Flashing and Authorization.
Tuya classifies flashing and authorization into three solution types based on chip type and production system:
| Official solution | Best for | Description |
|---|---|---|
| Flashing and authorization combined | Tuya standard module |
|
| Flashing and authorization separated | Debug stage or non-Tuya standard modules | Authorize only. Burn the firmware with the chip vendor’s tool. |
| Production test integration | A complete in-house production system | Connect to your production line through the Tuya standard interface and run burning and authorization in-house. |
For solution selection and the production test interface specification, see Flashing and Authorization.
Mass production for electric motorcycles uses one of four common methods by scale. Each maps to an official solution above:
| Method | Best for | Official solution | Description |
|---|---|---|---|
| Online flashing | Sample stage | Flashing and authorization combined | Device connects directly to Tuya cloud for authorization. |
| Offline flashing | Factory mass production | Flashing and authorization combined | Send the authorization package in advance. |
| End-of-line authorization | One-time write during end-of-line vehicle testing | Separate flashing and authorization, or production test integration | Recommended. Merge into the end-of-line station workflow. |
| MCU self-flashing | MCU executes the authorization process independently | Production test integration | MCU SDK solution only. |
Before release, prepare a test report through one of the following methods:
Pay extra attention to the following electric motorcycle test items:
After the test report passes, release the product on the Tuya Developer Platform. After release, use the PID for mass production authorization.
| Certification | Mainland China | Overseas (typical) |
|---|---|---|
| Vehicle | CCC (GB 17761-2024) | E-mark, European Economic Community (EEC), and Department of Transportation (DOT) |
| Bluetooth module | State Radio Regulation of China (SRRC) | Federal Communications Commission (FCC), Conformite Europeenne Radio Equipment Directive (CE-RED), Korea Certification (KC), and Telecom Engineering Center (TELEC) |
| 4G module | China Type Approval (CTA) + SRRC | FCC, CE-RED, and Global Certification Forum (GCF) |
| Battery | GB 31241 | UN38.3 and IEC 62133 |
Obtain CCC based on the new national standard GB 17761-2024. Certificates based on the old standard expire after December 1, 2025.
| Dimension | Electric bicycle | Electric motorcycle |
|---|---|---|
| Speed limit | 25 km/h or lower (forced power-cut) | 50 km/h or unlimited |
| Main controller compute | Standard | Mid to high, supports a dashboard SoC |
| Dashboard | Mostly segment LCD | Thin-film transistor (TFT) color screen, supports interaction |
| Rider attention | Low speed allows phone use | High speed forbids phone reliance |
| Pairing protocol | Bluetooth | Bluetooth first, 4G optional |
| Tamper-proof | Three components (mandatory) | Vehicle level |
| Typical DP count | 30 to 50 | 50 to 100 |
| Price range | CNY1,500 to CNY5,000 | CNY8,000 to CNY50,000 |
| Smart feature potential | Limited | High, including navigation, advanced driver assistance systems (ADAS), calls, and screen mirroring |
At least two. Electric bicycles and electric motorcycles differ greatly in DPs, panel layout, and GB 17761-2024 compliance. Mixing them under one PID raises maintenance and management costs sharply.
All three form factors use the same Bluetooth LE + X architecture and support smooth upgrades. For more information, see Select a hardware form factor and Bluetooth LE + X hardware architecture.
Build the dashboard display and handlebar button interactions first. Wind noise and helmets reduce recognition accuracy during riding. Voice works as an enhancement, not a required feature.
Use Tuya Ride for overseas sales. Use 涂鸦出行 for the Chinese mainland. Both apps provide the same panel capabilities. Select the app by sales region. For overseas development, focus on multilingual support, regional compliance such as General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA), and 4G band adaptation.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback