Distance sensor on a trailer to trigger solenoid in place of tiny GPS

I currently have an Arduino micro running a motor driver to switch a 12 volt pneumatic solenoid for an agricultural control application. The triggering is controlled by a Tiny GPS unit and I would like to use a ground sensor instead to control it instead. (GPS not accurate enough, +/- 2metres and looses signal in trees). Can anyone suggest what is the best type of sensor and how I set it up please?

Circuit and program available.

have a look at Pololu proximity-sensors-and-range-finders
also try a web search for Lidar

Need to measure distance travelled to trigger solenoid at a programed distance I.E. every 2.5metres. So was thinking it has to be some sort of wheel magnet sensor to go on a small trailer.

have a web search for arduino hall effect sensor
you would probably require an industrial grade sensor

Trying to incorporate a proximity sensor and use this to determine the distance travelled with several magnets mounted on a trailer wheel. Each magnet that passes would relate to a distance travelled by the trailer and once this exceeds distance wanted it would trigger solenoid and continue to trigger every set distance travelled. How do you integrate this into the Arduino micro?

Do you mean what parts should you buy, how to connect everything, how to write the code and how to do the mechanical set-up?

Yes & yes - I have a proximity sensor from another project which I believe is suitable (has to be agriculturally tough) E2B-M12KS04-M1-B1 | Omron E2B Series Inductive Barrel-Style Proximity Sensor, M12 x 1, 4 mm Detection, PNP Output, 12 → 24 V dc, IP67 | RS (rs-online.com)
Yes on connection to Arduino micro circuit and yes for the code. Mechanical setup is okay thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.