Skip to content

Instantly share code, notes, and snippets.

View andrewflash's full-sized avatar

Andri Rahmadhani andrewflash

  • Ciamis, Indonesia
View GitHub Profile
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_3_imu_lib_nonblocking.ino
Last active September 18, 2026 11:36
Exilir AIoT Bootcamp Batch 1 - Chapter 3 - IMU - Dengan Library - Non-Blocking
/*
* MPU6500 data acquisition on ESP32-C5 using Adafruit Library
* -------------------------------------------------------------------
* Target board: DFRobot FireBeetle 2 ESP32-C5.
*
* Wiring (I2C):
* MPU6500 VCC -> 3V3
* MPU6500 GND -> GND
* MPU6500 SDA -> IO2
* MPU6500 SCL -> IO3
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_3_imu_lib_blocking.ino
Last active September 18, 2026 11:37
Exilir AIoT Bootcamp Batch 1 - Chapter 3 - IMU - Dengan Library - Blocking
/*
* MPU6500 data acquisition on ESP32-C5 using Adafruit Library
* -------------------------------------------------------------------
* Target board: DFRobot FireBeetle 2 ESP32-C5.
*
* Wiring (I2C):
* MPU6500 VCC -> 3V3
* MPU6500 GND -> GND
* MPU6500 SDA -> IO2
* MPU6500 SCL -> IO3
@andrewflash
andrewflash / aiot_hoc_indobot_sep_2026_day_2_inference_app.ino
Created September 15, 2026 11:58
AIOT Hands On Camp Indobot Sep 2026 - Day 2 - Inference App
/*
* Vibration Inference App - Arduino IDE version (with Buzzer Alert)
* ESP32 DevKit V1 + MPU6050 + Buzzer
*/
#include <Arduino.h>
#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
#include "DemoVibration_inferencing.h"
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_2_mqtt_sample.ino
Last active September 11, 2026 12:14
Exilir AIoT Bootcamp Batch 1 - Chapter 2 - MQTT Example
/*
* ============================================================
* MQTT WiFi Hands-On - Exilir ESP32-C5 / DFRobot C5
* ============================================================
*
* Hardware:
* Board : DFRobot FireBeetle 2 ESP32-C5
* WS2812B : GPIO27
* HW-508 Buzzer : GPIO23 (PASSIVE buzzer)
*
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_2_buzzer_passive.ino
Created September 10, 2026 22:22
Exilir AIoT Bootcamp Batch 1 - Chapter 2 - Buzzer Passive
/*
* Passive Buzzer HW-508 - ESP32-C5
* Arduino core for ESP32 v3.x
*
* Wiring:
* HW-508 "S" -> GPIO23
* HW-508 tengah -> tidak disambung (NC)
* HW-508 "-" -> GND
*
* HW-508 adalah passive buzzer.
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_3_imu_nolib.ino
Last active September 18, 2026 08:24
Exilir AIoT Bootcamp Batch 1 - Chapter 3 - IMU - Tanpa Library
/*
* MPU6500 full data acquisition on ESP32-C5 (Arduino-ESP32 core 3.x)
* -------------------------------------------------------------------
* Target board tested against: DFRobot FireBeetle 2 ESP32-C5.
*
* Reads every sensor channel the MPU6500 provides:
* - Accelerometer X/Y/Z (raw LSB + g)
* - Gyroscope X/Y/Z (raw LSB + deg/s)
* - Die temperature (raw LSB + degC)
* plus device identity (WHO_AM_I) and the factory self-test values.
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_2_buzzer_active.ino
Created September 10, 2026 17:27
Exilir AIoT Bootcamp Batch 1 - Chapter 2 - Buzzer Active
/*
* Buzzer berkedip - ESP32-C5 + modul KY-012 (buzzer AKTIF)
* Arduino core for ESP32 v3.x
*
* Wiring:
* KY-012 "S" -> GPIO23
* KY-012 tengah -> tidak disambung (NC)
* KY-012 "-" -> GND
*
* Buzzer aktif = punya osilator sendiri, cukup diberi HIGH/LOW (active-high).
@andrewflash
andrewflash / exilir_aiot_bootcamp_batch_1_chapter_2_blinking_led.ino
Created September 10, 2026 16:48
Exilir AIoT Bootcamp Batch 1 - Chapter 2 - Blinking LED
/*
* WS2812B Random RGB Color — ESP32-C5
* Data pin : GPIO27 (IO27)
* Library : Adafruit_NeoPixel (Library Manager -> "Adafruit NeoPixel")
* Board : ESP32C5 Dev Module (Arduino-ESP32 core 3.x ke atas)
*
* Setiap interval, tiap LED diberi warna acak.
* Ubah MODE_ALL_SAME menjadi true kalau ingin seluruh strip satu warna acak yang sama.
*/
@andrewflash
andrewflash / strategic_mtu_tuning.md
Created November 24, 2025 05:22
Strategic MTU Tuning Recommendations for WMN Applications
MTU Size Range Protocol Efficiency Contention/Blockage Cost Fragmentation Risk Suitable WMN Application
Very Small (<576 B) Very Low Minimal Zero Real-time control, VoIP, critical telemetry requiring guaranteed low latency.
Constrained Optimum (1300–1400 B) Medium-High Moderate Minimal (Aligned with PMTUD) Robust multi-hop backhaul, systems using VPN or cellular tunnels (e.g., 1360–1440 bytes).
Standard (1452–1500 B) High Moderate to High High (if path has tunnels/PPPoE)
@andrewflash
andrewflash / succ_prob_wsn_links.md
Created November 24, 2025 05:14
Success Probability of Links in WSN