-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IR Sensor #14
Comments
The obvious choices for me to use for an is a TCRT5000 based sensor or LM393 IR sensor
I happen to already have a hand full of both of these |
There is one major difference between both of these sensors it is that the LM393 based sensor happens to also be capable of an analog output signal that when with the sensitivity of the receiving diode is controlled by the potentiometer, in this case, I am able to get the IR sensor at having a max trigger range of a roundabout 0 to 12 cm see here (video) for demo whereas the TCRT5000 based sensor would still work the purpose of the sensor of detecting if a door had opened/closed but with a smaller max and would in turn decrease some of the situations that ROMS could be useful in. demo (video) The videos in the paragraphs above this will give you a quick idea of what is happening with the sensors and the prototype/test setup I am using. In short to recap I am using the LM393 IR based sensor over the TCRT5000 based IR sensor due to the fact that it uses an LM393 (low voltage comparator) combined with a potentiometer (variable resistor) that allows to fine turn the output of the IR sensor.
So as for a start, it showed a value of about 1020. The value 1020 is the same as saying 5v It can be seen that there is a value inconsistency of +-1
This is great but I want to see If it is possible to get more performance out of my hardware, in this case, to increase the max distance from 3cm to some great value. There is only one thing I am able to change on the PCB
so for trying out all the values that this First is with the potentiometer all the way anticlockwise I get a pretty much-fixed output of 1020 the next is when the comparator is a value so low that the led turn on (this LED indicates whether the digital 1 or 0) so with all the online tutorials using a digital read this is as far they would be able to see as past this point but I have opted to use an analog read meaning that this LED is deceptive in reality should be ignored. there for this will work as a ADC
but there is the most interesting thing is when I orientate the potentiometer so it is not quite a digital one but almost it spazzes out. frantically jumps between the 1000 value and the 500 value but is still able to drop the value below 50 thus giving me values that I can work with when programming in #12 having this great range significantly opens up more possibilities for different mounting positions and locations for keeping an eye on entry/exit doors. |
This is sensor will be mounted on #20 rather than directly to the ROMS PCB this will be done via in internal headers VCC = 5V POWER the data out is that we care most about as this is what gives us the sensor data values
GITadded header pins for IR Sensor see #12 for the full programming development |
From an engineering view
This will be using the main sensor as a tripwire and well to detect movent within a room
So it will trigger the alert system protecting the private information
The text was updated successfully, but these errors were encountered: