How revijiheoifh/robotcode works
This repository is a collection of Raspberry Pi utilities rather than one integrated application: it provides motor control, motion sensing, TCP messaging, and speech/audio playback. The clearest runtime workflow is motor startup, configuration, and repeated stepping; the other utilities operate independently. Connections follow the sampled calls and imports. No README was provided, and no links between the separate utilities are established by the available evidence.
Main entry points: networkingLib.py TCP server and client · main.c Motor entry · motorManager.h Motor manager · motor.c Motor control
Components 14
Motion and motors
- Motor entry
motorDriving/main.c - Motor manager
motorDriving/motorManager.h - Motor control
motorDriving/motor.c - Motion sensor
accelCode/accel.cpp
TCP messaging
- Server entry
server.py - TCP server and client
network/networkingLib.py
Speech and audio
- Text-to-speech
tts/textToSpeech.py - PCM playback
audio/audio.c
Other components
- Operator
- pigpio GPIO
- MPU6050
- TCP peer
- espeak
- PCM input file
Connections 12
- Motor entry → pigpio GPIO: initializes
motorDriving/main.c - Motor entry → Motor manager: runs setup and update
motorDriving/main.c - Motor manager → Motor control: configures and controls
motorDriving/motorManager.h - Motor control → pigpio GPIO: drives pins
motorDriving/motor.c - Motion sensor → MPU6050: reads sensor data
accelCode/accel.cpp - Server entry → TCP server and client: starts server
server.py - Operator → TCP server and client: provides replies
network/networkingLib.py - TCP peer → TCP server and client: exchanges messages
network/networkingLib.py - Operator → Text-to-speech: supplies text
- Text-to-speech → espeak: runs speech
tts/textToSpeech.py - PCM input file → PCM playback: provides samples
audio/audio.c - PCM playback → pigpio GPIO: outputs PWM audio
audio/audio.c