Skip to content

Instantly share code, notes, and snippets.

View clngrenes's full-sized avatar

Enes Cilingir clngrenes

View GitHub Profile
"""
NAVI — Voice Assistant on Pi
Text input → Claude API → ElevenLabs TTS → mpg123 → Bluetooth headphones
Usage:
python3 navi_voice.py
"""
import urllib.request
import json
#!/usr/bin/env python3
"""
ORIENTATIONSensor Bridge
Captures front + back webcam, runs YOLOv8n inference, reads VL53L0X ToF sensors
(or mock), fuses into zone threats, drives Arduino haptics via serial, and streams
live data to the dashboard via Socket.IO.
Usage:
python3 sensor_bridge.py [options]
#include <Wire.h>
#include <VL53L0X.h>
const int MOTOR_PIN = 9;
char buf[32];
int bufPos = 0;
VL53L0X sensor;
bool sensorOK = false;
#include <Wire.h>
#include <VL53L0X.h>
const int MOTOR_PIN = 9;
char buf[32];
int bufPos = 0;
VL53L0X sensor;
bool sensorOK = false;
filename=motor_vl53.ino
#include <Wire.h>
#include <VL53L0X.h>
const int MOTOR_PIN = 9;
char buf[32];
int bufPos = 0;
VL53L0X sensor;
bool sensorOK = false;

ORIENTATION — Project Process Documentation

Step-by-step documentation of how this project evolved.
Not sorted by date — sorted by sequence of events and decisions.


Step 1 — Problem Discovery & Initial Research

The team decided early on to work on the topic of orientation for people with limited senses. The project channel was originally named ai-orientation — reflecting that AI-driven sensing was part of the vision from day one. It was later renamed simply orientation as the scope clarified.

const int MOTOR_PIN = 9;
char buf[32];
int bufPos = 0;
void setup() {
Serial.begin(9600);
pinMode(MOTOR_PIN, OUTPUT);
// Startup: 2 pulses
digitalWrite(MOTOR_PIN, HIGH); delay(150);
digitalWrite(MOTOR_PIN, LOW); delay(150);
const int MOTOR_PIN = 9;
void setup() {
Serial.begin(9600);
pinMode(MOTOR_PIN, OUTPUT);
// Startup: 3 pulses = Arduino is alive
for (int i = 0; i < 3; i++) {
digitalWrite(MOTOR_PIN, HIGH); delay(200);
digitalWrite(MOTOR_PIN, LOW); delay(200);
}
/*
* ORIENTATION — Motor Controller (Arduino UNO)
* Pin 9 = Front motor (Gravity Vibration Module)
* Commands: ZONE 0 0-3, SYS 0
*/
const int MOTOR_PIN = 9;
void setup() {
Serial.begin(9600);
const int MOTOR_PIN = 9;
void setup() {
Serial.begin(9600);
pinMode(MOTOR_PIN, OUTPUT);
// Startup blink to confirm Arduino is alive
digitalWrite(MOTOR_PIN, HIGH); delay(300);
digitalWrite(MOTOR_PIN, LOW); delay(300);
digitalWrite(MOTOR_PIN, HIGH); delay(300);
digitalWrite(MOTOR_PIN, LOW);