Touch Sensor "Raw" value

Discussion specific to the intelligent brick, sensors, motors, and more.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Touch Sensor "Raw" value

Post by mattallen37 »

jojoguy14 wrote:So, basically, what everyone's is saying is that...the touch sensor can NOT be used as a pressure sensor as it is analog?

jojoguy10

P.S. Thanks for the fast responses! I think this made the high score for most posts during a short amount of time!
The NXT touch sensor is not a variable sensor. It is either pressed, or not pressed. The RCX touch sensor IS a variable sensor. It changes values based on the amount of pressure.
nxtreme wrote:
jojoguy14 wrote:the touch sensor can NOT be used as a pressure sensor as it is analog?
Digital, actually. Analog is more like the light sensor.
Actually, a touch sensor IS an analog sensor, even if it only has two states (like the NXT Touch sensor, but NOT like the RCX touch sensor). The light sensor and sound sensor are also analog. Sure, it could also be considered digital (as in boolean), but normally we use the term "digital" to refer to an I2C sensor or UART.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Post by nxtreme »

mattallen37 wrote:Actually, a touch sensor IS an analog sensor, even if it only has two states (like the NXT Touch sensor, but NOT like the RCX touch sensor). The light sensor and sound sensor are also analog. Sure, it could also be considered digital (as in boolean), but normally we use the term "digital" to refer to an I2C sensor or UART.
Ok, so we can define it in two ways :).
  • It's digital because it's either open or closed, i.e. boolean.
    It's analog because it's not digital.
Analog would probably be the more correct term, but digital is more... memorable? for me :lol:.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Touch Sensor "Raw" value

Post by HaWe »

I personally would strictly avoid usinge "digital" referring to touch sensors.

The sensor states of a light or a temperature sensor (configured as analog sensors) are analog, are passed through the 10 bit A/D , and are interpreted as 10 bit numerical values (0...1023).

The sensor state of a touch sensor (configured as an analog sensor) is analog too, is passed through the 10 bit A/D , and is interpreted as a 10 bit numerical value (0...1023).

The sensor state of a touch sensor (configured as a touch sensor) is analog again, is passed through the 10 bit A/D, and is interpreted as a boolean value
(0=FALSE=open= 0 Siemens
vs.
1=TRUE=closed= 0 Ohm ).
There is a threshold in between beyond which the "open" and "closed" states are distinguished from each other (maybe 30 or 50 Ohm or whatever).


Neither of all are digital sensors.
Last edited by HaWe on 26 Feb 2011, 14:49, edited 2 times in total.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Touch Sensor "Raw" value

Post by mattallen37 »

doc-helmut wrote:...Neither of all are digital sensors.
No, but in boolean logic, it could be considered a digital value. Because a 100% ideal switch only has two states, it can be called a digital sensor. It is an accepted term, but I would discourage it's use.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Touch Sensor "Raw" value

Post by HaWe »

in Boolean algebra I don't recall that I ever had heard or read the term "digital" or "digital value"... :?
AFAIR there are defined only elements of boolean sets like { 0, 1} or {FALSE, TRUE} (or Power Sets of those sets), equipped with two binary operations called "and" and "or" :geek:
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Post by nxtreme »

Oh fine then, I surrender Image. I know the correct term isn't digital, it's just an easier way to think of it. Sorry to start a war :P.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Touch Sensor "Raw" value

Post by HaWe »

no war, just an explanation.
Correct thinking starts with correct lingustic terms (if you want to read more about it: read Benjamin Lee Whorf: "Language, Thought, and Reality", IIRC)
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Post by nxtreme »

Ok. And yes, I do agree with you that "Correct thinking starts with correct lingustic terms". Thanks!
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Touch Sensor "Raw" value

Post by HaWe »

Welcome.
Although I must admit that in English my terms are often not that correct :P
(and it's the RING to rule them all...: the Lord of the Rings. But the KING has returned and the Lord of the Rings finally been destroyed.
The trilogy in one line ;) )
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Post by nxtreme »

doc-helmut wrote:Although I must admit that in English my terms are often not that correct :P
(and it's the RING to rule them all...: the Lord of the Rings. But the KING has returned and the Lord of the Rings finally been destroyed.
The trilogy in one line ;) )
Well, the best forum is the one that has a big mix of all people from all places! I know it's the Ring, and I'm not talking about Aragorn when I mention the King... :)
This thread is going OT... :o
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests