Discuss Scratch
- Discussion Forums
- » Connecting to the Physical World
- » Lego EV3 distance sensor value does not show in Scratch
- kenchoi316
-
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
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
-
3 posts
Lego EV3 distance sensor value does not show in Scratch
Can anyone help?
- kenchoi316
-
3 posts
Lego EV3 distance sensor value does not show in Scratch
can anyone answer me/>?
- jolackner
-
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.
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
-
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.
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
-
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
i dont have a mind storm
Last edited by W1nterGh0st (Dec. 4, 2019 03:02:20)
- W1nterGh0st
-
2 posts
Lego EV3 distance sensor value does not show in Scratch
Last edited by W1nterGh0st (Dec. 4, 2019 03:03:57)
- Timasun
-
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
P-brick has the latest firmware 1.09H
- echeetham
-
1 post
Lego EV3 distance sensor value does not show in Scratch
Late response, but for me this is a problem with using port view on the brick.
Sensor outputs (distance and brightness) are fine on the port view (on the brick screen) but are intermittent/zero in Scratch - no use for controlling code. Turn off port view on the brick and the values are updated real time in scratch - (select the check next to the distance and brightness blocks to see real-time values).
Sensor outputs (distance and brightness) are fine on the port view (on the brick screen) but are intermittent/zero in Scratch - no use for controlling code. Turn off port view on the brick and the values are updated real time in scratch - (select the check next to the distance and brightness blocks to see real-time values).
- brinknicoh
-
6 posts
Lego EV3 distance sensor value does not show in Scratch
hello I have another question about how you can use other sensors
- brickcodelab
-
1 post
Lego EV3 distance sensor value does not show in Scratch
Some examples of using the distance sensor. Maybe it will be useful to someone:
https://www.youtube.com/watch?v=sRTocRVBCsM
https://www.youtube.com/watch?v=sRTocRVBCsM
Last edited by brickcodelab (Feb. 2, 2020 21:14:48)
- daxkane
-
41 posts
Lego EV3 distance sensor value does not show in Scratch
I also do not know, i try but it does not work.
Last edited by daxkane (May 1, 2020 20:35:27)
- daxkane
-
41 posts
Lego EV3 distance sensor value does not show in Scratch
I also do not know, i try but it does not work.
- Horologist
-
1 post
Lego EV3 distance sensor value does not show in Scratch
I think you have to be using the ultrasonic sensor (https://www.lego.com/en-us/product/ev3-ultrasonic-sensor-45504 ), not the infrared sensor (https://www.lego.com/en-us/product/ev3-infrared-sensor-45509 ). I cannot be sure, but the sensors return different values and the video in the EV3 1 - Play Basketball tutorial, an ultrasonic sensor is used with the distance block.
Last edited by Horologist (July 24, 2020 17:03:56)
- repeatblock
-
1 post
Lego EV3 distance sensor value does not show in Scratch
I just use the app
- inneb4400
-
1 post
Lego EV3 distance sensor value does not show in Scratch
Same here. The distance IR-Sensor always delivers the value 0.
It shows the correct values on the EV3 as well as with OpenRoberta (which however is quite limited compared to Scratch)
I've updated the EV3's FW to 1.10E - still the same.
Someone an idea how to get the distance sensor working with Scratch?
Thanks!
It shows the correct values on the EV3 as well as with OpenRoberta (which however is quite limited compared to Scratch)
I've updated the EV3's FW to 1.10E - still the same.
Someone an idea how to get the distance sensor working with Scratch?
Thanks!
- Discussion Forums
- » Connecting to the Physical World
-
» Lego EV3 distance sensor value does not show in Scratch