How to program pain?

Let's have an Arduino and sensors. How to program Arduino what if one of these sensors out of Troy, he will feel pain? What is the feeling of pain?
March 20th 20 at 11:24
7 answers
March 20th 20 at 11:26
Pain is a subjective feeling
Can not programming and just think of arduin feels the pain
March 20th 20 at 11:28
Poorly made device capable of causing considerable pain to your developer.
And poorly made developer capable of causing much pain to their employers) - briann commented on March 20th 20 at 11:31
@arne.OReilly95, popular article about it. - Ryleigh.Howe commented on March 20th 20 at 11:34
March 20th 20 at 11:30
The pain is interpreting a signal of damage. Not sure what the use of that term makes sense in the context of the discussion of microelectronics. In any case, Arduino is too primitive a device to provide the proper level of self-diagnosis.

John Connor: Does it hurt when you get shot?
T-800: I sense injuries. The data could be called "pain".
March 20th 20 at 11:32
In the simplest sense, it is an alarm, i.e. in the case of the Arduino can control the adequacy of the data from the sensor or the fact that exchange\getting data goes. Ie hang the led and say there is a temperature sensor, if the data arrives in the beyond the numbers that the led lights up when data do not come again the led is lit, it will be easy to sense an indication of pain.
Not the type I it tore off some sort of sensor. Arduino checks if everything is in place if not, then he randomly begins to move to pull the servo drives. And while this type connect to the speakers and using some sort of API or bilitec and speech synthesis will be swearing. It's kind of fun. - isabelle83 commented on March 20th 20 at 11:35
@pascale.Treutel, so the issue is:
... will feel pain

"... will mimic the behavior of a living creature experiencing pain" - briann commented on March 20th 20 at 11:38
March 20th 20 at 11:34
Algorithms, algorithms, algorithms.
March 20th 20 at 11:36
Must be a variable "condition" Positive values - comfort, negative discomfort pain. 0 is indifference. The reaction you have to come up with themselves (plus the green led is minus - red).
March 20th 20 at 11:38
Good question, pain is the usual negative feedback. But the question is fundamentally wrong because it is not clear that the Board needs to do when he feels pain.

Find more questions by tags ArduinoCC++Drivers