3.02.2011

Work on the Sound Detection by AS3.0 on Flash

After I have finished the hardware part, I started to do the software part. It is a sound detection using Adobe Flash CS4.

First of all, I did the main function sound detection on programming. I used the function Microphone() to do the sound detection. I roughly made a yellow ball to be a target of the detection response.

// declare the control on Microphone
var mic:Microphone = Microphone.getMicrophone();
Security.showSettings(SecurityPanel.MICROPHONE);
mic.setLoopBack(false);  


After I have got the control with microphone, I tried to resize a target by control the scale() of the object.
 // the size value of the yellow ball is increased by sound detected
if (actLevel > 0) {
   ball.scaleX *= 1.1;
   ball.scaleY *= 1.1;
   }


2.27.2011

Ciruit is Finished to integrate with 4 Mist Machines

I used almost a month time to integrate the circuit with 4 mist machines.
Here is my completed work!


4 mist machines is worked out by two 3 Amp Adapters

2.21.2011

To integrate with 4 mist machines

After the single machine circuit had worked out, I was going to integrate more mist machines together to the circuit. It is because one mist machine is not enough for my work. I have bought 3 more mist machines for my whole circuit uses.


Each mist machine needs AC 24V 1.2Amp. Hence, I need an AC 24V 4.8Amp adapter to give power to 4 mist machines. However, I cannot find an adapter with 5Amp. The maximum value of adapter that I have found is 3Amp only. So, I have bought 2 adapters for giving power to the whole circuit. It should be safe and stable.


 

1.28.2011

Have Interim Report Submission and Presentation TODAY!

Today FINISHED my FYP Interim Report Submission and Presentation!

yeh yeh yeh~ HAPPY NEW YEAR!!!

1.26.2011

Finished writing Interim Report

In this week, I mainly doing the Interim Report for the submission on 28 Jan.

Finally, I have finished writing the Interim Report today!

And Now, starting to prepare the presentation on Friday.


 

1.20.2011

Start on Software Part: Learning references on AS3.0

Besides doing the Interim Report, I am now thinking on the FLASH part. I am going to find the references about sound detection on Flash. I am spending time to read the references on Flash AS3.0 .



http://www.republicofcode.com/

1.17.2011

Start to do the Interim Report

I have dated Koala and Raymond to have Interim Report Submittion and Presentation on 28/1(Friday) at 5:30pm at Inno Center.

I think I have to start to do the Interim Report right now.

1.14.2011

Circuit SUCCESSFULLY DONE !

After a week time to integrate the circuit, I have faced a lot of difficulties. I keep read the book and the tutorials on the website and asked comments from my EE friend. Finally, it is perfectly DONE! 

VERY VERY POWERFUL .\_/.!!!




Here is the video about the operation of the whole circuit:
http://www.youtube.com/watch?v=46ybLdwXw1A

1.06.2011

Integrate the circuit

After I have add the programming code to the microcontroller, I need to test it. So that, I am going to integrate the whole circuit. I am following the circuit diagram that I have designed before. Hope I can be successful!






12.17.2010

Program on microcontroller

I have finished the programming part.

#include <avr/io.h>
#include <util/delay.h>

//Simple Wait Function
void Wait()
{
   uint8_t i;
   for(i=0;i<250;i++)
   {
      _delay_loop_2(0);
   }

}

void main(){
      DDRC = 0x00;         // Configure Port C as input port
    PORTC = 0xFF;         //enable internal pull-up
    DDRD = 0xF0;          // Configure Port D as input port
    PORTD = 0xFF;         //enable internal pull-up

    while(1){
        if(PINC==0xfe){                //pull key 1
            PORTD|=_BV(7);            //relay on
        }
        else if(PINC==0xfd){            //pull key 2
            PORTD&=~_BV(7);            //relay off
        }
        else{
            if((PIND & 0b00000001) == 0b00000001)    //get input
                PORTD&=~_BV(7);            //relay off   
            else{
                PORTD|=_BV(7);            //relay on
                Wait();                //5 second delay
            }
    }
    }
}

I have set:
when distance sensor get the signal, the mist machine would work after 5 seconds.

To add the programming to the microcontroller , an AVR-ISP programmer is needed.
Here is a programmer for me to transfer the program from the computer to the microcontroller .


Microcontroller



 AVR-ISP Programmer