GLOBAL SITE AUSTRALIAN SITE

Wait for clap trick | EdBlocks programming | Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic3
Wait for clap trick
October 23, 2017
4:40 pm
expeduca
New Member
Members
Forum Posts: 1
Member Since:
October 23, 2017
sp_UserOfflineSmall Offline

Hi to all. I am a newbie working with Edison and want to ask you about a problem I have found trying to wait for a clap after riding and finding an obstacle. If I just put a wait for a clap block, it does not work. I think dettecting clap is triggered by motors noise, so Edison drives back and turns to avoid object and repeats the loop. Trying to let clap detecting routine works on a quiet time, I found that if I put previous to the clap block a drive backwards (for 0 seconds) block, it works fine. Please check attached image.

Error_ClappingImage Enlarger

I would like you to help me if I’ve misunderstood the way Edison or Edblocks work and why ‘drive backwards 0 sec’ makes it happen.

Kind regards.

expeduca.

October 24, 2017
3:47 pm
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi,

You are correct, Edison’s clap is triggered by motor noise.

So Edison cannot detect a clap while driving.

In your program that does not work, Edison is still driving when the program hits the “wait until clap block”

This is because the “drive unlimited” block causes Edison to keep driving until a different drive block is seen.

In the program that does work, the “backwards for 0 seconds” is acting as a “stop driving block” you could replace this block with the “stop driving block” and the code should still work

November 22, 2017
11:20 pm
Avatar
gloriacoding
Member
Members
Forum Posts: 13
Member Since:
November 22, 2017
sp_UserOfflineSmall Offline

Hi!

In my case, although the Edison robot is stopped and there’s no motors noise, I want it to start when it detects a clap but it starts right away the second I press the triangle button, without waiting for that clapping sound (?) Any ideas about why might this happen?

Thank you!

November 30, 2017
9:58 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi 

What blocks are you using in your program?

November 30, 2017
7:36 pm
Avatar
gloriacoding
Member
Members
Forum Posts: 13
Member Since:
November 22, 2017
sp_UserOfflineSmall Offline

Ben said
Hi 

What blocks are you using in your program?  

Hi Ben! I’m using EdWare http://www.edwareapp.com/share/NtCdo Sorry, I’ve just noticed I should have posted this in the EdWare programming section. Why doesn’t it wait for the clapping to start moving?

Thank you so much!

November 30, 2017
7:43 pm
Avatar
gloriacoding
Member
Members
Forum Posts: 13
Member Since:
November 22, 2017
sp_UserOfflineSmall Offline

Hi again! I don’t know if I’ve done the right thing but I’ve just sorted it adding the DETECT CLAP block and a variable clap = 0 as initial value 😉

I’d appreciate your feed back on this wink

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Country

Pin It on Pinterest

Share This