how can I stop the mlx90614 to detect temperature? for example, I scanned myself near the MLX sensor and it get my temperature and I want that the temperature will stop scanning unless someone is near the sensor or next to me.
I tried hard to understand what you mean by that description. I don't understand it.
well I guess the only way is to switch off the power-supply of the sensor
you are the one that wants help. So there are several steps you should do. You are the one that wants help. To increase the probality that you will really get help you should provide much more information.
Writing what type of sensor is a mlx90614 . Providing a link to the datasheet of that sensor or module.
this is by far a tooooo unprecise description of what you mean. It sounds contradictory
either the second person is near to you or near to the sensor? or both? or even something else?
Makes no sense at all. If you stop scanning how should your program ever have any kind of condition to start scanning again??
I'm pretty sure your program shall react differently on different situations = measuring results but keep on scanning all the time.
So basically there are two ways to proceed in your project:
way 1: keep on posting always too short descriptions of what you really want. Always just invoking another asking back repeated 50 times frustrating you and frustrating your potential helpers time to fix your code 10 days = 240 hours or maybe never.
way 2: investing 2 hours of your time to write down a very detailed description of what your code shall do including re-editing your text a dozen times for saying it in a better and easier to understand way.
And then get precise suggestions how your code can be fixed. Time to fix your code 3 days = 72 hours.
You are free to choose which way makes more fun to you
as all the voluntary users here a free to choose how much and which user they will support
Hi sir, my concern is how can I return my program from the start? My MLX90614 which is an IR contactless sensor continues to scan temperature. My project is a contactless thermometer and it should detect temperature one after another, if there is nothing near the sensor it will not detect temperature. And I provided my code for someone to look at what is lacking in my code or needs fixing.
I guess you want to show respect by writing Hi "Sir".
Well saying "Sir" is not nescessary. If you really want to show respect
You take time to write an at least 10 sentences long description of the program's functionality that you want to have.
This is a tooo short description to really understand what functionality you want to have.
This doesn't help at all if the
wanted
functionality is unclear
what is so hard about writing down 10 sentences like
If a person comes closer to the sensor ......
if condition A then Z shall happen
if condition B then Y shall happen
if condition C then X shall happen
repeat / don't repeat "ABC" until condition "D" is true
etc.
How can I stop the mlx90614 to detect temperature? for example, I scanned myself near the MLX sensor and it get my temperature and I want that the temperature will stop scanning unless someone is near the sensor or next to me.
from looking at the code the TO has posted I guess next to sensor and next to i one and the same thing.
So reducing the if-condition to "next to the sensor" is sufficient.
To really know it the TO has to post a more precise description.
best regards Stefan