Skip to content

EV3-G API: ultrasonic sensor #364

Closed
Closed

Description

@dwalton76

Need to get screenshots of the ultrasonic sensor blocks

Activity

  1. dlech commented on Sep 20, 2017

    @dlech
    Member

    image

  2. dwalton76 commented on Sep 22, 2017

    @dwalton76
    CollaboratorAuthor

    Any of you guys own one of these? I do not

  3. WasabiFan commented on Sep 22, 2017

    @WasabiFan
    Member

    Yeah, I have a few. I'll see if I can find one and implement this later today.

  4. self-assigned this
    on Sep 22, 2017
  5. WasabiFan commented on Sep 27, 2017

    @WasabiFan
    Member

    I'm taking a look at this now and realizing that we already have almost all of this. The distances are properties calleddistance_inches and distance_centimeters, and presence is other_sensor_present. We don't have measuring modes though (I don't fully understand that). Do we want to rename these to be more literal translations?

  6. dwalton76 commented on Sep 27, 2017

    @dwalton76
    CollaboratorAuthor

    yeah I'm not sure what ping vs continuous really means...it could only be continuous for so long because eventually you have to return an answer. I just found a youtube video on it....watching

  7. dwalton76 commented on Sep 27, 2017

    @dwalton76
    CollaboratorAuthor

    LOL well the guy in the video said "I haven't really experimented much with the advanced ping vs continuous thing"

  8. dwalton76 commented on Sep 27, 2017

    @dwalton76
    CollaboratorAuthor

    ok found something
    https://forums.usfirst.org/forum/general-discussions/first-programs/first-lego-league/the-challenge/programming-ab/12738-ev3-helpful-hints/page6

    The Advanced XXX mode is similar to the Measure Distance - XXX mode, except that you can choose whether the sensor sends a single ultrasonic signal or continuous signals with the Measuring Mode input. The distance in XXX is output in the Distance.

    When in advanced mode you can program the sensor to generate a single ping each time the sensor block is executed. In this mode the sensor is not active unless you are actually reading the sensor value. In continuous ping mode the sensor pings continuously in the background and the latest result is stored in a buffer. When you read the sensor the block accesses the value in this buffer.

  9. dlech commented on Sep 27, 2017

    @dlech
    Member

    continuous means that the ultrasonic sensor is continuously sending out a sound signal. If you have multiple sensors they will interfere with each other. Ping means that the sensor does one measurement and then turns off the speaker. This allows multiple sensors to take turns without interfering with each other.

    in order to get the ping to work, you have to set the mode each time you want to ping.

  10. dwalton76 commented on Nov 14, 2017

    @dwalton76
    CollaboratorAuthor

    @WasabiFan I think you started on this one correct? If not I have an UltraSonic sensor now and can take a stab at it.

  11. WasabiFan commented on Nov 14, 2017

    @WasabiFan
    Member

    @dwalton76 yeah, I started on it but it wasn't too far along; it was pretty much just a new class with one property, I think. If you have the cycles to take it on, go for it! That would be much appreciated. Otherwise the next available breathing room when I might be able to take this on is the first weeks of December. Apologies for dragging it out!

  12. dwalton76 commented on Jan 11, 2018

    @dwalton76
    CollaboratorAuthor

    @WasabiFan looks like we both got swamped through December :) I'll take a stab at it

  13. WasabiFan commented on Jan 11, 2018

    @WasabiFan
    Member

    😖 Yeah, it seems that new work always appears to fill the gaps. I will be carving out some time over the next week or so to knock some things off the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions