Professional Documents
Culture Documents
ActrosLoggingTruck Settings 2
ActrosLoggingTruck Settings 2
//
************************************************************************************************
********************* */
// Choose the board version
//#define PROTOTYPE_36 // 36 or 30 pin board (do not uncomment it or it will cause
boot issues!)
//
----------------------------------------------------------------------------------------------------------------
-----
// Choose the receiver communication mode (never uncomment more than one! If all
commented out = classic PWM RC signal communication)--
// SBUS communication --------
#define SBUS_COMMUNICATION // control signals are coming in via the SBUS
interface (comment it out for classic RC signals)
boolean sbusInverted = true; // false = wired to NPN transistor signal inverter or
uninverted SBUS signal (for example from "Micro RC" receiver)
// Choose the motor idle sound (uncomment the one you want) --------
volatile int idleVolumePercentage = 50; // Adjust the idle volume (usually = 100%,
more also working, depending on sound, 50 - 60% if additional diesel knock sound is
used)
volatile int engineIdleVolumePercentage = 100; // the engine volume will be throttle
dependent (usually = 40%, never more than 100%!)
//#include "sounds/20Hz.h" // 20Hz test tone
//#include "sounds/100Hz.h" // 100Hz test tone
//#include "sounds/1000Hz.h" // 1000Hz test tone
//#include "sounds/UnionPacific2002Idle.h" // Union Pacific 2002 SD70M Locomotive
with 16 cylinder Diesel (set volume to 60%)
//#include "sounds/ScaniaV8Idle.h" // Scania V8 (bad quality)
//#include "sounds/ScaniaR500V8Idle.h" // Scania R500 V8
//#include "sounds/ScaniaV8IdleNew.h" // Scania V8 (Volume 100%, 35%, Turbo
70%, 10%, Wastegate 50%, 1%, CEP 100, TSM 2)
//#include "sounds/ScaniaV8IdleNewWarm.h" // Scania V8 (Volume 55%, 40%,
Turbo 70%, 10%, Wastegate 200%, 1%, CEP 100, TSM 3, Knock volume 600, 10%,
interval 1, 150) the best one!
//#include "sounds/ScaniaR620V8Idle2.h" // Scania R620 V8 (a bit thin, add about
80% turbo volume)
//#include "sounds/ScaniaR620Uphill.h" // Scania R620 V8 going uphill, typical knock
- knock under load
//#include "sounds/ScaniaR620Uphill2.h" // Scania R620 V8 going uphill, typical
knock - knock under load (this one is better, Volume 180%, 20%, Turbo 60%, 10%,
Wastegate 50%, 1%, CEP 100, TSM 2)
//#include "sounds/SCANIAV850TonIdle.h" // 50 ton SCANIA going uphill @ very low
rpm (Volume 60%, 40%, Turbo 40%, 10, Wastegate 100%, 1%, CEP 100, TSM 2,
Knock volume 600, 0%, interval 4, 50)
//#include "sounds/UralV8Idle.h" // Ural 4320 V8
//#include "sounds/HumveeDieselIdle.h" // "Humvvee" (Hummer H1) V8 Diesel
//#include "sounds/HgP408Idle.h" // HG P408 Humvee Diesel (only for small
speakers)
//#include "sounds/DetroitDieselIdle.h" // Detroit Diesel generic Truck (Volume 80%,
30%, Turbo 60%, 10%, Wastegate 50%, 1%, CEP 100, TSM 3)
//#include "sounds/DetroitDieselStraightPipeIdle.h" // Detroit Diesel Truck with
straight pipes (use multiplier = 2, acc = 2, dec = 1)
//#include "sounds/DetroitDieselBassBoost15db.h" // Detroit Diesel Truck with
straight pipes. Bass 100-200Hz + 15dB
//#include "sounds/DetroitDieselBassBoost7db.h" // Detroit Diesel Truck with straight
pipes. Bass 100-200Hz + 7dB (use it for King Hauler, Volume 60%, 40%, Turbo 60%,
10, Wastegate 100%, 1%, CEP 100, TSM 3, Knock volume 400, 10%, interval 2, 50)
//#include "sounds/DetroitDieselPeterbiltCabover.h" // Detroit Diesel Peterbilt
cabover truck
//#include "sounds/DetroitDieselKenworth.h" // Detroit Diesel Kenworth truck (use
Ural V8 Start & 100% turbo)
//#include "sounds/DetroitDieselJohnDeereTractor.h" // Detroit Diesel John Deere
tractor
//#include "sounds/InternationalDT-466Idle.h" // International DT-466 idle (Volume
100%, 35%, Turbo 60%, 10%, Wastegate 30%, 1%, CEP 100, TSM 3)
//#include "sounds/Cat3406BIdle.h" // Caterpillar 3406B idle (Volume 100%, 35%,
Turbo 70%, 10%, Wastegate 30%, 1%, CEP 100, TSM 3)
//#include "sounds/M35Idle.h" // AM General M35 Truck
//#include "sounds/M35BassBoost7db.h" // AM General M35 Truck Bass 100-200Hz
+ 7dB (Volume 100%, 35%, Turbo 100%, 30%)
//#include "sounds/UnimogU1000TurboFullLoad.h" // Unimog U1000 Turbo (Volume
100%, 35%, Turbo 50%, 10%, Wastegate 150%, 1%)
//#include "sounds/ActrosV8Idle.h" // MB Actros V8 Truck Idle (very noisy)
//#include "sounds/ActrosLoggingTruckIdling.h" // Actros logging truck (Volume 80%,
40%, Turbo 60%, 10, Wastegate 100%, 1%, CEP 100, TSM 2, Knock volume 200,
10%, interval 4, 50)
#include "sounds/ActrosLoggingTruckIdling2.h" // Actros logging truck (Volume 50%,
100%, Turbo 10%, 10, Wastegate 100%, 1%, CEP 100, TSM 3, Knock volume 500,
10%, interval 2, 50, ActrosLoggingTruckDieselKnock3.h)
//#include "sounds/KenworthW900Idle.h" // Kenworth W900 Truck Idle (Volume 80%,
30%, Turbo 60%, 10%, Wastegate 50%, 1%, CEP 100, TSM 2)
//#include "sounds/MackIdle.h" // Mack Truck Idle (very thin)
//#include "sounds/Tatra813Idle.h" // Tatra 813 8x8 air cooled V12 Diesel (Volume
80%, 50%, Turbo 0%, 0, Fan 250, 0, 250, No Wastegate, CEP 100, TSM 2, Knock
volume 500, 0%, interval 2, 50)
//#include "sounds/DefenderV8Idle.h" // Land Rover Defender V8 (Volume 100%,
40%, Turbo 0%, 0, Fan 0, 0, 250, No Wastegate, CEP 100, TSM 2, Knock volume
500, 0%, interval 2, 50, automatic = true)
//#include "sounds/Mustang68Idle.h" // Ford Mustang 1968
//#include "sounds/DodgeChallenger70Idle.h" // 1970 Dodge Challenger
//#include "sounds/MgBGtV8Idle.h" // MG B GT V8
//#include "sounds/LaFerrariIdle.h" // Ferrari "LaFerrari"
//#include "sounds/chevyNovaV8Idle.h" // Chevy Nova Coupe 1975
//#include "sounds/V8TrophyTruckIdle.h" // V8 Trophy Truck
//#include "sounds/JaguarXjsHeIdle.h" // Jaguar XJS HE (bad quality)
//#include "sounds/VWBeetleIdle.h" // VW Beetle or Bug
//#include "sounds/HarleyDavidsonFXSBIdle.h" // Harley Davidson FXSB (Volume
60%, 40%, Turbo 0%, 10, no Wastegate 100%, CEP 300, TSM 4, Knock volume
300, 10%, interval 2, 50)
//#include "sounds/v8soundtestidle.h" // Wombii's Scania V8 Fire Truck (Volume
90%, 50%, Turbo 20%, 10, Wastegate 90%, 1%, CEP 100, TSM 3, Knock volume
350, 15%, interval 4, 10, ScaniaDieselKnock.h)
//#include "sounds/JeepGrandCherokeeTrackhawkIdle.h" // Jeep Grand Cherokee
Trackhawk idle (speaker with good bass required)
//#include "sounds/DAFXFIdle.h" // DAF XF truck
// Choose the motor revving sound (uncomment the one you want) --------
//#define REV_SOUND // uncomment this, if you want to use the separate, optional
rev sound
volatile int revVolumePercentage = 150; // Adjust the idle volume (usually = 100%,
more also working, depending on sound)
volatile int engineRevVolumePercentage = 30; // the engine volume will be throttle
dependent (usually = 40%, never more than 100%!)
const uint8_t revSwitchPoint = 250; // The rev sound is played instead of the idle
sound above this point
#ifdef REV_SOUND
//#include "sounds/ScaniaV8Rev.h" // Scania V8
#include "sounds/ScaniaV8Rev2.h" // Scania V8
#endif
// Choose the Diesel (or whatever) ignition "knock" sound (played in the fixed
sampling rate interrupt, uncomment the one you want,
// play around here, the results are amazing, if you hit the right combination with the
idle sound!) --------
volatile int dieselKnockVolumePercentage = 500; // Adjust the Diesel knock volume
(usually = 200 - 600%)
volatile int dieselKnockIdleVolumePercentage = 10; // Diesel knock volume while
idling (usually = 20%)
volatile int dieselKnockInterval = 2; // Idle sample length divided by this number (1 -
20, depending on sound files)
volatile int dieselKnockStartPoint = 10; // Volume will raise above this point ( usually
0, for "open pipe" exhaust about 250)
//#define ADAPTIVE_KNOCK_VOLUME // Experimental setting: only the first knock
per engine cycle will be full volume!
volatile int dieselKnockAdaptiveVolumePercentage = 50; // Adjust the Diesel knock
volume for the non-first knocks per engine cycle (usually = 50%)
//#include "sounds/DieselKnockDummy.h" // If you don't want Diesel knock sound
//#include "sounds/ScaniaR620UphillKnock.h" // Scania R620 V8 (use it for King
Hauler)
//#include "sounds/LanzBulldogDieselKnock.h" // Lanz Bulldog tractor (Interval = 2)
//#include "sounds/ScaniaDieselKnock.h" // Strong Scania V8 diesel knock while
highway race against Volvo truck (500%, 10%, Interval = 2 possible, for slow running
V8 engines)
//#include "sounds/ScaniaDieselKnock2.h" // Strong, short Scania V8 diesel knock
while highway race against Volvo truck (Interval = 4 possible, for faster running
engines)
//#include "sounds/ScaniaR730V8DieselKnockShort.h" // Hard knock (400%, 0%,
Interval = up to 8 possible, for small engines)
//#include "sounds/ScaniaR730V8DieselKnockSlow.h" // Soft knock (500%, 10%,
Interval = up to 4 possible, for meduim engines and Scania open pipe (interval = 1))
//#include "sounds/SCANIAV850TonKnock.h" // 50 ton SCANIA knock
//#include "sounds/ActrosLoggingTruckDieselKnock.h" // Actros logging truck
//#include "sounds/ActrosLoggingTruckDieselKnock2.h" // Actros logging truck
#include "sounds/ActrosLoggingTruckDieselKnock3.h" // Actros logging truck (same
as idle, for testing)
//#include "sounds/Tatra813Knock.h" // Tatra 813 8x8 air cooled V12 Diesel
//#include "sounds/Tatra813Roar.h" // Tatra 813 8x8 air cooled V12 Diesel (use this
for 813)
//#include "sounds/Tatra813RoarShort.h" // Tatra 813 8x8 air cooled V12 Diesel
//#include "sounds/HarleyDavidsonFXSBKnock.h" // Harley Davidson FXSB knock
//#include "sounds/DefenderV8Knock.h" // Land Rover Defender V8 knock
(experimental, don't use it)
//#include "sounds/DefenderV8Knock2.h" // Land Rover Defender V8 knock
(experimental, don't use it)
//#include "sounds/DefenderV8Knock3.h" // Land Rover Defender V8 knock
(experimental, don't use it)
//#include "sounds/DefenderV8Knock4.h" // Land Rover Defender V8 knock
(experimental, don't use it)
//#include "sounds/V8TrophyTruckKnock.h" // V8 Trophy Truck
//#include "sounds/chevyNovaV8Knock.h" // Chevy Nova Coupe 1975
//#include "sounds/JeepGrandCherokeeTrackhawkKnock.h" // Jeep Grand Cherokee
Trackhawk knock
//#include "sounds/TrackhawkKnock.h" // Jeep Grand Cherokee Trackhawk knock,
the more aggressive one!
//#include "sounds/DAFXFKnock.h" // DAF XF truck
// Adjust the additional turbo sound (set "turboVolumePercentage" to "0", if you don't
want it) --------
volatile int turboVolumePercentage = 10; // Adjust the turbo volume (usually = 70%)
volatile int turboIdleVolumePercentage = 10; // the turbo volume will be engine rpm
dependent (usually = 10%)
#include "sounds/TurboWhistle.h" // Turbo sound, playing in parallel with engine
sound!
// Adjust the additional cooling fan sound (set "fanVolumePercentage" to "0", if you
don't want it) --------
volatile int fanVolumePercentage = 0; // Adjust the fan volume (250% for Tatra 813,
else 0%)
volatile int fanIdleVolumePercentage = 0; // the fan volume will be engine rpm
dependent (usually = 10%)
volatile int fanStartPoint = 250; // Volume will raise above this point (250 for Tatra
813)
//#include "sounds/Tatra813Fan.h" // Tatra 813 8x8 V12 Diesel Cooling Fan
#include "sounds/Tatra813FanNew.h" // Tatra 813 8x8 V12 Diesel Cooling Fan (use
this)
//#include "sounds/Tatra813FanNewSlow.h" // Tatra 813 8x8 V12 Diesel Cooling Fan
// Choose the horn sound (uncomment the one you want) --------
volatile int hornVolumePercentage = 100; // Adjust the horn volume (usually = 100%)
//#include "sounds/TrainHorn.h" // American train horn
//#include "sounds/HornblastersOUTLAWTrainHornLong.h" // Hornblasters outlaw
train horn long
//#include "sounds/HornblastersOUTLAWTrainHornShort.h" // Hornblasters outlaw
train horn short
#include "sounds/ManTgeHorn.h" // MAN TGE truck horn (King Hauler)
//#include "sounds/westinghouseHorn.h" // American truck horn (the best)
//#include "sounds/FireTruckAirHorn.h" // US fire truck air horn
//#include "sounds/CarHorn.h" // A boring car horn
//#include "sounds/TruckHorn.h" // A generic truck horn
//#include "sounds/PeterbiltHorn.h" // A Peterbilt truck horn
//#include "sounds/2ToneTruckHorn.h" // A 2 tone truck horn
// Choose the siren / additional horn sound (uncomment the one you want) --------
volatile int sirenVolumePercentage = 100; // Adjust the siren volume (usually =
100%)
#include "sounds/sirenDummy.h" // If you don't want siren sound
//#include "sounds/UsPoliceSiren.h" // US Police siren
//#include "sounds/FireTruckAirSiren.h" // US fire truck air siren (King Hauler)
//#include "sounds/FeuerwehrMartinshorn.h" // European Feuerwehr Martinshorn
//#include "sounds/IrishFireEngineHorn.h" // Irish fire truck horn
//#include "sounds/siren01norskere22.h" // Norwegian siren
//#include "sounds/PostAutoHorn.h" // The typical Swiss post bus horn
// Choose the air brake release sound (uncomment the one you want) --------
volatile int brakeVolumePercentage = 150; // Adjust the brake volume (usually =
200%)
//#include "sounds/AirBrakeDummy.h" // If you don't want air brake sound
//#include "sounds/TruckAirBrakes.h" // Short truck air brake sound
//#include "sounds/TruckAirBrakesLong.h" // Long truck air brake sound
#include "sounds/TruckAirBrakes2.h" // Another truck air brake sound
//#include "sounds/AirBrakeSqueak.h" // Squeaky air brake sound
// Choose the parking brake engaging sound (uncomment the one you want) --------
volatile int parkingBrakeVolumePercentage = 150; // Adjust the brake volume
(usually = 200%)
//#include "sounds/ParkingBrakeDummy.h" // If you don't want parking brake sound
#include "sounds/ParkingBrake.h" // Parking brake sound
// Choose the gear shifting sound (uncomment the one you want) --------
volatile int shiftingVolumePercentage = 200; // Adjust the shifting volume (usually =
200%)
//#include "sounds/AirShiftingDummy.h" // If you don't want pneumatic shifting sound
//#include "sounds/AirShifting.h" // Pneumatic shifting sound
#include "sounds/ClunkingGearShifting.h" // Manual clunking shifting sound
// Choose the additional "sound1" (uncomment the one you want) --------
volatile int sound1VolumePercentage = 100; // Adjust the sound1 volume (usually =
100%)
//#include "sounds/EMDLocomotiveBell.h" // American EMD locomotive bell
//#include "sounds/007JamesBond.h" // James Bond melody
//#include "sounds/M2Fire.h" // M2 salve
//#include "sounds/GlenCanyon.h" // Glen Canyon country song for truckers ;-)
#include "sounds/door.h" // opening and closing the door
// PWM ESC output signal range calibration (connect crawler type ESC to pin
33)-------------------------------------------
const int16_t escPulseSpan = 1000; // pulseZero +/- this value (> 500 = limited top
speed, about 1000 for King Hauler)
const uint8_t escRampTimeFirstGear = 20; // determines, how fast the acceleration
and deceleration happens (about 15 - 25, 20 for King Hauler)
const uint8_t escRampTimeSecondGear = 50; // 50 for King Hauler (this value is
always in use for automatic transmission, about 80)
const uint8_t escRampTimeThirdGear = 75; // 75 for King Hauler
const uint8_t escBrakeSteps = 30; // determines, how fast the ESC is able to brake
down (20 - 30, 30 for King Hauler)
const uint8_t escAccelerationSteps = 3; // determines, how fast the ESC is able to
accelerate (2 - 3, 3 for King Hauler)
// Clutch parameters
---------------------------------------------------------------------------------------------------
uint16_t clutchEngagingPoint = 100; // CEP. The "clutch" is engaging above this
point = engine rpm sound in synch with ESC power
// Engine parameters
----------------------------------------------------------------------------------------------------
//Activate for "engine on off" functionality in combination with "Micro RC" Receiver
from TheDIYGuy999. No Pulse Zero auto calibration in this case!!
const boolean engineManualOnOff = false;
// Engine RPM range (2 for big Diesels, 4 for fast running motors)
const uint32_t TOP_SPEED_MULTIPLIER = 3; // TSM. RPM multiplier: the bigger
the number, the larger the rev range, 2 - 4 is a good place to start. ESP32 will crash,
if > 5 @ 22'050Hz!
// Vehicle type
----------------------------------------------------------------------------------------------------
// #define CATERPILLAR_MODE // For Tanks, diggers, excavators etc. which use
dual throttle input on CH2 and CH3