Archives mensuelles : avril 2014

NoNoseOnTV . part 2

Et hop voilà le code version 2. // # Author  : Hugues Lepesant // # Date    : 24/04/2014 // # Version : 0.2   // # URM Code based on Jiang’s work from DFRobot // # Product name:ultrasonic scanner Kit // # Product SKU:SEN0001    // # Description: // # The Sketch for scanning 180 degree area 4-500cm detecting range    // # Connection: // #       Pin 1 VCC (URM V3.2) -> VCC (Arduino) // #       Pin 2 GND (URM V3.2) -> GND (Arduino) // #       Pin 4 PWM (URM V3.2) -> Pin 3 (Arduino) // #       Pin 6 COMP/TRIG (URM V3.2) -> Pin 5 (Arduino) // # Pin mode: PWM // # Working Mode: PWM passive control mode. // # If it is your first time to use it,please make sure the two jumpers to the right hand // # side of the device are set to TTL mode. You’ll also find a secondary jumper on // # the left hand side, you must break this connection or you may damage your device.    int URPWM=3; // PWM Output 0-25000us,every 50us represent 1cm int URTRIG=5; … Continuer la lecture

Publié dans Mes Projets | Laisser un commentaire