Adafruit TPA2016 with Arduino

When I have been looking around a website called Adafruit, I could find an interesting board which made me excited and buy it immediately. Until TPA2016 ships to my home, I was googling how to use it. However, I could not find the simple tutorial which is used with Arduino, so I am trying to show you my experiment about TPA2016 with Arduino.


・TPA2016 (Stereo 2.8W Class D Audio Amplifier)


・Arduino Uno


・3.5mm Stereo Headphone Jack


・3.5mm Audio Cable


・A Speaker ( 8rm, 0.5W )


・A Breadboard


・Some Jumper Wires



s__40992771There are 10 pins on the TPA2016, so combine with the male headers which come with the kit from Adafruit to the 10 pins. Besides that, there are two terminal blocks in the kit, so do the same as the males headers. After all, solder them to completely connect with the TPA2016.

(The terminal blocks might not be required because it depends on what types of speaker you have. In my experiment, I use the speaker above, so there is no way itself can connect to the terminal block, so I am NOT going to use that.)




The setup looks like this. Put the TPA2016 and 3.5mm Headphone Jack on a breadboard.





○Circuit Diagram


I wrote the circuit diagram that is easier to see how it looks like. In this circuit diagram, the Arduino could be working as a power supply (5V).


If you can connect everything correctly, you get a similar one like the image above. Well, the phone that is being connected with the 3.5mm headphone jack was supposed to be on the image… But I took the picture by using the phone, so it is not on there.

I could make a sound through my phone, but the sound was very small and the sound quality was horrible. Do you have any advice to make this experiment better? If so, let’s discuss about this topic in the comment area.


How to Create an Effective Header of the Website

Your website is basically the face of your business. If you have the website that does not look great for users, the users might lose the attention for your business even if you do a great business. Especially, the header of your website can be the most effective thing that the web developers should care about. Therefore, the more effective header the website has, the better interest the users might get. Personally, as a person who wants to be an IoT engineer, I thought that it was better to know how to create an effective header of a website by using HTML and CSS, so I want to share you about the very simple and effective header of the website.

  • The achievement

In this article, I will try to show you how to create a navigation bar on the main image and adjust the size of the image. (The original image size is 1920px * 1080px) Caution: Care about the copyright. I got this image from I highly recommend you to get some free images from there. You can also design the image that you want.


  • HTML Code

The HTML is the language which is used to create web pages. By adding tags and elements, something you added appears on the website. Basically, what you code in head tag is unable to see on the web. However, without coding them, your website might get bugs, can not get more traffics through the keywords, so on. In the body tag, you code something appeared on the website like a navigation bar, some links, some images, so on.


  • CSS Code

The CSS is the language that can control the layout and the styling of the web pages. Even though the way to code is totally different from HTML, CSS is very important to make up your website. Without CSS, your website might be looking like the lines of some text.

Soldering SMD Tutorial

Soldering is one of the indispensable skills for making your own electronic device. In addition, whenever you make a new device, you may have to practice or consider about the soldering for SMD on PCB. In the time I have been working on soldering while learning how to do it, I could find out some tricks to get it done beautifully. Before it gets started, I would like to explore some important words that I used in the introduction.

According to Wikipedia, SMD (SMT) is…

a method for producing electronic circuits in which the components are mounted or placed directly onto the surface of printed circuit boards (PCBs)

Also, SMD is the abbreviation of a surface-mount device (surface-mount technology)

Once you got the meaning, let’s see the tutorial.

○List of Requirements

Of course, if you are new to do it, you might have to buy some materials from the list.

  1. Your own board


This is called PCB (Printed Circuit Board). I ordered my PCB in Elecrow  and the cost was $41.95 for 10pcs, including the shipping fees.

    2. Hot Air Gun


I highly recommend you to use this device rather than using the soldering iron like this picture below.


Because this soldering iron is not good at soldering super little components like 0402 resistors.

    3. Tweezer


For picking the small components up and drop them off on PCB correctly.

    4. Solder Paste and Flux

s__37060615 s__37060616

○Optional requirements.

These materials are not that needed but it would make your project easier if you had them.

  1. Helping Hand with Magnifying Glass


    2. A couple of toothpicks


To mix the solder paste and flux up.

○Soldering Time!

When you got these things, you finally could get the soldering started.

First of all, what you are going to do is mix the solder paste and flux together. In some Youtube I watched, they were just using a solder paste. However, my friends, who have more soldering experiences than me, told me that it has to be mixed up because by mixing them up, the paste will be stable on your PCB when you solder. So, I want to follow my friend’s advice rather than the Youtube videos.


