How embedded-systems-26-27/opdracht2-yv works
Melissa is a voice- or console-driven assistant: it accepts a user prompt, passes conversation state to an Ollama model, optionally invokes GPIO or temperature tools, then returns the response through matching output. A separate Streamlit dashboard reads the TC74 sensor and GPIO level, displays recent readings, and shares SQLite history with the assistant. The sampled source shows these runtime paths; model assets and deployment details are not mapped.
Main entry points: dashboard.py Live dashboard · main.py Assistant runtime · logic.py Tool orchestration · stt.py Input modes
Components 12
User interaction
- Input modes
src/stt.py - Response modes
src/tts.py
Assistant conversation
- Assistant runtime
src/main.py - Tool orchestration
src/logic.py
Device tools
- GPIO controls
src/plugins/gpioManager.py - Temperature reader
src/plugins/tempMonitor.py
Monitoring dashboard
- Live dashboard
src/dashboard.py - SQLite history
src/main.py
Other components
- User
- Ollama model
- GPIO pin 18
- TC74 sensor
Connections 15
- User → Input modes: provides input
- Input modes → Assistant runtime: returns prompt
src/main.py - Assistant runtime → Tool orchestration: requests response
src/main.py - Tool orchestration → Ollama model: sends messages
src/logic.py - Tool orchestration → GPIO controls: dispatches tools
src/logic.py - Tool orchestration → Temperature reader: dispatches tools
src/logic.py - GPIO controls → GPIO pin 18: reads and sets
src/plugins/gpioManager.py - Temperature reader → TC74 sensor: reads sensor
src/plugins/tempMonitor.py - Assistant runtime → Response modes: sends response
src/main.py - Response modes → User: presents response
- Assistant runtime → SQLite history: writes prompts
src/main.py - Live dashboard → TC74 sensor: reads sensor
src/dashboard.py - Live dashboard → GPIO pin 18: reads level
src/dashboard.py - Live dashboard → SQLite history: stores readings
src/dashboard.py - Live dashboard → SQLite history: reads latest prompt
src/dashboard.py