RAMPS 1.4 connection with proximity sensor

Hello everyone,

I need some help with the wiring of proximity sensor to RAMPS 1.4.
I'm working on a project using Arduino Mega + RAMPS 1.4 to control 4 stepper motors.
As i need to have a fixed distance between the robot and the obstacle, one motor must be controlled by the proximity sensor.

I was thinking of using this sensor Infrared Proximity Sensor Short Range - Sharp GP2Y0A41SK0F but i don't know how to connect it to the RAMPS or if it is even possible to connect to the RAMPS.

If anyone can help me with this, or can recommend other sensor to connect to the RAMPS, i would be very much grateful.

Thank you and have a nice day.

Hi.

First off, you would have much more chance to get a proper response by posting in a 3D-printer-forum.

99& of the members in here won't know what a RAMPS-board is. Fortunately I do know.

Yes, you can hook it up to the RAMPS-board. Use one of the three thermistor-inputs. They do have a 4k7 pull-up resistor on them, but that shouldn't affect the operation of the sharp sensor.

The schematic for RAMPS 1.4 is here

// Per.