Basic Information

This page allows you to edit the existing project (Tablet stand). The edited project will replace the existing entry in the IoT Projects page. If you want to add a new entry based on the project, please fork from it instead.

* Photo URLs that end with any one of .jpg, .jpeg, .png or that are uploaded to the Gyazo web service in the PNG format (e.g.https://gyazo.com/hogehoge) are supported.

* Node.js entry point main: index.js and dependencies to the npm module dependencies: { f3js: (略) } will be automatically added and thus do not need to be in this form.

Private Project

This project is already public and cannot be made private.

Source Code

Provide the source code of a microcontroller or tiny computer in JavaScript. Node.js-based computers are supported. Require f3js package and use its API to design the device enclosure.

var f3js = require('f3js'); var dep = 2 /* 板厚 [1,5] */ , w = 5 /* ギザギザ幅 [2,6] */ , width = 100 /* タブレット把持部分の幅 [50,200] */; // テストでいろいろ描いてみる f3js.drawCircle(28, width + 28, 5); f3js.drawRectangle(23, width + 35, 10, 5); var rect = f3js.drawRectangle(23, width + 42, 10, 5); rect.fill = true; rect.stroke = false; f3js.text('test', 23, width + 48); // スタンド var c = f3js.createContainer(); c.x = 5, c.y = width + 5 - dep; var p = c.createPath(); p.moveTo(0, 0); p.jointTo(75, 0, w, dep); p.jointTo(75, 24, w, dep); p.lineTo(65, 24); p.lineTo(65, 15); p.jointTo(15, 15, w, dep); p.lineTo(15, 130); // p.jointTo(0, 130, w, dep); p.lineTo(0, 130); p.jointTo(0, 0, w, dep); p.close(); var plates = p.extrude(width); plates[0].x = 5; plates[0].y = 5; f3js.add(plates[0]); plates[1].x = 80; plates[1].y = 5; f3js.add(plates[1]); plates[2].x = 104; plates[2].y = 5; f3js.add(plates[2]); plates[3].x = 154; plates[3].y = 5; f3js.add(plates[3]); plates[4].x = 75; plates[4].y = 0; c.add(plates[4]); // ついでに小さい立方体も出してみる var c = f3js.createContainer(); c.x = 42; c.y = width + 35; var rect2 = c.drawJointRectangle(0, 0, 30, 30); rect2.fill = true; var plates2 = rect2.extrude(30); plates2[0].x = 30; plates2[0].y = 2; c.add(plates2[0]); // v0.2.3現在、側面には fill = true を設定できない仕様 plates2[1].x = 60; plates2[1].y = 2; c.add(plates2[1]); plates2[2].x = 0; plates2[2].y = 32; c.add(plates2[2]); plates2[3].x = 30; plates2[3].y = 32; c.add(plates2[3]); plates2[4].x = 60; plates2[4].y = 30; c.add(plates2[4]);
Customization

This content does not allow any customization.

Layout view options
Adding comments to variable declarations in the source code populate various GUI widgets in the "Customization" section depending on their types.

Design Alternatives

Modules

No modules are required for this project.

Layout
Program

Login first to use this feature.