# Emre Gözkaya: full profile > Emre Gözkaya is an electronics design & embedded systems engineer based in Bursa, Türkiye. Currently Embedded Systems Engineer at Özdilek Holding A.Ş. Works on high-speed multilayer PCB design, battery management systems qualified to MIL-STD-461/810, and FreeRTOS firmware on STM32 and ESP32. Source: https://emregozkaya.com (generated from the site content at build time). ## About I’m an electrical and electronics engineer who works across hardware design and embedded software. At ASPİLSAN Energy I worked on the Battery Management System and battery pack for ASELSAN’s DERİNGÖZ program, and took our boards through MIL-STD-461 and MIL-STD-810 qualification testing. Today I design high-speed NVIDIA Jetson carrier boards at Özdilek and write FreeRTOS firmware on ESP32 for IoT projects. I’m also pursuing a master’s degree at Bursa Uludağ University; our paper on DC-DC converter control was published in a Q1 journal (Biomimetics). What I enjoy most is taking a board from schematic through prototype testing to production. Defense and mission-critical electronics are at the core of my interests. ## Key facts - Name: Emre Gözkaya (also written "Emre Gozkaya") - Role: Electronics Design & Embedded Systems Engineer / Elektronik Tasarım & Gömülü Sistem Mühendisi - Location: Bursa, Türkiye - Current position: Embedded Systems Engineer, Özdilek Holding A.Ş. (Apr 2024 – Present) - Professional experience: 3.5+ years (since 2023-03) - Education: M.Sc., Electrical & Electronics Engineering, Bursa Uludağ Üniversitesi (Sep 2024 – Present) - Education: B.Sc., Electrical & Electronics Engineering, Bursa Uludağ Üniversitesi (Sep 2018 – Aug 2023) - Languages: English (YÖKDİL 77.5), Turkish (native) - LinkedIn: https://www.linkedin.com/in/emregozkaya/ - Contact: https://emregozkaya.com/en/#contact (contact form) ## Skills - **Hardware Design:** Up to 8-layer PCBs, Stack-up, Controlled impedance, Differential pairs, Length matching, DFM - **Embedded Software:** C / C++, FreeRTOS (multi-thread), STM32, ESP32, Peripheral drivers, IoT data acquisition - **Interfaces:** PCIe (NVMe), USB 2.0 / 3.0, HDMI, Gigabit Ethernet, CAN, SPI · I²C · UART, Wi-Fi - **Power Electronics:** BMS: monitoring, balancing, protection, Boost converters, 3-phase BLDC drivers, Fuel cell control - **Test & Verification:** MIL-STD-461 (EMI/EMC), MIL-STD-810 (environmental), Design for EMC, Board bring-up, Debugging - **Tools:** Altium Designer, KiCad, LTspice, Visual Studio ## Experience ### Embedded Systems Engineer, Özdilek Holding A.Ş. Apr 2024 – Present · Bursa - Designing carrier boards for NVIDIA Jetson Nano and Orin Nano modules with NVMe SSD (PCIe), USB 2.0/3.0, HDMI, Gigabit Ethernet and Wi-Fi interfaces. - Routing high-speed nets with controlled impedance, differential pairs and length matching, with EMI-aware placement; owning the flow from schematic to production. - Developing multi-threaded C/C++ firmware on ESP32 and FreeRTOS for IoT monitoring and data acquisition projects. ### Electronics Design Engineer, ASPİLSAN Enerji A.Ş. Sep 2023 – Apr 2024 · Ankara - Worked on the Battery Management System (BMS) and battery pack for ASELSAN’s DERİNGÖZ program. - Designed BMS boards of up to 8 layers covering cell monitoring, balancing, protection and CAN communication. - Planned and ran MIL-STD-461 and MIL-STD-810 qualification tests; closed findings through layout, filtering and shielding revisions. ### Associate Engineer, ASPİLSAN Enerji A.Ş. Mar – Sep 2023 · Ankara - Evaluated and compared domestic and COTS BMS solutions; contributed to multilayer PCB designs in Altium Designer. ### Intern, ASELSAN A.Ş. Aug – Sep 2022 · Ankara - Observed electronics production for defense and civil programs on site: EMC lab, PCB fabrication and assembly. ### Electronics Team Lead, UMAKİT Elektrikli Araç Takımı Sep 2021 – Sep 2022 · Bursa Uludağ University - Led the electronics sub-team; together we designed the BMS, fuel cell controller, 3-phase BLDC motor driver and boost converter boards. Team member from 2020 to 2023. ## Education - M.Sc., Electrical & Electronics Engineering, Bursa Uludağ Üniversitesi, Sep 2024 – Present (GPA 3.45 / 4.00) - B.Sc., Electrical & Electronics Engineering, Bursa Uludağ Üniversitesi, Sep 2018 – Aug 2023 (GPA 3.31 / 4.00) ## Publications - [Bio-Inspired PSO Optimization of Fuzzy Membership Boundaries and PI Gains for a 48 V Synchronous Boost Converter](https://doi.org/10.3390/biomimetics11090656): T. Karadağ, E. Gözkaya, A. Başgümüş, M. Namdar. *Biomimetics*, 11(9), 656, 2026 (SCIE · Q1). A control approach for a 48 V synchronous boost converter in which fuzzy membership boundaries and PI gains are tuned together using particle swarm optimization (PSO). ## Awards and training - 2023: EMC Design in Device Development (Ahmet Turan Algın) - 2022: Shell Eco-marathon Europe & Africa (2nd in Technical Innovation, 2nd in Safety, 6th in Efficiency) - 2022: TÜBİTAK Efficiency Challenge · Hydromobile (1st place in performance and Special Jury Award) ## Projects ### NVIDIA Jetson Carrier Boards URL: https://emregozkaya.com/en/projects/jetson-carrier-board/ Özdilek · Hardware design (schematic → production) · 2024 – Present Tags: KiCad, High-speed PCB, PCIe / NVMe, USB 3.0, PoE, Device tree, MIPI CSI, Gigabit Ethernet #### Overview I design our own carrier boards for NVIDIA Jetson Nano and Orin Nano compute modules. The module plugs into a 260-pin SO-DIMM socket; the carrier provides everything that turns it into a real product: power, storage, display output, camera, networking and wireless connectivity. Since August 2024, several designs have grown out of the same foundation for different product needs: a mainboard refined over several revisions, a camera variant powered over Ethernet, and a Cluster board for running several modules together. All boards are designed in **KiCad** as **4-layer** PCBs. > These are internal company products, so only the architecture and design approach are described here; the images are 3D views with components. #### Jetson Nano mainboard (ED01 → ED04) A 92.3 × 53.4 mm mainboard that evolved over four revisions. **Interfaces:** - **M.2 Key-M (PCIe):** NVMe SSD - **M.2 Key-E:** Wi-Fi / Bluetooth module - **HDMI** display output - **USB 3.0:** Type-A and Type-C, plus micro-USB (device and recovery mode) - **Gigabit Ethernet** - **MIPI CSI camera** input - **Peripherals:** Fan control with tachometer feedback, RGB status LED, configuration EEPROM, power / reset / recovery buttons - **Debug UART** with level shifters **How the revisions evolved:** - **ED01–ED02 (2024):** First schematic and PCB; validating the module's core interfaces. - **ED03 (Feb–Mar 2025):** - Reworked differential-pair length matching. - Moved the camera input to the CSI2 lanes. - Added the fan circuit and connector. - Completed 3D STEP models for the whole board. - **ED04 (Dec 2025):** - Added a new high-current DC-DC converter stage (TPS548A29). - Redesigned power source selection. - Re-placed and re-routed the board. #### PoE camera variant A version of the mainboard powered by **Power over Ethernet** (ED03 PoE and ED04 PoE). A single Ethernet cable carries both power and data, so the camera can be installed in the field without a separate power cable. - A PoE power module provides the 5 V supply. - A current-limiting **eFuse** (TPS25944L) protects the input. - The board fits a compact **camera enclosure** designed for it; the mechanical fit was checked with STEP models. #### Jetson Cluster mainboard (V1 → V2) A **100 × 100 mm** board designed to run several Jetson modules together. - **Interfaces:** **Gigabit RJ45** with integrated magnetics, M.2 NVMe slot, USB 3.0, HDMI and DC input. - **Protection:** **eFuse** protection on the power path and current-limited power switches on the USB ports. - **Panel production:** Panelized so that four boards are produced together on **a single PCB panel** (410 × 100 mm). - **V2 (Jan 2026):** Power stage shared with the ED04 mainboard; the board was re-placed and re-routed. #### Design approach - **High-speed nets:** PCIe, USB 3.0, HDMI, MIPI CSI and Ethernet differential pairs routed with **controlled impedance** and **length matching**, over continuous reference planes and clean return paths in a 4-layer stack-up. - **Power design:** - The wide-range DC input has MOSFET-based source selection with reverse-polarity and TVS surge protection. - Synchronous buck converters (TPS51386, plus TPS548A29 on ED04) and low-noise LDOs. - Logic that manages the module's power-on sequence. - **Protection:** ESD diode arrays on every external connector and current-limiting eFuses on the USB ports. - **Mechanical:** Standard, mini and PoE camera enclosures; connector cut-outs and mounting holes verified against the enclosures with 3D STEP models. - **Production:** BOM, Gerber and pick-and-place outputs, plus the panel design. #### Bring-up and software - **Jetson Linux (L4T):** Custom **device trees** describe the board's actual wiring. - **Module support:** Jetson Nano and **Orin Nano**. - **Camera:** **IMX219** camera integration. - **Workflow:** A documented DTB build and flash workflow. - **Validation:** Power, USB, PCIe and camera lanes were brought up and tested one by one on the prototypes. #### Technologies KiCad · NVIDIA Jetson Nano / Orin Nano · PCIe NVMe (M.2 Key-M) · M.2 Key-E Wi-Fi · USB 3.0 · HDMI · MIPI CSI-2 · Gigabit Ethernet · PoE · Device tree / Jetson Linux · STEP mechanical design ### ESP32 + FreeRTOS IoT Data Acquisition URL: https://emregozkaya.com/en/projects/esp32-iot/ Özdilek · Embedded software and hardware development · 2024 – Present Tags: ESP32, FreeRTOS, MQTT, RFID, OTA, C / C++, PlatformIO, Nextion HMI #### Overview An IoT module that moves coin-operated arcade machines in shopping-mall entertainment centers to card and mobile payment. The module fitted to each machine reads the card and verifies the payment, starts the machine, counts the tickets the machine dispenses and credits them to the player's digital wallet, and reports all of this to a central system. The project has been in development since November 2024 and runs on many machines in the field. I worked on both the embedded software and the hardware design of the e-ticket board. > This is an internal company project, so only the architecture and engineering approach are described here; server, protocol and security details are not shared. #### Hardware - **ESP32-WROOM-32:** Dual-core MCU with Wi-Fi. - **13.56 MHz RFID reader (SPI):** Reads Mifare cards. - **Nextion HMI display (UART):** Balance, price, payment QR code and error screens. - **Addressable RGB LED (WS2812B):** Shows device state with colors and animations, e.g. no connection, waiting for payment, payment accepted. - **Relay output:** Starts the machine once the payment is approved. - **Pulse input:** Counts the machine's ticket-out signal. - **E-ticket board:** I did the schematic and PCB design, bill of materials (BOM) and manufacturing files (Gerber) for the add-on board with the ticket counting and control circuitry. #### FreeRTOS architecture The firmware is built on **12 FreeRTOS tasks** deliberately split across the ESP32's two cores, each with its own priority and stack size. - **Core 0, communication:** MQTT, web services, RFID reading and ticket recording. The web service task was moved onto the same core as MQTT, which removed cross-core conflicts in the async TCP library. - **Core 1, user and hardware:** Display, LED, relay, ticket counting, timers, TOTP generation and updates. Ticket counting runs at high priority so no pulses from the machine are missed. - **Inter-task communication:** Separate **queues** for display pages, counted tickets, log records and MQTT messages; **mutexes** for shared data; **task notifications** for event signaling; **software timers** for periodic work. - **Layered structure:** Tasks, business logic (services), event handlers and hardware drivers (lib) live in separate layers. The display and LEDs are wrapped behind meaningful methods, so application code never deals with raw display commands. #### Data collection and communication - **MQTT, real-time channel:** Receives commands from the server such as price changes, remote restart and update triggers, and publishes device status, card and ticket events. - **REST, batch operations:** Authentication (tokens), batch ticket upload, server reachability checks (ping) and log upload. - **Store-and-forward:** When the connection drops, ticket and play records are stored as JSON on the on-board flash file system (SPIFFS) and sent in order once the connection is back. Records the server rejects are handled separately, so the same record is never retried forever. - **Offline mode:** When the server or internet is down, the device switches to offline mode instead of falling into a restart loop. It keeps letting players play within a per-card limit and uploads the backlog when the connection returns. #### Reliability in the field - **Task watchdog:** Every task is registered with the watchdog; if one hangs, the device restarts safely. - **Three-layer crash diagnostics:** 1. Each task writes its current step and a timestamp to RTC memory (heartbeat). 2. The serial output at the moment of a crash is captured into RTC memory through a hook. 3. An ESP-IDF core dump is saved to a separate flash partition. This data survives the restart and is sent to a log server at boot, so a crash in the field can be traced remotely to the exact task and step. - **Jitter to spread load:** Dozens of devices at one site share the same access point. Reconnects, Wi-Fi radio resets and update attempts include a random delay, so after an outage the devices don't all hit the access point and server in the same second. - **Wi-Fi health service:** If the link looks up but MQTT can't connect, the device first resets the radio instead of rebooting. #### Security - **Time-based one-time passwords (TOTP):** The QR code shown for mobile payment is synchronized to server time and valid only briefly; even a photo of it expires shortly after. - **Card security:** Cards use project-specific keys instead of the default ones, and cards are also validated on the server. - **Token-based authorization:** Server access uses short-lived tokens. #### Over-the-air updates (OTA) - Flash is split into two application partitions (A/B). The new firmware is written to the spare partition, so the device can still boot the previous version if something goes wrong. - Updates start with an MQTT command. Devices download one after another with a random delay, and other tasks are suspended during the download to avoid flash write conflicts. - The Nextion display's UI file (TFT) can also be updated remotely, and the display version is checked at boot. #### My contributions - Payment flows, MQTT topic structure and display pages - QR payment with TOTP, offline data storage and deferred upload - E-ticket module: ticket counting, crediting to the wallet, queue-based recording and upload - Remote firmware and display updates, version checks - Watchdog fixes, core dump integration, reconnect and jitter improvements - Offline mode that keeps the device working instead of restarting when the connection drops - Schematic, PCB, BOM and Gerber outputs for the e-ticket board #### Technologies ESP32 · FreeRTOS · C/C++ (Arduino framework) · PlatformIO · MQTT (AsyncMqttClient) · REST/HTTP · ArduinoJson · SPIFFS · ESP-IDF OTA and core dump · MFRC522 RFID · Nextion HMI · WS2812B (NeoPixelBus) ### Military Battery Management System & Battery Pack URL: https://emregozkaya.com/en/projects/military-bms/ ASPİLSAN Energy · Electronics design engineer · 2023 – 2024 Tags: BMS, MIL-STD-461, MIL-STD-810, CAN, Altium Designer, 8-layer PCB > This is a defense program; only publicly available, high-level information is shared here. #### Overview At ASPİLSAN Energy I worked on the Battery Management System (BMS) and battery pack developed for ASELSAN’s **DERİNGÖZ** program. #### What I did - Designed BMS boards of **up to 8 layers** covering cell monitoring, cell balancing, protection and **CAN** communication. - Planned and ran **MIL-STD-461** (EMI/EMC) and **MIL-STD-810** (environmental) qualification tests. - Closed test findings through **layout**, **filtering** and **shielding** revisions. - Prepared the verification and test documentation. #### Before that: associate engineer From March to September 2023 I evaluated and compared domestic and COTS BMS solutions and contributed to multilayer PCB designs in Altium Designer. ### PSO-Tuned Fuzzy-PI Control for a 48 V Boost Converter URL: https://emregozkaya.com/en/projects/pso-fuzzy-boost/ Bursa Uludağ University · Master’s research, co-author · 2024 – 2026 Tags: Power electronics, Fuzzy logic, PSO, PI control, DC-DC #### Overview As part of my master’s studies we worked on a control approach for a **48 V synchronous boost converter**. The fuzzy controller’s **membership function boundaries** and the **PI gains** are tuned together with bio-inspired **particle swarm optimization (PSO)**. #### Publication T. Karadağ, **E. Gözkaya**, A. Başgümüş, M. Namdar, “Bio-Inspired PSO Optimization of Fuzzy Membership Boundaries and PI Gains for a 48 V Synchronous Boost Converter”, *Biomimetics*, 11(9), 656, 2026. (SCIE, Q1) — `doi:10.3390/biomimetics11090656` ### UMAKİT Electric Vehicle Electronics URL: https://emregozkaya.com/en/projects/umakit-ev/ UMAKİT · Electronics team lead · 2020 – 2023 Tags: STM32, BLDC driver, BMS, Fuel cell, KiCad, LTspice #### Overview From 2020 to 2023 I was part of **UMAKİT**, Bursa Uludağ University’s electric vehicle team, and **led the electronics sub-team** during the 2021–2022 season. #### Boards we designed as a team - **Battery Management System (BMS)** - **Fuel cell controller** (for the hydrogen vehicle category) - **3-phase BLDC motor driver** - **Boost converter** We used KiCad and Altium Designer (up to 4 layers), LTspice for simulation and STM32 on the firmware side. #### Awards (2022) - **TÜBİTAK Efficiency Challenge, Hydromobile:** 1st place in performance and Special Jury Award - **Shell Eco-marathon Europe & Africa:** 2nd in Technical Innovation, 2nd in Safety, 6th in Efficiency --- # Emre Gözkaya: Türkçe profil Elektrik-Elektronik Mühendisiyim; donanım tasarımı ve gömülü yazılımı birlikte yürütüyorum. ASPİLSAN Enerji’de ASELSAN DERİNGÖZ projesi için Batarya Yönetim Sistemi ve batarya paketinin geliştirilmesinde görev aldım; kartlarımızı MIL-STD-461 ve MIL-STD-810 kalifikasyon testlerinden geçirdim. Şu anda Özdilek’te NVIDIA Jetson tabanlı yüksek hızlı taşıyıcı kartlar tasarlıyor, ESP32 ve FreeRTOS ile IoT projeleri için gömülü yazılım geliştiriyorum. Bursa Uludağ Üniversitesi’nde yüksek lisansıma devam ediyorum; DC-DC dönüştürücü kontrolü üzerine yazdığımız makale Q1 bir dergide (Biomimetics) yayımlandı. En çok keyif aldığım iş, bir kartı şematikten alıp prototip testlerinden geçirerek üretime hazır hale getirmek. Özellikle savunma ve kritik görev elektroniği ilgi alanımın merkezinde. ## Projeler ### NVIDIA Jetson Taşıyıcı Kartları URL: https://emregozkaya.com/projeler/jetson-carrier-board/ Özdilek · Donanım tasarımı (şematik → üretim) · 2024 – Halen Tags: KiCad, Yüksek hızlı PCB, PCIe / NVMe, USB 3.0, PoE, Device tree, MIPI CSI, Gigabit Ethernet #### Özet NVIDIA Jetson Nano ve Orin Nano işlem modülleri için kendi taşıyıcı kart (carrier board) ailemizi tasarlıyorum. Modül, 260 pinli SO-DIMM soketine takılıyor; taşıyıcı kart ise onu gerçek bir ürüne dönüştüren her şeyi sağlıyor: güç, depolama, görüntü çıkışı, kamera, ağ ve kablosuz bağlantı. Ağustos 2024'ten bu yana aynı temel üzerinde farklı ürün ihtiyaçlarına yönelik birkaç tasarım çıktı: revizyonlarla olgunlaşan bir ana kart, Ethernet'ten beslenen bir kamera sürümü ve birden fazla modülü bir arada çalıştırmak için bir Cluster kartı. Tüm kartlar **KiCad** ile, **4 katmanlı** olarak tasarlandı. > Kartlar şirket içi ürünler olduğu için burada yalnızca mimari ve tasarım yaklaşımı anlatılıyor; görseller bileşenli 3D görünümlerdir. #### Jetson Nano anakartı (ED01 → ED04) 92,3 × 53,4 mm boyutunda, dört revizyonla gelişen ana kart. **Arayüzler:** - **M.2 Key-M (PCIe):** NVMe SSD - **M.2 Key-E:** Wi-Fi / Bluetooth modülü - **HDMI** görüntü çıkışı - **USB 3.0:** Type-A ve Type-C; ayrıca micro-USB (cihaz ve kurtarma modu) - **Gigabit Ethernet** - **MIPI CSI kamera** girişi - **Yardımcı birimler:** Hız geri bildirimli (tach) fan kontrolü, RGB durum LED'i, yapılandırma EEPROM'u, güç / reset / kurtarma butonları - **Debug UART:** Seviye dönüştürücülerle **Revizyonların gelişimi:** - **ED01–ED02 (2024):** İlk şematik ve PCB; modülün temel arayüzlerinin doğrulanması. - **ED03 (Şubat–Mart 2025):** - Diferansiyel çiftlerin uzunluk eşlemesi baştan düzenlendi. - Kamera girişi CSI2 hattına taşındı. - Fan devresi ve konnektörü eklendi. - Bütün kartın 3D STEP modelleri tamamlandı. - **ED04 (Aralık 2025):** - Yeni, yüksek akımlı DC-DC dönüştürücü katı eklendi (TPS548A29). - Güç kaynağı seçimi yenilendi. - Kart yeniden yerleştirilip çizildi. #### PoE kamera sürümü Ana kartın **Power over Ethernet** ile beslenen sürümü (ED03 PoE ve ED04 PoE). Tek bir Ethernet kablosu hem enerjiyi hem veriyi taşıyor; bu da kameranın sahada ayrı bir güç kablosu olmadan kurulabilmesini sağlıyor. - 5 V çıkışlı PoE güç modülü kullanılıyor. - Girişte akım sınırlamalı **eFuse** (TPS25944L) var. - Kart, ona özel tasarlanmış kompakt bir **kamera kutusuna** giriyor; mekanik uyum STEP modelleriyle kontrol edildi. #### Jetson Cluster anakartı (V1 → V2) Birden fazla Jetson modülünü bir arada çalıştırmak için tasarlanan **100 × 100 mm** kart. - **Arayüzler:** Entegre manyetikli **Gigabit RJ45**, M.2 NVMe yuvası, USB 3.0, HDMI ve DC girişi. - **Koruma:** Güç yolunda **eFuse** koruması; USB portlarında akım sınırlamalı güç anahtarları. - **Panel üretimi:** Dört kart **tek bir PCB panelinde** (410 × 100 mm) birlikte üretilebilecek şekilde panelize edildi. - **V2 (Ocak 2026):** Güç katı ana kartın ED04 revizyonuyla ortaklaştırıldı; kart yeniden yerleştirilip çizildi. #### Tasarım yaklaşımı - **Yüksek hızlı hatlar:** PCIe, USB 3.0, HDMI, MIPI CSI ve Ethernet diferansiyel çiftleri **empedans kontrollü** ve **uzunluk eşlemeli** çizildi. 4 katmanlı dizilimde sürekli referans düzlemleri ve temiz dönüş yolları gözetildi. - **Güç tasarımı:** - Geniş aralıklı DC girişte ters polarite ve aşırı gerilime karşı MOSFET tabanlı kaynak seçimi ile TVS koruması var. - Senkron buck dönüştürücüler (TPS51386, ED04'te ayrıca TPS548A29) ve düşük gürültülü LDO'lar kullanıldı. - Modülün açılma sırasını yöneten lojik devre eklendi. - **Koruma:** Dış dünyaya açılan bütün konnektörlerde ESD diyot dizileri, USB portlarında akım sınırlamalı eFuse'lar. - **Mekanik:** Kartlar için normal, mini ve PoE kamera kutuları tasarlandı; konnektör ve vida delikleri 3D STEP modelleriyle kutuya göre doğrulandı. - **Üretim:** BOM, Gerber ve pick-and-place dosyaları; panel tasarımı. #### Bring-up ve yazılım - **Jetson Linux (L4T):** Kart için özel **device tree** dosyaları hazırlandı; arayüzler kartın gerçek bağlantılarına göre tanımlandı. - **Modül desteği:** Jetson Nano ve **Orin Nano** destekleniyor. - **Kamera:** **IMX219** kamera entegre edildi. - **Akış:** DTB derleme ve flash akışı belgelendi. - **Doğrulama:** Prototiplerde güç, USB, PCIe ve kamera hatları tek tek ayağa kaldırılıp test edildi. #### Teknolojiler KiCad · NVIDIA Jetson Nano / Orin Nano · PCIe NVMe (M.2 Key-M) · M.2 Key-E Wi-Fi · USB 3.0 · HDMI · MIPI CSI-2 · Gigabit Ethernet · PoE · Device tree / Jetson Linux · STEP mekanik tasarım ### ESP32 + FreeRTOS IoT Veri Toplama URL: https://emregozkaya.com/projeler/esp32-iot/ Özdilek · Gömülü yazılım ve donanım geliştirme · 2024 – Halen Tags: ESP32, FreeRTOS, MQTT, RFID, OTA, C / C++, PlatformIO, Nextion HMI #### Özet AVM'lerdeki eğlence merkezlerinde bulunan jetonlu oyun makinelerini kartlı ve mobil ödemeye geçiren bir IoT modülü. Her makineye takılan modül, kartı okuyup ödemeyi doğruluyor, makineyi çalıştırıyor, makinenin verdiği biletleri sayıp kullanıcının dijital cüzdanına aktarıyor ve bütün bu verileri merkezi sisteme gönderiyor. Proje Kasım 2024'ten bu yana geliştiriliyor ve sahada çok sayıda makinede çalışıyor. Ben hem gömülü yazılım tarafında hem de e-bilet kartının donanım tasarımında yer aldım. > Şirket içi bir proje olduğu için burada yalnızca mimari ve mühendislik yaklaşımı anlatılıyor; sunucu, protokol ve güvenlik ayrıntıları paylaşılmıyor. #### Donanım - **ESP32-WROOM-32:** Çift çekirdekli işlemci, Wi-Fi bağlantısı. - **13,56 MHz RFID okuyucu (SPI):** Mifare kartları okuyor. - **Nextion HMI ekran (UART):** Bakiye, fiyat, ödeme için QR kod ve hata ekranları. - **Adreslenebilir RGB LED (WS2812B):** Cihaz durumunu renk ve animasyonla gösteriyor; örneğin bağlantı yok, ödeme bekleniyor, ödeme başarılı. - **Röle çıkışı:** Ödeme onaylandığında makineyi çalıştırıyor. - **Darbe (pulse) girişi:** Makinenin bilet çıkış sinyalini sayıyor. - **E-bilet kartı:** Bilet sayma ve kontrol devresini içeren ek kartın şematik ve PCB tasarımını, malzeme listesini (BOM) ve üretim dosyalarını (Gerber) hazırladım. #### FreeRTOS mimarisi Yazılım, ESP32'nin iki çekirdeğine bilinçli olarak dağıtılmış **12 FreeRTOS görevi** üzerine kurulu. Her görevin kendi önceliği ve yığın (stack) boyutu var. - **Core 0, haberleşme:** MQTT, web servisleri, RFID okuma ve bilet kayıt görevleri. Web servisi görevi MQTT ile aynı çekirdeğe taşındı; böylece asenkron TCP kütüphanesinin çekirdekler arası çakışmaları ortadan kalktı. - **Core 1, kullanıcı ve donanım:** Ekran, LED, röle, bilet sayma, zamanlayıcılar, TOTP üretimi ve güncelleme görevleri. Bilet sayma görevi yüksek öncelikle çalışıyor, böylece makinenin verdiği darbeler kaçmıyor. - **Görevler arası iletişim:** Ekran sayfaları, sayılan biletler, log kayıtları ve MQTT mesajları için ayrı **kuyruklar**; paylaşılan veriler için **mutex**; olay tetikleme için **task notification**; periyodik işler için **yazılım zamanlayıcıları**. - **Katmanlı yapı:** Görevler (tasks), iş mantığı (services), olay işleyiciler (handlers) ve donanım sürücüleri (lib) ayrı katmanlarda. Ekran ve LED gibi donanımlar anlamlı metotlarla sarmalandı; uygulama kodu ekranın ham komutlarıyla uğraşmıyor. #### Veri toplama ve haberleşme - **MQTT, gerçek zamanlı kanal:** Sunucudan fiyat değişikliği, uzaktan yeniden başlatma ve güncelleme gibi komutları alıyor. Cihaz durumu, kart ve bilet olaylarını yayınlıyor. - **REST, toplu işlemler:** Kimlik doğrulama (token), toplu bilet gönderimi, sunucu erişilebilirlik kontrolü (ping) ve log gönderimi. - **Biriktir ve gönder (store-and-forward):** Bağlantı koptuğunda bilet ve oyun kayıtları cihazdaki flash dosya sisteminde (SPIFFS) JSON olarak saklanıyor, bağlantı gelince sırayla sunucuya gönderiliyor. Sunucunun reddettiği kayıtlar ayrı ele alınıyor, böylece aynı kayıt sonsuz döngüde tekrar gönderilmiyor. - **Çevrimdışı mod:** Sunucu ya da internet kesildiğinde cihaz yeniden başlatma döngüsüne girmek yerine çevrimdışı moda geçiyor. Kart başına limitle oyun oynatmaya devam ediyor, bağlantı gelince biriken kayıtları gönderiyor. #### Sahada güvenilirlik - **Görev izleme (Task Watchdog):** Bütün görevler watchdog'a kayıtlı. Bir görev takılırsa cihaz kendini güvenli şekilde yeniden başlatıyor. - **Üç katmanlı çökme tanılama:** 1. Her görev, o an hangi adımda olduğunu ve zaman damgasını RTC belleğine yazıyor (heartbeat). 2. Çökme anındaki seri port çıktısı bir kanca (hook) ile RTC belleğinde yakalanıyor. 3. ESP-IDF core dump ayrı bir flash bölümüne kaydediliyor. Bu veriler yeniden başlatmadan sonra da korunuyor ve açılışta log sunucusuna gönderiliyor. Böylece sahadaki bir çökmenin hangi görevde ve hangi adımda olduğu uzaktan görülebiliyor. - **Jitter ile yük dağıtımı:** Aynı mekânda onlarca cihaz aynı erişim noktasına bağlı. Yeniden bağlanma, Wi-Fi radyosunu sıfırlama ve güncelleme denemelerine rastgele gecikme eklendi. Böylece kesinti sonrası bütün cihazlar aynı saniyede saldırmıyor; erişim noktası ve sunucu tıkanmıyor. - **Wi-Fi sağlık servisi:** Bağlantı var görünüp MQTT kurulamıyorsa cihaz önce radyoyu sıfırlıyor, yeniden başlatmaya gerek kalmıyor. #### Güvenlik - **Zamana dayalı tek kullanımlık şifre (TOTP):** Mobil ödeme için ekranda gösterilen QR kod sunucu saatiyle senkronize ve kısa süreli geçerli; fotoğrafı çekilse bile bir süre sonra geçersiz oluyor. - **Kart güvenliği:** Kartlarda varsayılan anahtarlar yerine projeye özel anahtarlar kullanılıyor; kartlar sunucu tarafında ayrıca doğrulanıyor. - **Token tabanlı yetkilendirme:** Sunucuya erişim kısa ömürlü token'larla yapılıyor. #### Uzaktan güncelleme (OTA) - Flash belleği iki uygulama bölümüyle (A/B) ayrıldı; yeni yazılım yedek bölüme yazılıyor, sorun olursa cihaz eski sürümle açılabiliyor. - Güncelleme MQTT komutuyla başlıyor. Cihazlar rastgele gecikmeyle sırayla indiriyor; indirme sırasında flash'a yazma çakışmasın diye diğer görevler askıya alınıyor. - Nextion ekranın arayüz dosyası (TFT) da uzaktan güncellenebiliyor; ekran sürümü açılışta kontrol ediliyor. #### Benim katkılarım - Ödeme akışları, MQTT konu yapısı ve ekran sayfaları - TOTP ile QR ödeme, çevrimdışı veri saklama ve sonradan gönderme - E-bilet modülü: bilet sayma, cüzdana aktarma, kuyruk tabanlı kayıt ve gönderim - Uzaktan yazılım ve ekran güncellemesi, sürüm kontrolü - Watchdog hataları, core dump entegrasyonu, yeniden bağlanma ve jitter iyileştirmeleri - Bağlantı kesildiğinde yeniden başlatma yerine çalışmaya devam eden çevrimdışı mod - E-bilet kartının şematik, PCB, BOM ve Gerber çıktıları #### Teknolojiler ESP32 · FreeRTOS · C/C++ (Arduino framework) · PlatformIO · MQTT (AsyncMqttClient) · REST/HTTP · ArduinoJson · SPIFFS · ESP-IDF OTA ve core dump · MFRC522 RFID · Nextion HMI · WS2812B (NeoPixelBus) ### Askeri Batarya Yönetim Sistemi ve Batarya Paketi URL: https://emregozkaya.com/projeler/military-bms/ ASPİLSAN Enerji · Elektronik tasarım mühendisi · 2023 – 2024 Tags: BMS, MIL-STD-461, MIL-STD-810, CAN, Altium Designer, 8 katman PCB > Bu bir savunma projesidir; burada yalnızca kamuya açık, genel düzeydeki bilgiler yer alıyor. #### Özet ASPİLSAN Enerji’de, ASELSAN’ın **DERİNGÖZ** projesi için Batarya Yönetim Sistemi (BMS) ve batarya paketinin geliştirilmesinde görev aldım. #### Neler yaptım? - **8 katmana kadar** BMS kartları tasarladım. Kartlar hücre izleme, hücre dengeleme, koruma fonksiyonları ve **CAN** haberleşmesini kapsıyor. - **MIL-STD-461** (EMI/EMC) ve **MIL-STD-810** (çevresel) kalifikasyon testlerini planladım ve yürüttüm. - Testlerde ortaya çıkan bulguları **layout**, **filtreleme** ve **ekranlama** revizyonlarıyla kapattım. - Doğrulama ve test dokümantasyonunu hazırladım. #### Öncesi: aday mühendislik dönemi Mart–Eylül 2023 arasında yerli ve hazır (COTS) BMS çözümlerini inceleyip karşılaştırdım, Altium Designer ile çok katmanlı PCB tasarımlarında yer aldım. ### PSO ile Bulanık-PI Kontrollü 48 V Boost Dönüştürücü URL: https://emregozkaya.com/projeler/pso-fuzzy-boost/ Bursa Uludağ Üniversitesi · Yüksek lisans araştırması, ortak yazar · 2024 – 2026 Tags: Güç elektroniği, Bulanık mantık, PSO, PI kontrol, DC-DC #### Özet Yüksek lisans çalışmam kapsamında **48 V senkron boost dönüştürücü** için bir kontrol yaklaşımı üzerinde çalıştık. Yöntemde bulanık mantık denetleyicinin **üyelik fonksiyonu sınırları** ile **PI kazançları**, doğadan esinlenen **parçacık sürü optimizasyonu (PSO)** ile birlikte ayarlanıyor. #### Yayın T. Karadağ, **E. Gözkaya**, A. Başgümüş, M. Namdar, “Bio-Inspired PSO Optimization of Fuzzy Membership Boundaries and PI Gains for a 48 V Synchronous Boost Converter”, *Biomimetics*, 11(9), 656, 2026. (SCIE, Q1) — `doi:10.3390/biomimetics11090656` ### UMAKİT Elektrikli Araç Elektroniği URL: https://emregozkaya.com/projeler/umakit-ev/ UMAKİT · Elektronik takım lideri · 2020 – 2023 Tags: STM32, BLDC sürücü, BMS, Yakıt hücresi, KiCad, LTspice #### Özet 2020–2023 yılları arasında Bursa Uludağ Üniversitesi’nin elektrikli araç takımı **UMAKİT**’te yer aldım; 2021–2022 sezonunda takımın **elektronik ekibini yönettim**. #### Ekip olarak tasarladığımız kartlar - **Batarya Yönetim Sistemi (BMS)** - **Yakıt hücresi kontrolcüsü** (hidrojenli araç kategorisi için) - **3 fazlı BLDC motor sürücüsü** - **Boost dönüştürücü** Tasarımlarda KiCad ve Altium Designer (4 katmana kadar), simülasyon için LTspice, gömülü tarafta STM32 kullandık. #### Ödüller (2022) - **TÜBİTAK Efficiency Challenge, Hidromobil:** Performans birinciliği ve Özel Kurul Ödülü - **Shell Eco-marathon Avrupa ve Afrika:** Teknik İnovasyon 2.si, Güvenlik 2.si, Verimlilik 6.sı