• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Little light with Distance Captor

Status
Not open for further replies.

primobobi

New Member
Hi everyone,
this is my first post here, hope my thread will captive you :)

I m a beginner in electronic stuff and use to be "one day" a JAVA developper :p
I'm working on a small robot gadget i try to teach about distance and color.

I want a "base", placed in position A, this position is fixe.
My gadget, can move to the right and to the left from my captor.
First step :
- when the gadget go to the right of the captor, a BLUE light will turn ON.
- when the gadget go to the left of the captor, a REDlight will turn ON.

Second step : Include distance captor.
- when the gadget go to the right of the captor,
-- from a distance between 0cm and 20cm = light OFF
-- from a distance from 20cm and more = light ON

RobotPrimo.jpg

What kind of captor can i use in my "base" and my gadget to spread and get the signal to switch on/off the light ?

Thanks for you help !!
primobobi
 

Attachments

Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top