Modifications

Sauter à la navigation Sauter à la recherche
626 octets ajoutés ,  16 février 2013 à 22:38
aucun résumé de modification
Ligne 92 : Ligne 92 :  
The '''mode''' file can be used to switch between '''pwm''', '''servo''', and '''audio''' mode:
 
The '''mode''' file can be used to switch between '''pwm''', '''servo''', and '''audio''' mode:
 
* '''pwm''' - Drives a pulse with a '''frequency''' specified by the frequency file and a duty cycle of '''duty'''.
 
* '''pwm''' - Drives a pulse with a '''frequency''' specified by the frequency file and a duty cycle of '''duty'''.
* '''servo''' - A special PWM mode that will drive a servo throughout its range of rotation, starting with 0.5ms wide pulse and ending with 2.5ms, some servos only respond to 1.0-2.0ms and some have a wider range, you will need to experiment to find the full range of your servo. Values are taken from the file '''servo''', and range from 0 to '''servo_max''' (default 32 which is the max resolution of 62.5us.) The PWM system does not seem to be able to handle a resolution better than 62.5us which is approximately 20 different servo positions or speeds. If you need better resolution, please check out our 16-channel servo driver tutorial which has 16 channels and 4us resolution
+
* '''servo''' - A special PWM mode that will drive a servo throughout its range of rotation, starting with 0.5ms wide pulse and ending with 2.5ms, some servos only respond to 1.0-2.0ms and some have a wider range, you will need to experiment to find the full range of your servo. Values are taken from the file '''servo''', and range from 0 to '''servo_max''' (default 32 which is the max resolution of 62.5us.) The PWM system does not seem to be able to handle a resolution better than 62.5us which is approximately 20 different servo positions or speeds. Si vous avez besoin d'une meilleure résolution, vous pouvez consulter notre [[Rasp-Hack-16-channel-servo-driver|tutoriel sur le controleur PWM/Servo 16 canaux]] qui dispose d'une résolution de 4us ([http://mchobby.be/PrestaShop/product.php?id_product=89 produit disponible à l'achat ici chez MCHobby]
 
* '''audio''' - Echos the unfiltered contents of the right audio channel out the PWM port. Also enables '''delayed''' mode so that accidentally modifying PWM parameters won't cause the audio system to lock.
 
* '''audio''' - Echos the unfiltered contents of the right audio channel out the PWM port. Also enables '''delayed''' mode so that accidentally modifying PWM parameters won't cause the audio system to lock.
    +
Using the PWM and playing audio at the same time is dicey at best. If you want to mirror audio out the PWM port, write '''audio''' into the '''mode''' file and leave it. When audio playback is done, you can switch back into '''pwm''' or '''servo''' mode. Then, either write '''0''' into the '''delayed''' file to get back into immediate mode, or set your parameters and write a '''1''' into the '''activate''' file.
 +
 +
=== Advanced settings ===
 +
 +
xxx
 
{{Rasp-Os-Occidentalis-TRAILER}}
 
{{Rasp-Os-Occidentalis-TRAILER}}
29 837

modifications

Menu de navigation