Repository navigation
Iot redesign - #37
Closed
basheerbk wants to merge 57 commits into
Closed
Iot redesign#37basheerbk wants to merge 57 commits into
basheerbk wants to merge 57 commits into
Conversation
…y fixes. Default Arduino Uno on load, upload/program mode, teal theme, custom robot sprite, bundled Uno translations, openblock-vm patch, Vercel config, and wiki link to basheer.diy/about. Co-authored-by: Cursor <cursoragent@cursor.com>
Students can connect and flash from Chrome/Edge via EC2 compile API without OpenBlock Link; preserve ESP app image headers so boot hash checks pass. Co-authored-by: Cursor <cursoragent@cursor.com>
- Add two new devices: MakerUno and MakerEsp32 with full device profiles - Implement Serial Monitor component for device communication - Expand Blynk IoT extension with new blocks and generator improvements - Add device extension installer system - Update UI styling for modals and library items - Enhance playground initialization and font loading - Update webpack configuration for new devices Co-authored-by: Cursor <cursoragent@cursor.com>
…lette - Replace 9 Scratch categories with 5 friendly ones: Start, Control, Sense, Math, Variables - Remove sprite mode (Motion, Looks, Sound) — device-only IDE - Remove My Blocks and advanced string/math operators - Merge Sensing + boolean operators into 'Sense' category - Merge numeric operators into 'Math' category - Apply Tingaroo teal-branded color palette across all categories - Update workspace theme (cooler grays, teal highlights) - Update CSS color variables to match new palette - Increase toolbox label size and spacing for readability Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Override ScratchBlocks category colours for Start/Control/Sense/Math/Variables - Pass category colours through workspace inject options - Paint Sense comparison/logic blocks cyan while Math ops stay teal Co-authored-by: Cursor <cursoragent@cursor.com>
- Default canChangeLanguage to false so the globe menu is hidden - Skip browser/URL locale detection; always start with English Co-authored-by: Cursor <cursoragent@cursor.com>
- Ship brand-aware landing with SEO, OG tags, and Product JSON-LD - Serve IDE as ide.html with Vercel and webpack-dev-server rewrites - Mobile CTAs avoid Web Serial IDE; desktop keeps Start Coding Co-authored-by: Cursor <cursoragent@cursor.com>
- Update canonical, Open Graph, Twitter, and JSON-LD URLs - Use hello@tinkerbit.io for school/contact links - Allow tinkerbit.io origins on the compile API Co-authored-by: Cursor <cursoragent@cursor.com>
- Update UI copy, logos alt text, project title, and error/modals - Point community/FAQ/privacy/logo links at tinkerbit.io - Align integration tests with the new brand name Co-authored-by: Cursor <cursoragent@cursor.com>
Core, device (Pins/Serial/Data), and extension categories now show white glyphs on colored circles for clearer sidebar scanning. Co-authored-by: Cursor <cursoragent@cursor.com>
…wsers. Require a verified session for /ide, add /login with Google OAuth, and show account sign-out in the menu bar. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace static site pages with webpack React bundles and instrument sign-in, board, and upload flows for Clarity filtering. Co-authored-by: Cursor <cursoragent@cursor.com>
Use the hero and gallery shots on the marketing site and point social OG tags at the PNG. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the SVG click animation for a real plug-in shot and keep marketing text on the left safe zone. Co-authored-by: Cursor <cursoragent@cursor.com>
…ut of site-vendor). Co-authored-by: Cursor <cursoragent@cursor.com>
Map analog/I2C/motor jacks to the real GPIOs and keep templates wiring on the new board. Co-authored-by: Cursor <cursoragent@cursor.com>
Map RC522 SPI off D5 so HC-SR04 stays free, enforce D13/3D conflict, use wired modules in templates, and document ST/MD/BLE in the status bar. Co-authored-by: Cursor <cursoragent@cursor.com>
Reserve D5 for ultrasonic only, drop single-pin ranging, and keep Trig IO25 / Echo IO26 explicit in codegen. Co-authored-by: Cursor <cursoragent@cursor.com>
Generate ESP32Servo.h setup with 50Hz attach, and map Trig to IO26 / Echo to IO25 so Echo stays INPUT. Co-authored-by: Cursor <cursoragent@cursor.com>
Share the I2C bus for OLED and MAX30102, align MD A/B to IO17/5 and IO18/19, and expose a 9600 baud serial panel under the code view. Co-authored-by: Cursor <cursoragent@cursor.com>
Every Beginner action prints labeled Serial output; pulse uses 100 kHz, address 0x57, and skips setup/reads when the sensor is missing. Co-authored-by: Cursor <cursoragent@cursor.com>
Print temp and humidity or gas level to Serial, enforce a 2s DHT gap, and slow climate project waits so readings stop returning 255/NaN. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace Adafruit DHT (often returns 255) with a built-in 2s sample helper and prefer the D13 jack so serial shows real Temp=xx C values. Co-authored-by: Cursor <cursoragent@cursor.com>
Use critical-section edge sampling like DHTesp, retry thrice, and auto-assign A1 (IO4) because D13/GPIO33 is unreliable for DHT. Co-authored-by: Cursor <cursoragent@cursor.com>
Map CH1–CH4 to IO17/5/18/19 with active-LOW digital control, plus channel and all-on/off blocks for Beginner Studio. Co-authored-by: Cursor <cursoragent@cursor.com>
Average 16 samples and pace prints so raw 0–4095 values stop swinging wildly from oversampling. Co-authored-by: Cursor <cursoragent@cursor.com>
Rename the module, flip garden thresholds to >2500, and add a Print soil moisture block with DRY/WET hints. Co-authored-by: Cursor <cursoragent@cursor.com>
Map dry/wet ADC to percentage for serial and conditions; garden projects now trigger below 40% moisture. Co-authored-by: Cursor <cursoragent@cursor.com>
Widen dry/wet calibration and print jack/GPIO next to the moisture percent for debugging. Co-authored-by: Cursor <cursoragent@cursor.com>
Add Maker Kit Sensors/Outputs/Radio toolbox categories with shared RJ11 drivers, plus Beginner HC-05 on UART RX=3 TX=1. Co-authored-by: Cursor <cursoragent@cursor.com>
…oad, 9600 monitor, open-project-in-Build. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…O and icons, WebP images. Adds a single waitlist form (POST /api/waitlist, CSV export behind WAITLIST_EXPORT_TOKEN), plain-language /privacy page, branded 404, www canonical, favicon/manifest/Organization JSON-LD, robots and sitemap, build-time WebP via sharp, shared header/footer with LinkedIn and Facebook, login early-access note, copy cleanups, restyled modules section and a 320px hero overflow fix. Co-authored-by: Cursor <cursoragent@cursor.com>
…S 3D fallback. The 3D view lazy-loads three.js as its own chunk and falls back to the CSS 3D renderer when WebGL2 is unavailable, the chunk fails to load, rendering errors, or the GPU context is repeatedly lost. Force a renderer with ?3d=gl or ?3d=css. Co-authored-by: Cursor <cursoragent@cursor.com>
…d hub/module art, a 3D hub model and the hub jack map. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ne SVG illustrations, makerspace photo. Co-authored-by: Cursor <cursoragent@cursor.com>
… (IoT API service with Amazon Linux support, /iot dashboard with grid widget editor, Studio Cloud setup and templates); site and Beginner Studio updates. Co-authored-by: Cursor <cursoragent@cursor.com>
…rs (offline, timeout, unavailable, gateway HTML), read retries, auto-recovery in Studio and /iot. Co-authored-by: Cursor <cursoragent@cursor.com>
Firmware (studio-2) sends {v:{}} every interval even with no readings or a loop that never ends, and turns WiFi modem sleep off. The server accepts empty telemetry as a heartbeat, treats acks and device alerts as presence (bringing stale-swept rows back online), and no longer stale-sweeps studio-1 boards that never send heartbeats.
Co-authored-by: Cursor <cursoragent@cursor.com>
…er cleanup), per-account project autosave, undo/redo, sentence-style code blocks with flow connectors and loop-back frame, calmer block palette, sensor auto-read, friendlier upload errors, codegen edge-case fixes and tests. Co-authored-by: Cursor <cursoragent@cursor.com>
Replaces the one-form Cloud setup with steps: add the Cloud part (removing parts in the way), pick or name a board (made only on Next, unique names), WiFi, upload inside the wizard, then a going-live checklist read from the board's USB messages and the Cloud service, ending with a QR code to the phone dashboard. Top-bar Cloud button shows set up / connecting / needs help / online. Co-authored-by: Cursor <cursoragent@cursor.com>
…ard panel Replaces the Cloud setup pop-up with an IoT page reached from its own top-bar button: board, WiFi and upload steps, the going-live checklist, then a board panel with status, readings named after their parts, the program's switches and sliders, and the phone QR code. Without the Cloud part the button asks to add it first. Co-authored-by: Cursor <cursoragent@cursor.com>
…rd art Adds the IR obstacle, PIR, reed switch, LDR, flame and water level sensors plus the buzzer, water pump and solenoid lock, with their blocks, Arduino code and 16 starter projects. The parts shelf now shows the colour module icons (with a new Cloud icon), greys out parts that cannot be used and falls back to the line icon if one is missing. Includes the updated module-test components and regenerated Studio board art. Co-authored-by: Cursor <cursoragent@cursor.com>
The IoT page is split: boards on the left (this project's board pinned, add a board, phone QR), and on the right the setup steps or the full dashboard with Alerts and Settings. Viewing another board never changes where the project uploads; a strip says which board that is. Unsaved dashboard edits ask before leaving. Widgets show part names, settings changes keep the project link in step, and the page allows the live websocket. The page is called "IoT Dashboard" everywhere. Co-authored-by: Cursor <cursoragent@cursor.com>
…t blocks and Maker ESP32-only board list Co-authored-by: Cursor <cursoragent@cursor.com>
…imulator and tests Library (tinkerbit, cloud, board.py), frozen _boot.py and the tbsys/tbcloud C modules with the Docker build script, the board simulator with pytest, the test page, and the results and migration notes. Co-authored-by: Cursor <cursoragent@cursor.com>
…onfig.json Upload sends Python over the raw REPL. Update board installs the bundled TinkerBit firmware (SHA-256 checked). Cloud projects write their settings to /config.json over USB. Arduino stays behind ?board=arduino; parts not ported yet show 'Coming soon in MicroPython'. Co-authored-by: Cursor <cursoragent@cursor.com>
Library 0.2.0 (firmware API 2) adds RC522, MAX30102 with the SparkFun beat detector, and BLE with the Arduino UUIDs and 20-byte limit. The Studio generates Python for all four; the monitor follows the board to 9600 for HC-05 projects. Rebuilt bundled firmware; simulator models and tests added. Only Edge AI is still Arduino-only. Co-authored-by: Cursor <cursoragent@cursor.com>
Laptops can start the CH340 board in its flashing mode on plug-in, so the saved program does not run. Start now pulses EN with GPIO 0 high, hides the ROM boot log, and hints to press RST after 4 s of silence. Start is disabled during uploads. Cloud and Edge AI monitors are not reset. Co-authored-by: Cursor <cursoragent@cursor.com>
…ursor prompt ARCHITECTURE.md now describes Beginner Studio as it runs today: MicroPython is the default, uploads go over the raw REPL with no server, and Update board installs the TinkerBit firmware. New section 4.8 covers the language switch (?board=arduino), the upload steps, serial safe mode, power-up safety, HC-05, Cloud via /config.json, and which hardware checks have and have not been run. Sections 1-5 drop the stale "Beginner compiles C++ and monitors at 9600" text, and Edge AI is marked Arduino-only. Also adds docs/COMPILE_BACKEND_PLAN.md (written before Beginner moved to MicroPython, so it now concerns Advanced and ?board=arduino), the Cursor prompt for the MicroPython prototype (docs/prompts/), .claude/launch.json (dev server on port 8601 for the Claude app) and the module icon export in module-test/Claude outputs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Advanced mode (the OpenBlock IDE) is paused while we focus on Beginner Studio. One switch, ADVANCED_MODE, keeps it locked unless it is set to "on": - middleware.js redirects /ide, /ide.html and the IDE example pages (blocks-only, compatibility-testing, player) to /beginner with a 302, before the sign-in check. - The IDE page sends itself to Beginner too, which covers local dev. - The Choose page shows Advanced as "Paused for now", and the Beginner menu hides "Switch mode". To unlock, set ADVANCED_MODE=on in Vercel and redeploy. The IDE code and its build stay in place (the IDE build also copies static/, which Beginner needs). Also: the Choose page now says Beginner shows live MicroPython; ARCHITECTURE.md documents the lock; docs/MICROPYTHON_MIGRATION_PLAN.md plans Edge AI on MicroPython, hardware sign-off, removing Arduino from Beginner and switching off the compile server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The /iot dashboard becomes TinkerBit Cloud:
- Brand theme (src/iot/theme.js): purple, ink and gold, Space Grotesk over DM Sans,
light by default with a dark option (its own setting, apart from Studio's).
- Menu: Boards and Alerts (a bottom bar on phones); data and privacy, light or dark and
Beginner Studio move into the account menu.
- Boards: cards with a status pill and the main readings by name; offline boards are
dashed and say why; adding a board by hand folds away, since boards start in Studio.
- One board: no tabs. Name, status and "updated" line, the dashboard (controls first on a
phone), then Alerts on the same page. Wide screens keep the board list on the left.
Board settings is its own screen (/iot/d/<id>/settings).
- Alerts are sentences: "Tell me when Soil moisture drops below 30 %", with ready-made
starting points per reading, a preview of the message, and small wobbles under More.
- Settings show only the controls the board uses (show all on request); interval, key and
delete fold under Advanced. Fixes the WiFi-drop choice showing "keep last value" for
the default 120 s.
- Readings and controls show readable names everywhere ("Soil moisture", "Switch 1").
New server dashboards put controls first and drop the status and alerts tiles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… gets its own board - Studio's Cloud page is a three-step checklist (board, WiFi, upload and go live) with a live card and phone QR beside it once set up. Dashboards, alerts and settings now live only in TinkerBit Cloud (/iot). - A project without a board gets a new one named after the project; using an existing board is behind "Use a board I already have". - Removed the in-Studio DeviceManager / DeviceDashboard. - "IoT" renamed to "Cloud" / "TinkerBit Cloud" in Studio. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Studio's Cloud page has "Names on your phone": one field per switch or
slider the program uses ("Pump" for Dashboard switch 1). Names are saved
in the project's Cloud link and follow the project to another board.
- iot-api stores per-board labels (migration 2, labels_json), accepted on
PATCH /devices/:id and returned on every device. Alert messages use them.
- Studio sends labels (part names for readings, given names for controls)
instead of baking titles into the first dashboard, so renames show at
once; older "Dashboard switch N" tile titles count as automatic.
- ARCHITECTURE.md: Cloud section updated for the redesign.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves
What Github issue does this resolve (please include link)?
Proposed Changes
Describe what this Pull Request does
Reason for Changes
Explain why these changes should be made
Test Coverage
Please show how you have added tests to cover your changes
Browser Coverage
Check the OS/browser combinations tested (At least 2)
Mac
Windows
Chromebook
iPad
Android Tablet