Discuss Scratch

kenchoi316
Scratcher
3 posts

Lego EV3 distance sensor value does not show in Scratch

Hi everyone, I want to use distance sensors in Lego EV3 to read the distance and to be used in the programme.

However, I can't have any value read in Scratch, I wanted to do a program like: when the distance <30, sth will happen.

I have no problem with connecting scratch to EV3. My scratch can connect to EV3, and the sensors are working properly as when I go to port view in EV3, the distance is constantly measured.

The only problem is scratch can't make use of the value, please help.

Ken
kenchoi316
Scratcher
3 posts

Lego EV3 distance sensor value does not show in Scratch

Can anyone help?
kenchoi316
Scratcher
3 posts

Lego EV3 distance sensor value does not show in Scratch

can anyone answer me/>?
jolackner
Scratcher
2 posts

Lego EV3 distance sensor value does not show in Scratch

Hi,
I can report the same problem. Tried two different distance sensors that normally work well - but Scratch doesn't read any values from them.

Last edited by jolackner (Oct. 16, 2019 17:19:20)

jolackner
Scratcher
2 posts

Lego EV3 distance sensor value does not show in Scratch

Hi @kenchoi316,
it might be a problem specific to NXT sensors. They are compatible with the EV3 platform itself, but Scratch 3.0 seems to have a problem reading the signals of those slightly older sensors.
After two NXT distance and color/brightness sensors did not work with Scratch (see above post), I bought a EV3 color sensor that now works flawlessly on Scratch 3.0.

W1nterGh0st
Scratcher
2 posts

Lego EV3 distance sensor value does not show in Scratch

what does the distance and brightness mean?
i dont have a mind storm

Last edited by W1nterGh0st (Dec. 4, 2019 03:02:20)

W1nterGh0st
Scratcher
2 posts

Lego EV3 distance sensor value does not show in Scratch

nevermind
go here if you need help
https://en.scratch-wiki.info/wiki/LEGO_Mindstorms_EV3_Extension

Last edited by W1nterGh0st (Dec. 4, 2019 03:03:57)

Timasun
New to Scratch
1 post

Lego EV3 distance sensor value does not show in Scratch

I have exactly the same problem. This is the ir distance sensor - https://www.lego.com/en-us/product/ev3-infrared-sensor-45509
P-brick has the latest firmware 1.09H

Powered by DjangoBB

Standard | Mobile