Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


materiel:ad9850:accueil

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
materiel:ad9850:accueil [2015/02/18 18:23]
resonance [Avec Arduino]
materiel:ad9850:accueil [2016/02/01 00:05] (Version actuelle)
resonance
Ligne 1: Ligne 1:
 ====== AD9850 ====== ====== AD9850 ======
 +{{:materiel:ad9850:oscillo-ad9850.jpg?500|}}\\
 +Générateur de signaux sinusoïdaux ou carré.
  
- +{{youtube>3lNGF0PJUpk?medium}}
-{{:materiel:ad9850:oscillo-ad9850.jpg?600|}}+
  
 ===== Datasheet ===== ===== Datasheet =====
   * {{:materiel:ad9850:ad9850.pdf|}}   * {{:materiel:ad9850:ad9850.pdf|}}
-{{:materiel:ad9850:ad9850-datasheet.png|}} +  * 2 sine wave and 2 square wave output (mais tous avec la même fréquence !) 
- +  * AD98500-40MHz 
 +  * After the 20-30MHz frequency harmonics increases, the waveform will be less and less clean 
 +  * Square Wave0-1MHz 
 +  * Low-pass filter with 70MHz, so the waveform better than SN 
 +  * Parallel and serial data input can be selected via a jumper 
 +  * DA produced the benchmark pin (PIN12) leads for easy adjustment to do the magnitude of the output waveform Application 
 +  * Comparator reference input voltage generated by the variable resistor, the resistor can be adjusted duty cycle square wave of different 
 +  * Active AD9850 125MHz crystal oscillator modules
  
 ===== Avec Arduino ===== ===== Avec Arduino =====
Ligne 15: Ligne 22:
   * http://arduino.alhin.de/index.php?n=67   * http://arduino.alhin.de/index.php?n=67
   * http://nr8o.dhlpilotcentral.com/?p=83   * http://nr8o.dhlpilotcentral.com/?p=83
 +  * http://rockingdlabs.dunmire.org/exercises-experiments/ad-9850-dds-synthesizer
 +  * http://www.alhin.de/arduino/index.php?n=7
 +  * http://www.kerrywong.com/2012/11/06/dds-function-generator-build/
 +  * http://webshed.org/wiki/AD9850_Arduino
  
  
-==== Code Arduino ==== +==== Connection ==== 
-+++++Il suffit de 6 fils. 
 + 
 +| **ARDUINO** | **AD9850** | 
 +| 5V | VCC | 
 +| GND | GND | 
 +| 8 | W_CLK | 
 +| 9 | FQ_UD | 
 +| 10 | DATA | 
 +| 11 | RESET | 
 + 
 +{{:materiel:ad9850:arduino-deux-ad9850.jpg?600|}} 
 + 
 +==== Code Arduino pour deux modules ==== 
 + 
 +**Sans librairie à installer** ++++ Voir le code |
 <code c> <code c>
 /*  /* 
  * USE TWO AD9850  * USE TWO AD9850
  * Modified from http://nr8o.dhlpilotcentral.com/?p=83  * Modified from http://nr8o.dhlpilotcentral.com/?p=83
- * 9850t http://www.analog.com/static/imported-files/data_sheets/AD9850.pdf 
  */  */
    
Ligne 87: Ligne 111:
 } }
 </code> </code>
 +++++
 +
 +**Avec la librairie [[http://arduino.alhin.de/download.php?id=28|AH_AD9850.h]]**
 +++++ Voir le code |
 +<code c>
 +// from http://www.arduino-projekte.de 
 +
 +#include <AH_AD9850.h>
 +
 +#define CLK     6
 +#define FQUP    7
 +#define BitData 8
 +#define RESET   9
 +
 +AH_AD9850 AD9850(CLK, FQUP, BitData, RESET);
 +
 +void setup()
 +{
 +  AD9850.reset();                   //reset module
 +  delay(1000);
 +  AD9850.powerDown();               //set signal output to LOW
 +  
 +  // initialize serial communication
 +  Serial.begin(9600);
 +}
 +
 +void loop(){
 +
 + //set_frequency(boolean PowerDown, byte Phase, double Freq); 
 + AD9850.set_frequency(0,0,1000);    //set power=UP, phase=0, 1kHz frequency
 + delay(1000); 
 +
 + AD9850.set_frequency(2500);        //set 2.5kHz frequency
 + delay(1000); 
 + 
 + AD9850 << 5000;                    //set 5kHz frequency in C++ style
 + delay(1000);
 + 
 + 
 + //phase test
 + for (int phase=0;phase<32;phase++)   
 + {
 +   AD9850.set_frequency(0, phase, 1000);   //change phase delay in 11.25°(2PI/32) steps
 +   delay(1000);
 + }
 + 
 +}
 +</code>
 +++++
 +
 +
 +===== Modulation =====
 +Deux signaux modulés par une porte ET : \\
 +{{:materiel:ad9850:ad9850-modulation.jpg?400|}}
 +
 +
 +Le schéma de la porte ET avec deux diodes et une résistance (merci Patrick!)\\
 +{{:materiel:ad9850:and_10.gif|}}
 +
 +===== Signal carré =====
 +Il faut modifier le "duty cycle" du signal carré avec le potentiomètre.
 +
 +{{:materiel:ad9850:ad9850-square.jpg?600|}}
  
/home/resonancg/www/wiki/data/attic/materiel/ad9850/accueil.1424280220.txt.gz · Dernière modification: 2015/02/18 18:23 de resonance