{"product_id":"stm32-lua-script-pocket-pc","title":"STM32 Lua Script Pocket PC","description":"\u003ch2\u003eWhat is it?\u003c\/h2\u003e\u003cp\u003eThe STM32 Lua Script Pocket PC is a DIY handheld development and debugging terminal for embedded developers, electronics enthusiasts, students, and makers. Think of it as a pocket electronic workbench: a 2.0-inch full-color 240 × 320 display, icon-based menus, a 56-key keyboard, and a built-in lithium battery in a portable device.\u003c\/p\u003e\u003cp\u003eTF card storage keeps scripts, firmware, and logs together. When connected to a computer over USB, the device presents itself as a USB storage drive without requiring an additional storage driver.\u003c\/p\u003e\u003ch2\u003eWhy choose it?\u003c\/h2\u003e\u003cp\u003eCheck a bus, control a pin, or try a Lua script at the workbench without setting up a full desktop workflow. The command-line shell includes command completion and history, while the built-in Lua interpreter lets you test algorithms and automate hardware interactions directly on the device.\u003c\/p\u003e\u003cp\u003eFor supported STM32 targets, place the matching firmware on the TF card and use SWD offline programming without a connected computer. A browser-based IDE complements the handheld with Scratch-style block programming, Lua editing with syntax highlighting and checking, and an AI-assisted feature that generates Lua code from a written request.\u003c\/p\u003e\u003ch2\u003eWhat makes it special?\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eDisplay and input:\u003c\/strong\u003e 2.0-inch 240 × 320 full-color screen, icon menus, and a 56-key keyboard.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePortable power:\u003c\/strong\u003e Built-in lithium battery for mobile use.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eTF storage:\u003c\/strong\u003e Store scripts, firmware files, and logs on a TF card.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eHardware debugging:\u003c\/strong\u003e I2C scanning and read\/write operations, SPI communication, UART\/RS485 serial tools, PWM output, and GPIO control through command-line operations.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eInteractive shell:\u003c\/strong\u003e Command completion and command history for working with supported buses and functions.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eLua scripting:\u003c\/strong\u003e An onboard interpreter for experimenting with algorithms and controlling pins.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOffline SWD programming:\u003c\/strong\u003e Supports STM32F1 and STM32F4 series targets. Confirm the exact target model and firmware match before programming.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBrowser-based IDE:\u003c\/strong\u003e Block programming, Lua code editing, and AI-assisted Lua generation. AI service and connectivity requirements are not specified.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eUSB storage access:\u003c\/strong\u003e Connect to a computer to manage files through the device's USB drive interface.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eIncluded:\u003c\/strong\u003e Device body plus electronic instructions and wiring documentation.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003e\u003cstrong\u003eGetting started:\u003c\/strong\u003e Connect by USB, access the device as a storage drive, open the browser-based IDE, prepare blocks or Lua scripts and manage firmware, then connect a compatible target board using the supplied wiring guidance.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eFirst-version DIY project:\u003c\/strong\u003e Hardware and software are still being refined, and some functions remain limited. The developer reports that the occasional STM32F4 offline-programming failure has been resolved and that STM32F1 programming has been comparatively stable; results still depend on the target and setup. Open-source release is planned after the project materials are organized, but it is not presented as already available.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eBefore connecting hardware:\u003c\/strong\u003e Follow the wiring documentation and confirm pin assignments, supported signal levels, and target requirements. This is a hands-on development tool, not a general-purpose desktop PC or a guaranteed replacement for every dedicated debugger.\u003c\/p\u003e","brand":"Denjhang's Retro Hardware","offers":[{"title":"Default Title","offer_id":50739793690821,"sku":"STM32-LUA-POCKET-PC","price":169.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0777\/8507\/1813\/files\/O1CN01qXH8DQL7oTE67AQd__1784493508-0-fleamarket_jpg_790x10000Q90_jpg.png?v=1792432998","url":"https:\/\/denjhang.com\/products\/stm32-lua-script-pocket-pc","provider":"Denjhang's Retro Hardware","version":"1.0","type":"link"}