1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Touch Sensor "Raw" value

Discussion specific to the intelligent brick, sensors, motors, and more.

Re: Touch Sensor "Raw" value

Postby mattallen37 » 26 Feb 2011, 03:53

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 ;)
User avatar
mattallen37
 
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA

Re: Touch Sensor "Raw" value

Postby nxtreme » 26 Feb 2011, 07:24

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.
User avatar
nxtreme
 
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Postby doc-helmut » 26 Feb 2011, 12:18

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 doc-helmut on 26 Feb 2011, 14:49, edited 2 times in total.
regards,
HaWe
±≠≈αγδεωΔΦΣ∫√∅∞
NXC CHESS for NXT: http://www.mindstormsforum.de/viewtopic.php?f=70&t=6790
indispensable for NXC + EV3-C: easy + trouble-free network & sensor+motor remote control for rs485, BT, USB!
User avatar
doc-helmut
 
Posts: 2425
Joined: 29 Sep 2010, 14:25

Re: Touch Sensor "Raw" value

Postby mattallen37 » 26 Feb 2011, 12:26

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 ;)
User avatar
mattallen37
 
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA

Re: Touch Sensor "Raw" value

Postby doc-helmut » 26 Feb 2011, 14:29

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:
regards,
HaWe
±≠≈αγδεωΔΦΣ∫√∅∞
NXC CHESS for NXT: http://www.mindstormsforum.de/viewtopic.php?f=70&t=6790
indispensable for NXC + EV3-C: easy + trouble-free network & sensor+motor remote control for rs485, BT, USB!
User avatar
doc-helmut
 
Posts: 2425
Joined: 29 Sep 2010, 14:25

Re: Touch Sensor "Raw" value

Postby nxtreme » 26 Feb 2011, 18:51

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.
User avatar
nxtreme
 
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Postby doc-helmut » 26 Feb 2011, 18:58

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)
regards,
HaWe
±≠≈αγδεωΔΦΣ∫√∅∞
NXC CHESS for NXT: http://www.mindstormsforum.de/viewtopic.php?f=70&t=6790
indispensable for NXC + EV3-C: easy + trouble-free network & sensor+motor remote control for rs485, BT, USB!
User avatar
doc-helmut
 
Posts: 2425
Joined: 29 Sep 2010, 14:25

Re: Touch Sensor "Raw" value

Postby nxtreme » 26 Feb 2011, 20:19

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.
User avatar
nxtreme
 
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: Touch Sensor "Raw" value

Postby doc-helmut » 26 Feb 2011, 21:49

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 ;) )
regards,
HaWe
±≠≈αγδεωΔΦΣ∫√∅∞
NXC CHESS for NXT: http://www.mindstormsforum.de/viewtopic.php?f=70&t=6790
indispensable for NXC + EV3-C: easy + trouble-free network & sensor+motor remote control for rs485, BT, USB!
User avatar
doc-helmut
 
Posts: 2425
Joined: 29 Sep 2010, 14:25

Re: Touch Sensor "Raw" value

Postby nxtreme » 26 Feb 2011, 23:58

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.
User avatar
nxtreme
 
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

PreviousNext

Return to Mindstorms Hardware

Who is online

Users browsing this forum: No registered users and 0 guests

cron