GLOBAL SITE AUSTRALIAN SITE

[SOLVED] Sensing Single Claps and Double Claps | EdWare graphical 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
[SOLVED] Sensing Single Claps and Double Claps
March 28, 2017
5:18 am
Susan
Member
Members
Forum Posts: 5
Member Since:
March 10, 2017
sp_UserOfflineSmall Offline

How do I program Edison to detect the difference between a single clap and a double clap?

Thanks in advance.

March 28, 2017
11:05 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

If you load the “clap controlled driving” program in the “EdBook1 – Your a Controller” option of the load menu in Edware online you can see how we have programmed it.

Basically, we use: 

Wait for event: Clap (detect the first clap), 

Wait for event: time 0.1sec (wait a short time so the detected clap has passed), 

Detect Clap (reads the value of the clap sensor into a junk variable, used to clear the clap sensor),  

Wait for event: time 0.35sec (time in which the second clap can occur), 

If: clap detected (if a clap has been detected at this point, it is the second clap, so the top line of the IF statement is the program for a double clap. the bottom line is the line for only a single clap)

March 29, 2017
4:29 am
Susan
Member
Members
Forum Posts: 5
Member Since:
March 10, 2017
sp_UserOfflineSmall Offline

Thank you. That is just what I was looking for. 

  • 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