TryLeave Left sensor reading at 800 and Right sensor reading at 200, then change Vehicle type from the opening cross-wired excitatory mode.
ObserveAt Gain factor 0.15, the opening left motor command is 30 and the right is 120; the result says Turns LEFT.
ExplainVehicle type chooses same-side or crossed sensor mapping; excitatory modes multiply by Gain factor, while inhibitory modes subtract that amount from base speed.
Technical boundaries. This rule assumes sensor readings can map directly to motor commands, which are rounded and clipped to 0–1023. A command difference below 5 is classified as straight; wheel motion, traction and vehicle position are not simulated.
Try the Motor-Speed Rule
Adjust the sensor readings and wiring configuration to see how different Braitenberg vehicles respond. Observe how the same sensor values produce completely different motor speeds and turning behavior depending on wiring topology and polarity.
html`<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #3498DB; margin-top: 0.5rem;"><p><strong>Vehicle:</strong> ${braitenberg_result.behavior}</p><p><strong>Stimulus stronger on:</strong> ${braitenberg_result.stimulus_side} side</p><p><strong>Left motor:</strong> ${braitenberg_result.left_motor} <strong>Right motor:</strong> ${braitenberg_result.right_motor}</p><p><strong>Turn direction:</strong> ${braitenberg_result.direction} (difference: ${braitenberg_result.diff})</p><p style="margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #dee2e6; font-size: 0.9em; color: #6c757d;">${braitenberg_result.stimulus_side==="left"? (braitenberg_result.behavior.includes("Fear") ?"Stimulus on left → vehicle turns RIGHT (away from stimulus)": braitenberg_result.behavior.includes("Aggression") ?"Stimulus on left → vehicle turns LEFT (toward stimulus at speed)": braitenberg_result.behavior.includes("Love") ?"Stimulus on left → vehicle turns LEFT (gently toward stimulus, slowing)":"Stimulus on left → vehicle turns RIGHT (wanders away)") : braitenberg_result.stimulus_side==="right"? (braitenberg_result.behavior.includes("Fear") ?"Stimulus on right → vehicle turns LEFT (away from stimulus)": braitenberg_result.behavior.includes("Aggression") ?"Stimulus on right → vehicle turns RIGHT (toward stimulus at speed)": braitenberg_result.behavior.includes("Love") ?"Stimulus on right → vehicle turns RIGHT (gently toward stimulus, slowing)":"Stimulus on right → vehicle turns LEFT (wanders away)") :"Equal stimulus on both sides → vehicle drives straight"}</p></div>`