hi all, i need help in bs2 :)
smoky
Posts: 19
hi,· Dear all experts.·u can address me as smoky, im very interested in basic stamp2 and i would like to learn more. Currently im really lost. Please help me.
Recently i just bought bs2 and a ltc1298 cn8·convertor and a sharp gp2d12 light sensor.
Now the problem is with the connection of them.
i want to connect them together in·a way such·that when·the light sensor senses its object, the convertor will convert·the raw vaule·in 8bits (0-255).
( different distance will give a different 8bits ).
And also·after i have the 8bits, how can i write a program whereby the light sensor senses it object at centain distance, the bs2 will know when to turrn. Example (%11111111) turn left.
Please pm me or reply me·asap,·thanks
I·will really appreciated all the help.
Thanks to all the experts.
·
Recently i just bought bs2 and a ltc1298 cn8·convertor and a sharp gp2d12 light sensor.
Now the problem is with the connection of them.
i want to connect them together in·a way such·that when·the light sensor senses its object, the convertor will convert·the raw vaule·in 8bits (0-255).
( different distance will give a different 8bits ).
And also·after i have the 8bits, how can i write a program whereby the light sensor senses it object at centain distance, the bs2 will know when to turrn. Example (%11111111) turn left.
Please pm me or reply me·asap,·thanks
I·will really appreciated all the help.
Thanks to all the experts.
·
Comments
As for your second question on how to turn at a certain distance, take a look at the IF statement in the Basic Stamp Syntax and Reference Manual.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen