Answers.Body: <p>Multiply the output of the proximity sensor by -1.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-15T06:27:06.597Z
Answers.Text: Actually, using the Invert Motor (blue) block from the Advanced Palette before the motor would probably have the same effect. I just read about it The Art of Lego Mindstorms EV3 Programming by Terry Griffin. The Invert Motor block reverses the meaning of the Power parameter for the motor connected to the selected Port.
Answers.UserDisplayName: gurble
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-15T15:55:46.837Z
Answers.Text: Unfortunately, the Invert Motor block doesn't work with Move Steering or Move Tank blocks.
Answers.UserDisplayName: David Lechner
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-27T23:21:09.080Z
Answers.Text: Aha, use (data wire it) the math block to multiply the output of the proximity sensor by -1 then feed it back (data wire it) to the steering block. Appreciate your time.
Answers.UserDisplayName: gurble
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-27T15:43:13.993Z
Answers.LastActivityDate: 2017-11-27T15:43:13.993Z
Answers.UserDisplayName: David Lechner
Body: <p>I saw an program on the Lego Education page <a href="https://ev3-help-online.api.education.lego.com/Education/en-gb/page.html?Path=editor%2FUsingSensors_Infrared_Proximity.html" rel="nofollow noreferrer">which makes a Lego Mindstorms EV3 robot gradually slow down as it approaches a wall</a>. The info from the proximity sensor is used as the direct wire input of the Move Steering block, the nearer the robot to the wall, the slower the speed of the robot. </p>
  
  <p>The problem is that my infrared sensor is on the rear of my robot (track3r). I would like to make the input to the Move Steering Block negative so that my robot motor moves backwards (in reverse) using this program. How do I do this? I can't make the output of the proximity sensor negative... can I?</p>
  
Tags: <ev3><mindstorms><programming><sensor><motor>
Title: How to make Lego Mindstorms EV3 robot go in reverse when move steering input comes from proximity sensor
UserDisplayName: gurble
ThreadText: # How to make Lego Mindstorms EV3 robot go in reverse when move steering input comes from proximity sensor
  
  (Asked by: username_0 on 2017-11-27)
  
  I saw an program on the Lego Education page [which makes a Lego Mindstorms EV3 robot gradually slow down as it approaches a wall](https://ev3-help-online.api.education.lego.com/Education/en-gb/page.html?Path=editor%2FUsingSensors_Infrared_Proximity.html). The info from the proximity sensor is used as the direct wire input of the Move Steering block, the nearer the robot to the wall, the slower the speed of the robot.
  
  The problem is that my infrared sensor is on the rear of my robot (track3r). I would like to make the input to the Move Steering Block negative so that my robot motor moves backwards (in reverse) using this program. How do I do this? I can't make the output of the proximity sensor negative... can I?
  
  **Tags:** ev3, mindstorms, programming, sensor, motor
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-27. Score: 5 | Accepted answer
  
  Multiply the output of the proximity sensor by -1.
  
  > **Comments:**
  > **username_0**: Aha, use (data wire it) the math block to multiply the output of the proximity sensor by -1 then feed it back (data wire it) to the steering block. Appreciate your time.  
  > **username_0**: Actually, using the Invert Motor (blue) block from the Advanced Palette before the motor would probably have the same effect. I just read about it The Art of Lego Mindstorms EV3 Programming by Terry Griffin. The Invert Motor block reverses the meaning of the Power parameter for the motor connected to the selected Port.  
  > **username_1**: Unfortunately, the Invert Motor block doesn't work with Move Steering or Move Tank blocks.  
  
  ---
  
  