본문 바로가기 메뉴 바로가기

프로그래밍

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

프로그래밍

검색하기 폼
  • 분류 전체보기 (125)
    • C# Programming (47)
    • Python Programming (0)
    • Veranda Plant Factory (22)
    • System Trading (10)
    • Excel & VBA (9)
    • esp32 드론 만들기 (7)
    • Sqlite Database (3)
    • Chrome Extension (0)
    • Stirling Engine Generator (3)
    • 3D Printing (2)
    • Mysql Database (2)
    • Windows Trouble Shooting (2)
    • IT & Computer (2)
    • Book Summary (1)
    • Mathematics (1)
    • Tranggle GPS (1)
    • Recipes (1)
    • OpenOffice (1)
    • Electronic Craft (1)
    • RecordOfReading (3)
    • HTML CSS JAVASCRIPT (1)
  • 방명록

esp32 드론 만들기 (7)
ESP32 드론으로 데이터 보내기 - 플러터앱

esp32 드론 만들기모터 테스트를 위해 플러터앱으로 드론으로 숫자를 보내면 모터가 회전하도록 앱을 만들었다완성된 앱은 아니고 테스트용 앱이다import 'dart:convert';import 'package:flutter/material.dart';import 'package:flutter_bluetooth_serial/flutter_bluetooth_serial.dart';void main() { runApp(MySimpleApp());}class MySimpleApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Drone Controller Ap..

esp32 드론 만들기 2025. 3. 14. 10:17
ESP32 모터에 채널 지정하기

esp32 버전 업데이터 되면서 함수가 바뀌었다모터에 채널 지정하는 예제이다const int MOTER_A = 23;const int MOTER_B = 19;const int MOTER_C = 18;const int MOTER_D = 26;const int CHANNEL_A = 0;const int CHANNEL_B = 1;const int CHANNEL_C = 2;const int CHANNEL_D = 3;const int MOTER_FREQ = 5000;const int MOTER_RESOLUTION = 10;void setup(){ Serial.begin(115200); Serial.print("모터 시작"); ledcAttachChannel(MOTER_A, MOTER_FREQ, MOTER_R..

esp32 드론 만들기 2025. 3. 14. 02:06
esp32 드론 - 모터 소리로 상태 확인하기 버전 3.1.1

ESP32 보드 버전 3.1.1 로 업데이트 되면서 이전에 사용하던 함수가 삭제되었습니다ledcAttachPin 과 ledcSetup 을 사용하지 못합니다그래서 ledcAttach 와 ledcChangeFrequency 를 사용하여 코드를 수정했습니다const int motor_resolution =10;const int motors[] = {23, 19, 18, 26};const int melody[] = {300, 400, 500};void setup() { ledcAttach(motors[0], 1000, motor_resolution); ledcAttach(motors[1], 1000, motor_resolution); ledcAttach(motors[2], 1000, motor_resolu..

esp32 드론 만들기 2025. 3. 4. 09:24
esp32 드론 - 모터 소리로 상태 확인하기

드론에 스피커가 없기 때문에 모터에서 소리를 내어서 작동 상태를 알 수 있습니다드론이 초기 설정이 완료되어 날아갈 준비가 되면  소리를 내어서 확인 할 수 있습니다아래는 간단한 예제 코드입니다const int motor1 = 23;const int motor2 = 19;const int motor3 = 18;const int motor4 = 26;const int motor1_channel = 0;const int motor2_channel = 1;const int motor3_channel = 2;const int motor4_channel = 3;const int motor_resolution =11;const int melody[] = {262, 294, 330};void setup() { ledc..

esp32 드론 만들기 2025. 3. 4. 04:04
esp32 드론과 컴퓨터간의 통신 예제(블루투스 클래식)

아두이노 코드include "BluetoothSerial.h"BluetoothSerial SerialBT;const int LED_PIN = 2; // LED가 연결된 GPIO 핀 번호 설정void setup() { pinMode(LED_PIN, OUTPUT); // LED 핀을 출력으로 설정 Serial.begin(115200); SerialBT.begin("ESP32_BT_Device");}void loop() { if (SerialBT.available()) { String data = SerialBT.readString(); String message = "드론에서 받은 메세지 : 데이터를 받았습니다"; SerialBT.write((const uint8_t*)message...

esp32 드론 만들기 2025. 3. 3. 22:40
ESP32 블루투스 연동 코드

#include #include #include #include BLEServer *pServer = NULL;BLECharacteristic * pTxCharacteristic;bool deviceConnected = false;bool oldDeviceConnected = false;#define SERVICE_UUID           "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"#define CHARACTERISTIC_UUID_RX "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"#define CHARACTERISTIC_UUID_TX "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"class MyServerCallbacks: publi..

esp32 드론 만들기 2023. 8. 31. 08:53
아두이노 드론 모터 제어 테스트

const int MOTOR_A = 23;const int MOTOR_B = 19;const int MOTOR_C = 18;const int MOTOR_D = 26;const int CHANNEL_A = 1;const int CHANNEL_B = 2;const int CHANNEL_C = 3;const int CHANNEL_D = 4;const int MOTOR_FREQ = 5000;const int MOTOR_RESOLUTION = 10;int selectedMotor = 0;int previousMotor = 0;void setup() {  ledcSetupChannels();  ledcAttachPins();  ledcWriteChannels(0);  Serial.begin(115200);}void..

esp32 드론 만들기 2023. 7. 12. 01:58
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • C# textbox 커서 시작
  • framework
  • 베란타
  • 인삼키우기
  • c# Speech
  • 시스템트레이딩
  • ArgumentException
  • 이베스트
  • 암호화
  • 방울토마토
  • C# textbox 커서 위치
  • MySQL
  • 스털링엔진
  • c#
  • c# SpeechSynthesizer
  • NET FRAMEWORK
  • 코딩
  • 복호화
  • 베란다 텃밭
  • C# textbox 커서 마지막
  • 이 행은
  • Xingapi
  • 베란다 방울토마토
  • 드론
  • imemode
  • ESP32
  • C# 마우스 폼이동
  • c# 음성
  • 앉은뱅이 방울토마토
  • 스털링
more
«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바