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 https://www.canva.com/ I highly recommend you to get some free images from there. You can also design the image that you want.

the-header

  • 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

s__37060610

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

s__37060612

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

s__37068802

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

    3. Tweezer

s__37060613

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

s__37060611

    2. A couple of toothpicks

s__37060614

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.

s__37060617

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

s__37060618

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.

s__37060621

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.

s__37060622

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

s__37060623

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

S__34267138

2. A USB cable (Type A to B)

S__34267145

3. A Breadboard

S__34267139

4. Sparkfun Audio-Sound Breakout WTV020SD

S__34963458

5. Kingston MicroSD Card (2GB)

S__34963460

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

S__34963459

7. 7 Jumper Wires

S__34963461


◯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 (http://www.buildcircuit.com/how-to-convert-mp3-and-wav-files-to-ad4-format-wtv020sd-tutorial/) 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

S__34267138

2. A USB cable (Type A to B)

S__34267145

3. A Breadboard

S__34267139

4. A LED (5mm)

S__34267140

5. A Resistor (220ohm)

S__34267141

6. Two Jumper Wires

S__34267142

◯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.

S__34267143

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

S__34267144

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!

How to blink a LED light on Arduino

I started leaning Arduino these days and I am totally into it! The hardware stuffs have so much fun! I want to share what I learned a little bit about Arduino which is about how to blink a LED light on Arduino. So here is the easiest project that you can do.

◯What you need

  1. Arduino Uno

IMG_3198

    2. USB cable (Type A to B)

IMG_3199

◯What you code

In my tutorial, I will try to blink for each two second.

◯Explanation of each line of code

・#define LED_PIN 13

// This is able to define LED_PIN 13 as a constant value. (By you just change the code you define when you want to change, you can replace all the programming you code. Which means you do not have to change every single line of code.)

・void setup() {

 pinMode (LED_PIN, OUTPUT);

}

// It initializes the digital pin which is 13 from #define LED_PIN 13.

・void loop()

// The loop function is the function that runs repeatedly.

・digitalWrite (LED_PIN, HIGH);

// This turns on the LED light.

・delay (2000);

// Milliseconds. In this case, 2000 means 2 seconds.

・digitalWrite (LED_PIN, LOW);

// This turns off the LED light.