I am new to this forum but have searched everywhere, internal and external to here, for the correct code to link up a 3 pin ping sensor to a servo. The hope is to get a servo to sweeping from 0-180 degrees in relation to the distance read by 3 pin ping sensors, which is part of a bigger project.
I have gained code to make the ping more accurate, which is attached, taking a median reading but the distance read out is just in symbols when I load it.
Can anyone give me help with this and ideally linking it to the sweeping servo, as it is driving me crazy??
sketch_new.ino (940 Bytes)