How thediyguy999/rc_engine_sound works
This is an Arduino-based RC engine sound generator. Its main workflow reads the receiver’s PWM throttle signal, derives engine RPM and simulated gear changes, then plays the selected engine sound through the audio output; startup sounds and engine on/off behavior are additional stages. Configuration lives in settings.h, while curves.h defines shifting behavior and the root-level headers provide sound data. The README documents these capabilities and hardware pins; the supplied source excerpts show sound-array formats, not the sketch’s implementation, so detailed call wiring is inferred only where documented.
Main entry points: Rc_Engine_Sound.ino Arduino Sketch · settings.h Sound Selection · curves.h Gear Shifting · ScaniaV8Idle.h Idle Sound Data
Components 14
RC Control
- Arduino Sketch
Rc_Engine_Sound.ino - Sound Settings
settings.h
Engine Simulation
- Throttle Mapping
Rc_Engine_Sound.ino - RPM Calculation
Rc_Engine_Sound.ino - Gear Shifting
curves.h - Engine State
Rc_Engine_Sound.ino
Sound Playback
- Sound Selection
settings.h - Idle Sound Data
ScaniaV8Idle.h - Startup Sound Data
ScaniaV8Start.h - Other Engine Sounds
DefenderV8Idle.h - Sound Playback
Rc_Engine_Sound.ino
Audio Hardware
- PWM Audio Output
Rc_Engine_Sound.ino
Other components
- RC Receiver
- Audio Amplifier
Connections 14
- RC Receiver → Arduino Sketch: sends PWM
- Arduino Sketch → Sound Settings: reads settings
- Arduino Sketch → Throttle Mapping: maps input
- Throttle Mapping → RPM Calculation: derives RPM
- Arduino Sketch → Gear Shifting: uses curves
- Arduino Sketch → Engine State: controls state
- Sound Settings → Sound Selection: selects sounds
- Arduino Sketch → Sound Selection: uses selection
- Sound Selection → Idle Sound Data: selects idle
- Sound Selection → Startup Sound Data: selects startup
- Sound Selection → Other Engine Sounds: selects engine
- Arduino Sketch → Sound Playback: controls playback
- Sound Playback → PWM Audio Output: outputs audio
- PWM Audio Output → Audio Amplifier: drives output