
PRO
EzAng
USA
Asked
— Edited
Sharp IR On Car Robot, Table Top Robot Avoids Falling Off
anyone know how to write this code in java?
:loop
adc_wait(adc0,lower,160)
stop()
reverse(200,500)
sleep(50)
left(255,500)
stop()
forward()
sleep(50)
goto(loop)
now it starts, avoids falling off table, turns left, keeps going - cheers!
All figured out below, I solved it below with help of thetechguru
thanks
Related Hardware EZ-B v4
Related Control
Indoor Positioning System
the Sharp IR Analog Distance Sensor (6.99_ detects (avoids) objects in front of the robot, I have this, works well,
I going to try The Sharp Proximity Distance Sensor (9.98) to detect more of a depth proximity
I will receive this Sunday and test and let you know,
the proximity detector is designed for close contact and edge detection.
received the Sharp proximity sensor, did the test,
much better results, responds very different
Thanks
but you can get ones that have a pcb with the wiring all ready for you. Maybe like this from Amazon
This is the Sharp proximity sensor, not the distance sensor
works well for me
Here are 2 pics:
is enough for a table top car :-)
You always can get the Infrared Proximity Sensor Long Range - Sharp GP2Y0A02YK0F 19.95
the Description: Infrared proximity sensor made by Sharp. Part # GP2Y0A02YK0F has an analog output that varies from 2.8V at 15cm to 0.4V at 150cm with a supply voltage between 4.5 and 5.5VDC. The sensor has a Japanese Solderless Terminal (JST) Connector. We recommend purchasing the related pigtail below or soldering wires directly to the back of the module.
what script do you use ior edge detection?
I have one but it may not be as good as you , thanks
Sharp GP2Y0A51SK0F Analog Distance Sensor 2-15cm
https://www.pololu.com/product/2450
Similar to the GP2Y0A21YK0F but a shorter range 2-15cm.
Cliff detection:
not the Sharp Infrared Distance Sensor
PtP what script do you use for the sensors?
will test soon, hope they work