Once you got the mixed solder paste, you set your PCB up by using the helping hand with a magnifying glass.


Paste the mixed solder paste evenly on the silver area on PCB. It does not matter even if your paste messed up a little bit because when it is being hot by the hot air gun, the paste, which had messed up, will automatically gather to the each pin bases on the surface tension.

s__37060619 s__37060620

Put a component on the area you pasted them. Be careful of the dimension of your component. Each of components has the exact dimension and pins. You should see the date sheet of them.


Take the hot air gun and set up the appropriate temperature (I am using 300 ℃). The component and PCB can usually be connected in 20 seconds. However, please make sure you should keep making it hot until the paste starts gathering.


And continue the same things until you finish soldering SMD on PCB.


The last thing you should do is make sure whether it is able to work what you wanted it to work. In order to do that, you are going to code to make it work.

Once you understand how to do soldering SMD on PCB, you can make your own product by yourself. I hope my soldering SMD tutorial can help your project out.

How to use WTV020SD with Arduino

I have been working on my personal project which is about how to make a sound on WTV020SD with Arduino for a couple of days. I could not find any solutions of it on Google. However, I finally found it out with the simplest way EVER! SO I am going to talk about how to use WTV020SD with Arduino on this article.

What you need

  1. Arduino Uno


2. A USB cable (Type A to B)


3. A Breadboard


4. Sparkfun Audio-Sound Breakout WTV020SD


5. Kingston MicroSD Card (2GB)


6. Mini Metal Speaker (8orm, 0.5W)


7. 7 Jumper Wires


◯What you set up

  1. First of all, you have to convert your .wav or .mp3 audio file to .ad4. If you are a Mac user, you should use a Windows computer to convert it. Here is the link about how to convert ( I am not going to talk about the details about it in this tutorial.
  2. You should change the name of the audio file to ad4 format such as 0000.ad4 because the file will be read from 0000.ad4.
  3. Connect from the 5V PIN on your Arduino to the VCC on your WTV020SD by using a jumper wire.
  4. Connect from the GND PIN on your Arduino to the GND PIN on WTV020SD by using a jumper wire.
  5. Connect from 6 PIN on your Arduino to PLAY PIN on WTV020SD by using a jumper wire.
  6. Connect from 5 PIN on your Arduino to BUSY PIN on WTV020SD by using a jumper wire.
  7. Connect from 4 PIN on your Arduino to DIN PIN on WTV020SD by using a jumper wire.
  8. Connect from 3 PIN on your Arduino to DCLK PIN on WTV020SD by using a jumper wire.
  9. Connect from 2 PIN on your Arduino to RESET PIN on WTV020SD by using a jumper wire.
  10. Connect the between SPK+ and SPK- PIN and Mini Metal Speaker.

audio schematic

◯The Code

In this tutorial, I am just showing about how to make a sound you want by using PLAY. I am not showing about changing a sound or making a sound back or anything like that.

◯The Result

How to blink a LED light 2

In my last post, I showed you about how to blink a LED light on Arduino but in this tutorial, I am going to show you the another simple way of blinking a LED light for Arduino.

◯What you need

  1. An Arduino Uno


2. A USB cable (Type A to B)


3. A Breadboard


4. A LED (5mm)


5. A Resistor (220ohm)


6. Two Jumper Wires


◯What you code

I code same as my previous tutorial.

If you want to know the meaning of each line of the code, please check my previous tutorial out.

◯What you set up for the circuit

  1. You connect PIN 13 from Arduino to the longer leg of LED light (+) on the breadboard by using a wire.
  2. You connect the either side of the resistor on the breadboard to the shorter leg of LED light ( − ).  In addition, the another side of the resistor should be inserted in minus sign (ground column) on the breadboard.
  3. You connect the GND from the Arduino to the ground column by using a wire.

◯The Circuit Schematic

This is the circuit schematic of our project. Like you see, the LED light is being connected to PIN 13. Also, the GND on the Arduino and the resistor is being connected each other through the breadboard.

01 Blinky_schem

◯The Result

By going through these things, you may be able to see the result like these pictures.

・When the LED light is turning off in 1000 milliseconds.


・When the LED light is turning on in 1000 milliseconds.


Well done! My programming and setting up could be working well! Could your LED light blink well?

Please let me know if you have any question about my simple tutorial!