Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 13th May 2008, 04:29 AM   (permalink)
New Member
richardv2 is on a distinguished road
Default Robot line sensor question

I want to signal condition a phototransistor line sensor output to a digital input.

Although I am using the PIC16F8680 chip, the answer should be valid for most PIC chips. If not, please let me know.

I have designed, built and tested a bank of 8 IR Transmitter/ Phototransistor pairs.
They all return 1.2 to 4.2 volts at 3/8ths inch depending on a light or dark surface below the sensors.

I ultimately want an 8-bit digital pattern where the sensors might react like this when travelling over a black line.

00011000
00001000
00001100
00000100
meaning the robot is drifting off center.

Seems like I have several options:
Lets say I use Port B as an input port.

1. If I just run the sensor inputs to the port, it would seem that I would get what I want; zeros or ones.

2. Could I send the 1.2-4.2 volt signal through some kind of chip like an inverter to "clean up" the signal and only produce 0 or 1? I know an opamp could do this, but that seems like overkill.

3. How about an LED/resistor voltage divider to drop the 1.2 down to 0.7 to make sure I get a zero into the chip at low voltage??

4. I could use ADC, but it seems inefficient to convert the voltage into an 8 bit number just to turn it back into a one or zero.

So what would you do???
richardv2 is offline   Reply With Quote
Old 13th May 2008, 04:36 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

PS don't cross post
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 16th May 2008, 12:03 AM   (permalink)
New Member
richardv2 is on a distinguished road
Default

I must have missed the rule on cross-posting. I thought if it applied in more than one area, it was OK.

The link you gave me. I see nothing there that has anything to do with my question. (signal conditioning sensor inputs for PIC18F8680 microcontroller). Was there a specific place on this link I was supposed to look??
richardv2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
line and light tracking robot Polite3tol Electronic Projects Design/Ideas/Reviews 0 26th January 2008 01:24 AM
suggest me something that can upgrade line following robot fatal_error Robotics Chat 6 26th August 2007 02:38 PM
Line Follower Robot using Logic Gates Flipsyde412 Robotics Chat 3 4th May 2007 12:00 AM
Questions about a line following robot mattg2k4 Robotics Chat 14 30th March 2007 12:19 AM
Line Following Robot Omar.M Robotics Chat 21 19th March 2007 02:04 AM



All times are GMT. The time now is 04:49 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.