jeudi 30 décembre 2010

Tour de flex


Tour de Flex is a desktop application for exploring Flex capabilities and resources, including the core Flex components, Adobe AIR, data integration, and a variety of third-party components, effects, skins, and more.
Tour de Flex has three primary goals:
  • Provide non-Flex developers with an overview of what is possible in Flex in a "look and see" environment
  • Provide Flex developers with an illustrated reference tool
  • Provide commercial and non-commercial Flex developers with a place to showcase their work
System requirements:

lundi 27 décembre 2010

Mirage Optical Illusion Hologram

Can you believe this little piglet is just a mirage? Me neither! Acctually it isn’t there at all! Instead it’s inside the spheric box, and mirrors inside make it look as 3D hologram. You can watch the video to be sure. I found this optical illusion at Grand Illusions, so if you want to buy Mirage for yourself, jump to their website. The Mirage is one of those classic toys that has been around for several decades now, but never lost its appeal. It produces a small, full-color hologram of natural, lifelike appearance, allowing 360-degree viewing. The little plastic pig seems solid enough, but when you try and touch it, your fingers find that it is just an illusion – there is nothing there. You can find the explanation of this optical illusion inside this post. Also if you enjoy this kind of tricky toys, you might want to visit “Magical Cube Toy”.
Mirage consists of two opposing parabolic mirrors. In overall appearance, Mirage resembles a small 9inch wok with a circular opening in the top. The physical object to be converted to a hologram is placed in the concave centre of the bottom mirror.
A hologram instantly projects up through this aperture, appearing to the viewer as a truly solid object. We supply the little plastic pig, but you can place any object in the Mirage, and instantly convert it into a wonderful optical illusion!
Mirage was originally discovered over 30 years ago, when a member of staff at the University of California at Santa Barbara was cleaning around a stack of searchlight reflectors (which are parabolic reflectors of course!) when he noticed that he was trying to clean off some ‘dust’ that turned out not to actually be there! He showed this to one of the physics professors, and the two of them started making a commercial product, based around the phenomenon that they had accidentally discovered.
Their initial product was made of glass, and was quite expensive. Later an American company called Optigone took out a licence, and started making a version in plastic, which could sell for a third of the price. There have been even cheaper copies made in the Far East, but they tend to have lower quality optics.

vendredi 24 décembre 2010

oDesk joomla certification

oDesk Certified Joomla 1.5 Developer

Commande d'un moteur pas à pas unipolaire

Salut Roboticien!!
Je vais vous présenter le circuit et ma façon de commande d'un moteur pas à pas unipolaire.
Pour ce montage, j'ai utilisé un circuit uln2803 comme un interface de puissance un moteur pas à pas bien évidement et un pic 16F877.
J'ai utilisé un virtual terminal qui communique avec le pic par l'intermédiaire du protocole uart et qui assure la commande.
  • Code avec Mikroc pro
unsigned char cmd[8]={0X01,0X03,0X02,0X06,0X04,0X0C,0X08,0X09};
unsigned char i=0; 
char k='r';


void main() {
     uart1_init(9600);
     uart1_write_text("Commande d'un moteur pas a pas unipolaire");
     uart1_write(10);
     uart1_write(13);
     uart1_write_text("pas complet: c");
     uart1_write(10);
     uart1_write(13);
     uart1_write_text("demi pas: d");
     uart1_write(10);
     uart1_write(13);
     portb=0X00;
     trisb=0;
     
     while(1){
            if(uart1_data_ready()==1){
                 k=uart1_read();
                 uart1_write(k);
                 switch(k){
                 case 'r':
                   break;
                 case 'c':
                   i=i+2;
                   if(i==9)i=1;
                   if(i==8)i=0;
                   break;
                 case 'd':
                   i++;
                   if(i==8)
                   i=0;
                   break;
                 default:
                   uart1_write(10);
                   uart1_write(13);
                   uart1_write_text("errure!!");
                   break;

             }
             portb=cmd[i];
        }
   }
}
A bientôt Dans Mon prochain Tutorial :)
Mazen


Mesure de température avec une sonde thermique et affichage lcd

Salut tout le monde,
Dans ce petit Tutorial je veux faire la mesure de température et l'affichage de la valeur mesuré en temps réel.
Pour la sonde thermique je vais la modéliser par un potentiomètre interactive dont la valeur de résistance est variable durant l’exécution du programme.
Le circuit électronique est ci dissous.

  • La liste de composants:

    un pic 16F877
    afficheur LCD alphanumérique LM016L 
    potentiomètre interactive avec Rm=1Kohm
  • Code avec Mikroc pro
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;

sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;
//initialisation de module de connection du LCD
double temp=0;
char *val="1";
void initialisation(){
     lcd_init();
     adc_init();
     lcd_cmd(_lcd_cursor_off);
     lcd_cmd(_lcd_clear);
     lcd_out(1,5,"Mesure");
     lcd_out(2,1, "Temperature");
     delay_ms(500);
     lcd_cmd(_lcd_clear);
}
void main() {
     initialisation();

     while(1){
     lcd_out(1,1,"La température =");
     temp=adc_read(1) ;
     temp*=0.48;
     floattostr(temp,val);
     lcd_out(2,1,val);
     }

}