(Created page with "category:Scratch for Arduino ==''Make Noise with Buzzer''== The objectif here is to make some different types of noise on a timing File:Arduino Interface buzzer...")
 
Line 3: Line 3:
 
==''Make Noise with Buzzer''==
 
==''Make Noise with Buzzer''==
 
    
 
    
   The objectif here is to make some different types of noise on a timing
+
   The objectif here is to make different types of noise on a timing
 
   
 
   
  
Line 10: Line 10:
  
  
  '''digital 13 '''is the output for buzzer our board in this experiment
+
  '''digital 13 '''is the output port for the buzzer in our board in this experiment
  
 
  '''wait ''' is the delay time given
 
  '''wait ''' is the delay time given
Line 20: Line 20:
 
Our experiment can be resume as :
 
Our experiment can be resume as :
 
  when '''Button''' is clicked a message '''start''' is sent to the program.
 
  when '''Button''' is clicked a message '''start''' is sent to the program.
  when the program receive ('''start''') '''digital 13'''  receive the signal through the buzzer  
+
  when the program receives ('''start''') , '''digital 13'''  receives the signal through the buzzer  
 
  which emits  a beep sound for '''1 sec'''  and stop for '''1 sec''' for '''5 times '''  
 
  which emits  a beep sound for '''1 sec'''  and stop for '''1 sec''' for '''5 times '''  
  then change the beep sound delay time at '''0.5 sec ''' for also '''5 times'''.
+
  then change the beep sound with the delay time at '''0.5 sec ''' for also '''5 times'''.
 
  again change it at '''0.1 sec''' for ''' 11 time''' so and so ...
 
  again change it at '''0.1 sec''' for ''' 11 time''' so and so ...
 
  etc...
 
  etc...
  Entill the total repeating time has elapse.
+
  Till the total repeating time has elapse.
  
 
  while the program is executing if  the key '''s''' is press the program '''stop'''
 
  while the program is executing if  the key '''s''' is press the program '''stop'''
  
 
  when '''a''' is press again '''start ''' is broadcast to the program.
 
  when '''a''' is press again '''start ''' is broadcast to the program.

Revision as of 21:15, 8 January 2015


Make Noise with Buzzer

 The objectif here is to make different types of noise on a timing

Arduino Interface buzzer.JPG


digital 13 is the output port for the buzzer in our board in this experiment
wait  is the delay time given


caption


Our experiment can be resume as :

when Button is clicked a message start is sent to the program.
when the program receives  (start) , digital 13  receives the signal through the buzzer 
which emits  a beep sound for 1 sec  and stop for 1 sec for 5 times  
then change the beep sound with the delay time at 0.5 sec  for also 5 times.
again change it at 0.1 sec for  11 time so and so ...
etc...
Till the total repeating time has elapse.
while the program is executing if  the key s is press the program stop
when a is press again start  is broadcast to the program.