Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: airman00 on February 28, 2008, 10:26:00 PM

Title: Book Detector Circuit
Post by: airman00 on February 28, 2008, 10:26:00 PM
I'm sure you have all heard of the trick in movies, where someone goes into a hidden room , which can only be opened by pulling out the correct book from a bookshelf.

I decided to change this movie cliche a bit. I took a sharp IR sensor and mounted on a bookshelf. It measured the distance to any book that was pulled out, and checked to see if that was the "key" book. After getting it to work with one book pulled out. I made it a combination of books. It has to be 7-9-5 in that order, any other books are ignored. It resets after 15 seconds. I made a video and it is currently processing on YouTube so i'll post it here , once its done processing( probably when I wake up it will be done)

Right now the code to activate a buzzer.
Pull book 7 out
push 7 in
pull 9 out
push 9 in
pull out 5
KEY SOLVED- buzzer rings

,Eric



Title: Re: Book Detector Circuit
Post by: airman00 on February 28, 2008, 10:49:08 PM
here it is

[youtube]tt6SJHbgCqQ[/youtube]

Keep an eye on the LCD, it shows which book is selected on it. Either 7, 9, or 5

Listen to the buzzer after the combination 7-9-5 is done

Keep in mind this shot is without any editing whatsover, first shot
Title: Re: Book Detector Circuit
Post by: hazzer123 on February 29, 2008, 01:39:38 AM
Thats a really awesome idea, very original :D

It would be good if you could reset the password. eg Once you entered the password correctly, you then move 3 more books, and the password is reset to that.

How did the sensor sense which book it was? Did you pre program the kind of sensor values book 5 would give ect? Or does it look for relative distances? (ie if 7,9,5 works, would 6,8,4?)

Nice
Title: Re: Book Detector Circuit
Post by: airman00 on February 29, 2008, 06:15:38 AM
6-8-4 does not work


It is preprogrammed to teh distance values it gets for each book
i'll make some documentation today
Title: Re: Book Detector Circuit
Post by: airman00 on February 29, 2008, 03:05:04 PM
I made a CAD of it


(http://i273.photobucket.com/albums/jj202/erobot/My%20Robots%20and%20other%20Cool%20Stuff/Electronic_Book_Combination.jpg)


As you can see the Sharp IR sensor just takes a reading of the distance , when a book is pulled out the microcontroller checks to see what book is in what distance range. Then its just a regular electronic lock program
Title: Re: Book Detector Circuit
Post by: Trumpkin on February 29, 2008, 03:25:59 PM
awsome idea!