1 / 14
Velorex RC 1:15 – český tříkolový model s ESP32 — image 1
1 / 14

Velorex RC 1:15 – český tříkolový model s ESP32

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

RC model legendárního Velorexu 1:15 s Bluetooth ovládáním přes ESP32, LED světly a magnetickou střechou.

Rating
0 / 5
Likes
31
Downloads
194
Makes
1
Views
1,008
Reviews
0

Updated at source:

Model information

License
Creative Commons — Attribution — Noncommercial — NoDerivatives

Česká verze

RC model Velorex 1:15 – legendární český tříkolový automobil s Bluetooth ovládáním přes ESP32. Aktualizovaná verze podporuje aplikaci Dabble, LED světla a magnetickou střechu.

Zapojení a ovládání

- Řízení Bluetooth: ESP32 Mini C3 + aplikace Dabble.

- ESP32 Mini používá BLE, proto nelze použít běžnou aplikaci Arduino Bluetooth.

- Motorový regulátor (ESC): pin 3.

- Servo řízení: pin 2.

- 2× LED 3 mm: piny 9 a 10.

- Střecha: magnety Ø 3×1 mm.

- Při úpravách používejte STL soubory s příponou _update.

ESP32 kód

#define CUSTOM_SETTINGS

#define INCLUDE_GAMEPAD_MODULE

#include <DabbleESP32.h>

#include <ESP32Servo.h>

// --- KONFIGURACE PINŮ ---

const int escPin = 3;

const int servoPin = 2;

const int ledPin1 = 9;

const int ledPin2 = 10;

Servo myESC;

Servo myServo;

bool lightsOn = false;

bool lastXState = false;

void setup() {

Serial.begin(115200);

delay(2000);

Dabble.begin("Velorex_RC");

pinMode(ledPin1, OUTPUT);

pinMode(ledPin2, OUTPUT);

// Při startu jsou světla vypnutá

digitalWrite(ledPin1, LOW);

digitalWrite(ledPin2, LOW);

myESC.setPeriodHertz(50);

myServo.setPeriodHertz(50);

myESC.attach(escPin, 1000, 2000);

myServo.attach(servoPin, 500, 2400);

myESC.write(90); // neutrál

myServo.write(90); // střed

Serial.println("Velorex pripraven!");

}

void loop() {

Dabble.processInput();

// --- SVĚTLA: tlačítko X ---

bool currentXState = GamePad.isCrossPressed();

if (currentXState && !lastXState) {

lightsOn = !lightsOn;

digitalWrite(ledPin1, lightsOn ? HIGH : LOW);

digitalWrite(ledPin2, lightsOn ? HIGH : LOW);

Serial.print("Svetla: ");

Serial.println(lightsOn ? "ZAP" : "VYP");

}

lastXState = currentXState;

// --- PLYN: osa Y s malou mrtvou zónou ---

float yValue = GamePad.gety_axis();

int throttle;

if (abs(yValue) < 0.5) {

throttle = 90; // stoj

} else {

throttle = map(yValue * 10, -70, 70, 20, 160);

}

myESC.write(throttle);

// --- ZATÁČENÍ: osa X ---

float xValue = GamePad.getx_axis();

int steering = map(xValue * 10, -70, 70, 66, 114);

myServo.write(steering);

}

Další materiál

- Motor: 3 V DC, 500 RPM

- Regulátor: 2S ESC

- Baterie: 2S LiPo, 500–1000 mAh

- RC set

- Servo: 9 g

- Pneumatiky: TPU

- Karoserie: PLA

- Šrouby: M2×6 (24×), M2×10 (2×), M3×12 (2×), M2×35 (1×)

- Podložky M3 (2×)

English

A 1:15 RC model of the iconic Czech Velorex three-wheeler with ESP32 Bluetooth control. The Czech section above contains the wiring notes, ESP32/Dabble sketch, component list and build information.

Tags