From a85b06e18094df9bd7d108083c6b6883493da48b Mon Sep 17 00:00:00 2001 From: schererleander Date: Wed, 25 Jun 2025 01:02:39 +0200 Subject: delete printing added as blog --- src/pages/Printing.tsx | 70 -------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 src/pages/Printing.tsx diff --git a/src/pages/Printing.tsx b/src/pages/Printing.tsx deleted file mode 100644 index 41fa11a..0000000 --- a/src/pages/Printing.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import a1Img from "../assets/a1.webp"; -import CodeSnippet from "../components/CodeSnippet"; -import LinkWithIcon from "../components/LinkWithIcon"; - -export default function PrintingPage() { - const roboArmCode = `#include -#include - -#define DEADZONE 30 -#define BASE_PIN 15 -#define SHOULDER_PIN 2 -#define ELBOW_PIN 4 -#define WRIST_PIN 16 -#define HAND_PIN 17 - -Servo base, shoulder, elbow, wrist, hand; -ControllerPtr pad; - -void onConnectedGamepad(ControllerPtr ctl) { - Serial.printf("Gamepad #%d verbunden\n", ctl->index()); - pad = ctl; -} - -void onDisconnectedGamepad(ControllerPtr ctl) { - Serial.printf("Gamepad getrennt\n"); -} - -int16_t mapAxis(int16_t v) { - if (abs(v) < DEADZONE) v = 0; - return map(v, -512, 512, 0, 180); -} -void setup() { - BP32.setup(&onConnectedGamepad, &onDisconnectedGamepad); - BP32.enableNewBluetoothConnections(true); - - base.attach(BASE_PIN); - shoulder.attach(SHOULDER_PIN); - elbow.attach(ELBOW_PIN); - wrist.attach(WRIST_PIN); - hand.attach(HAND_PIN); -} - -void loop() { - BP32.update(); - if (pad && pad->isConnected()) { - base.write(mapAxis(pad->axisX())); - shoulder.write(mapAxis(-pad->axisY())); - elbow.write(mapAxis(-pad->axisRY())); - hand.write(mapAxis(pad->throttle() - pad->brake())); - - if (pad->l1()) wrist.write(0); - else if (pad->r1()) wrist.write(180); - else wrist.write(90); - } - delay(15); -}`; - return ( - <> - ߸ 3d printing -

3D Printing

- Bambu Lab A1 -

Projects

-

Robot Arm

-

3D Model changed the model to work with my servo motors.

- -

Diy Drone

-

WIP

- - ); -} \ No newline at end of file -- cgit v1.3.1