i'm nube! mega256
using newping 1.7. , using 2 hc-sr04 sonar sensors, offset 30degrees left , 30deg right. on front bumper of high end rc car. want create code block ( void) says, if left sensor , right sensor within deadband of around 10 cm or so, steering servo position =100 .(rc wheels straight) if left , right deviate out side of deadband, change servo position correct deadband. example if left sensor <50cm , right sensor >100 cm, decrement servo position . example2 if right sensor <50cm , left sensor >100 cm, increment servo position . test code built on example "newping15 sensors" using 2. looking code suggestions. thanks
using newping 1.7. , using 2 hc-sr04 sonar sensors, offset 30degrees left , 30deg right. on front bumper of high end rc car. want create code block ( void) says, if left sensor , right sensor within deadband of around 10 cm or so, steering servo position =100 .(rc wheels straight) if left , right deviate out side of deadband, change servo position correct deadband. example if left sensor <50cm , right sensor >100 cm, decrement servo position . example2 if right sensor <50cm , left sensor >100 cm, increment servo position . test code built on example "newping15 sensors" using 2. looking code suggestions. thanks
the way forum works write code, format using ide (ctrl-t), post using code tags (a button looks </>), , explain intended versus happens.
if want code written , not learning experience, should posting in gigs , collaborations section. people happy write code (once provide more details) may cost you.
as is, haven't explained enough sensors, servo, , time scale involved.
good luck!
if want code written , not learning experience, should posting in gigs , collaborations section. people happy write code (once provide more details) may cost you.
as is, haven't explained enough sensors, servo, , time scale involved.
good luck!
Arduino Forum > Using Arduino > Programming Questions > Dual sonar
arduino
Comments
Post a Comment