user51226: I am running my arduino project with the atmega328 chip like this:

I have purchased by mistake this crystal:

The reason why I purchased by mistake that crystal was because it has this description:

16MHz ±10ppm 22pF 60Ω SMD-3225 SMD Crystal Resonators RoHS

I thought that it contained the 22pF ceramic capacitors inside. But latter I learned that I still the 22pf ceramic capacitors. (Please correct me if I am wrong)
Anyways how can I use that crystal? I only know how to connect the 2 pin crystal. Since this crystal has 4 pins now I am confused. 
To me it makes sense to connect it like this:

Connect pins 9 and 10 from atmega --TO--> pins 1 and 3 from the crystal.
Connect pins 2 and 4 from crystal --TO--> Ground
Connect the 22pf ceramic capacitors to pins 1 and 3 from crystal and ground like in the first diagram.


user59162: this is a nice question. Once for a project I stumbled upon this problem too. 
The way you described the connection should work perfectly fine. 

To me it makes sense to connect it like this:
  Connect pins 9 and 10 from atmega --TO--> pins 1 and 3 from the crystal.
  Connect pins 2 and 4 from crystal --TO--> Ground
  Connect the 22pf ceramic capacitors to pins 1 and 3 from crystal and ground like in the first diagram.

Keep it going and greetings from Switzerland.

51226: <p>I am running my arduino project with the atmega328 chip like this:</p>

<p><a href="https://i.stack.imgur.com/2UcoK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UcoK.png" alt="enter image description here"></a></p>

<p>I have purchased by mistake <a href="https://lcsc.com/product-detail/SMD-Crystal-Resonators_XTY-7325-1600A2210-00_C389842.html" rel="nofollow noreferrer">this crystal</a>:</p>

<p><a href="https://i.stack.imgur.com/fcrxe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fcrxe.png" alt="enter image description here"></a></p>

<p>The reason why I purchased by mistake that crystal was because it has this description:</p>

<blockquote>
  <p>16MHz ±10ppm 22pF 60Ω SMD-3225 SMD Crystal Resonators RoHS</p>
</blockquote>

<p>I thought that it contained the 22pF ceramic capacitors inside. But latter I learned that I still the 22pf ceramic capacitors. (Please correct me if I am wrong)</p>

<p><strong>Anyways how can I use that crystal?</strong> I only know how to connect the 2 pin crystal. Since this crystal has 4 pins now I am confused. </p>

<p>To me it makes sense to connect it like this:</p>

<ol>
<li>Connect pins 9 and 10 from atmega --TO--> pins 1 and 3 from the crystal.</li>
<li>Connect pins 2 and 4 from crystal --TO--> Ground</li>
<li>Connect the 22pf ceramic capacitors to pins 1 and 3 from crystal and ground like in the first diagram.</li>
</ol>
 59162: <p>this is a nice question. Once for a project I stumbled upon this problem too. </p>

<p>The way you described the connection should work perfectly fine. </p>

<blockquote>
  <p>To me it makes sense to connect it like this:
  Connect pins 9 and 10 from atmega --TO--> pins 1 and 3 from the crystal.
  Connect pins 2 and 4 from crystal --TO--> Ground
  Connect the 22pf ceramic capacitors to pins 1 and 3 from crystal and ground like in the first diagram.</p>
</blockquote>

<p>Keep it going and greetings from Switzerland.</p>
