Elenco Snap Circuits SnapMicro ® I Standard User Manual

Page 83

Advertising
background image

82


Three data groups for the start of a clap only have one data point in the start windows. There is no data
outside of the center window for the end of each clap. Repeat this process for your Snap Circuit

®

and

microprocessor. Calculate your center window for 10% above and below the average end point
readings. In the following flow chart the end point window was closed to ± 5% or

98 to 108

.


Calculate your start point windows for at least one data point per clap. You may have to open the
windows to insure at least one data point. In the following flow chart the start windows were set at
approximately ± 18% to improve data readings. The numbers used were

0 to 85

and

121 to 255

. This

change results in start data as shown here.

Pair 1:

54

,

152

, 104, 117,

80

, 111 …………

6

, 118, 119, 88, 105, 89

Pair 2:

254

,

127

,

7

, 111,

71

, 105 ………

29

,

151

, 106, 113, 102, 117

Pair 3:

168

,

228

, 116,

82

, 96,

62

………

6

,

8

,

60

, 115, 110, 93

Pair 4:

146

,

84

, 117, 104,

123

, 94 ………

124

, 102, 105, 99,

141

, 92


There is still one data group with only one number outside the window, but the probability of capturing a
good clap sound has been improved greatly.

In the following flow chart the clap data is no longer stored, but instead is measured byte by byte as it is
read. This allows more bytes to be analyzed in a shorter time period and even better probability of a
capture.

The beginning of the next flow chart waits 10 seconds then looks for a quiet period and records the
required window data. The 10-second delay is necessary in order to allow all the circuit transients to
settle and come to their operating levels. A green light indicates this process is running. When the light
goes out the circuit is reading to use.




Advertising