Billionaire Elon Musk: How I Became The Real 'Iron Man'

Hey there~

Here is another inspiring video that I going to share with you guys.

Elon Musk is well known as a risk-taking and young entrepreneur.

To become successful, it is always good to learn from the successful one. Elon Musk is one of the prefect example that I think we can learn from.

From this video clip, I learn that one should bear all the pains along the path to success. I respect Elon Musk's vision that one day he want to change the course of the world and clearly he is doing just right. 3 companies that he own are changing the lifestyle of US people and soon the world. He believe in himself and willing to take risks to achieve his dream.

But he is a human too, his success doesn't make him any more than us. He doesn't foresee the future, instead he building his own future by vision, plan, intelligent and action. I believe risk-taking is a must to success, who afraid of changes and only willing to stay at the comfort zone can't do any good.

In the end, I would like to say is that: Don't believe in taking the right decisions, however do take decisions and make them right! Enjoy the video!


Read More

GoPro: Fireman Saves Kitten

What an inspiring short video clip!

Life is the most important asset that we everybody own in this world, saving a life means a lot, sometimes a small move can change one's world. 

Let's get out there and do good to people, even a kitten is a life with feeling and emotion that we ought to help! 

Salute to the fireman!


Read More

Quartus II: XOR gate using verilog design

Sup,

After learning the basic functions of Quartus II, we are going to learn to design a digital system using verilog design.


In our example, we are going to use design an XOR gate. 

First, we have to know the inputs and outputs of our XOR gate. In this case, our inputs are X and Y, our output is Z.


After that, we have to obtain the boolean expression, as shown above. 


Now let us start designing using Quartus II. Create a new project and make sure to remember the name of our project. We need to use the same name for our top level module later on.


Shown above is the code of our XOR gate. Everything contained in between 'module' and 'endmodule' is called a module. And 'xorgate' is the name of this module. Note that it is the same as our project name as mentioned earlier.


Every inputs and outputs variable in this module must be declared as shown above. 


Declaring x and y as inputs.


Declaring z as output.


Writing the boolean expression of our XOR gate. The ^ symbol is the symbol for exclusive OR.


Simulating our circuit, we get the waveform above which corresponds to our truth table.

That's all for today, we'll continue in the next post with another example.

Peace out.











Read More

Fundamentals of Digital Logic with Verilog Design-Third edition ebook

Sup,

this is an ebook on digital system design using verilog. 
Click on the download link below to download.


Read More

EMT: 3rd week part 1 Electric Field Intensity of a finite and infinite surface of charges

Hey there,

Today we learn about the Electric Field Intensity of a finite and infinite surface of charges. 

Coulomb's law still applied in this topic, but dQ will be different.    (2 variables). 

Since we already learn about Coulomb's law, lets straight get into one of the example to have a quick but better understanding on this.

Example:

A circular disk of radius a is uniformly charged with ps C/m2. If the disk lies on the z = 0 plane with its axis along the z-axis,

(a) Show that at point (0, 0, h)


(b) From this, derive the E field due to an infinite sheet of charge on the z = 0 plane.

Solution

(a)
The question stated that the unit of ps is C/m2, which means that it is a surface charges question. 

So the answer is already given, all we need to do is to prove it.
Please try to read the solution below carefully:

the only different here is dQ = rdrdphi. So, double integration is required to complete this question instead of only one integration needed when dealing with line charges.

Since we dealing with circular disc with constant density, we assume that vector r will eventually been all cancelled out, so only magnitude with z is existed.


(b) As a approaching infinity,  the equation we obtained in (a) can be further reduced.


Hope you guys can understand surface charges concept with this example!

See ya!












Read More

Functional Simulation of Verilog Code in Altera Quartus II - XOR gate

Hey there~

If you still having trouble with Altera Quartus II, this short video that I found on the internet is extremely useful. Just watch the video carefully and follows the steps. 




This is a simple video on building a XOR gate and obtain the waveform by using vector waveform plot. 

Happy Trying!

Read More

Quartus II: Basic Tutorial

Sup,

this is going to be a starter guide on how to use Quartus II. 


1. First, go to File > New Project Wizard


2. Choose a directory and a name for the project, then click Next.


3. Click Next


4. Choose 'Cyclone II' as family, then choose EP2C35F672C6 as device. We can also choose 'Auto device selected by the filer'.


5. Click Next


6. Click Finish and we have created our project file.


7. We need a text editor to start editing our code. Click File > New, choose Verilog HDL File and click OK.


8. We need to first save our file. Go to File > Save As. Use the name of our project as the file name. Click Save.


For our purpose, we are going to use the above example. It is a simple two-way light switch. The truth table for every input is as shown.


9. Input the code above into the text editor. Don't worry about the code, we are going to go over it later on.


10. Now we are going to compile our code. Go to Processing > Start Compilation or click the button shown above.


11. A successful compilation will look like the picture above.


12. Now, we will want to simulate our design by using a waveform editor. Click File > New, choose 'Vector Waveform File' then click OK.


13. Save the waveform file first, again the same name as our project.


14. Go to Edit > End Time, set the time to 200ns, then click OK.

15. Select View > Fit In Window to fit the entire time range into our screen.


16. Now, we want to include out inputs and output. Click Edit > Insert > Insert Node or Bus. Then click Node Finder.


17. Change the filter to Pins: unassigned, click List, the inputs and outputs will appear on the left hand column. Click the arrow sign to add them to the right hand column. Click OK.


The waveform of the inputs and output will appear, but we still have to edit the inputs before we start our simulation.


18. Click the 'Waveform Editing Tool' icon. Click and drag to select a section of the waveform. Then choose the logic '1' or '0'.

All is set and we are going to simulate our design.


19. But before that, we need to set the simulation mode. Go to Assignment > Settings, click 'Simulator setting', then change simulation mode to 'Functional'. Click OK.

20. After that, click Processing > Generate Functional Simulation Netlist.


21. Go to Processing > Start Simulation, or click on the icon shown above.


22. Lastly, click View > Fit in Window again to view the entire range of our waveform. There we go. The waveform will corresponds to the truth table earlier.

Peace out.
Read More

EMT: 2nd week part 3 Electric Field Intensity of a infinite line of charges

Hey there~

Since we already learn about finite line of charge, we ought to learn about infinite line of charges too.

Unlike finite line of charges, infinite line of charges is much easier to solve.





The equation only apply if the infinite line of charge is along the z-axis, if not then r is the perpendicular distance from the line to the point of interest.

Example:

Infinite uniform line charges of 5 nC/m lie along the x and y axes in free space. Find the electric field intensity at: (a) PA(0, 0, 5); (b) PB(0, 3, 4).

Solution:

(a)


(b)
I think the solution is pretty straight forward. I don't think any explanation is needed here. But just like what it stated, if the point is not along z-axis, we have to find the r which the line is perpendicular to the infinite line of charges.

Regards,

Daniel.

Read More

EMT: 2nd week part 3 Electric Field Intensity of a finite line of charges

Hey there~ Here we go!

Part 3 : Electric Field Intensity of a line of charges

Just like point charges, Coulomb's law applied but with a little bit complicated way~

Let's assume that we have a line of charges and they are all acting force upon a single point. It is very hard to use superposition in this situation. So, we need another method.

The best way is to take a small portion of line charges as sample. (We assume the charges are all the same and uniform along the line) 

Since the sample is small, we treated it as dE (small change).

Then, we just integral it with the limits which are the each end of the line. 

Let's say we have a line from A to B:

So the limits are the A and B, simple!

Generally, the equation will be: E = integrate dE~

Wonder what the dE is? 
dE then equal to the modified version of Coulomb's law, with dQ replaced Q1Q2.  

Then, what replaces dQ? Well, it depends on what type of line you going to handle, generally is pl dl. :)


Here you go:
  

Alright, so far so good! Let's move to the interesting part of this section.


Let use an example to explain for better understanding:

Find the electric field intensity about the finite line charge of uniform rdistributing along the z axis.

Solution:

The question stated that it is a finite line charge uniform distributing along z-axis, which means that the line charge is along the z-axis itself. And it seems like its electric field is spread out like a cylindrical-like field. 


Just like an antenna, my lecturer said. So we draw first to identify what it actually is:



So, we assume that there is a point nearby the line, we take a small portion of sample from the line as dQ and draw a line towards the point as dE. The distance between the line and the point is considered to be r (radius). The height of the point is z while the height of the sample is z'.

#BTW, the triangle at the right. I draw it so it is easier for you guys to see. R is actually the sum of vector of (z'-z) and r.

(Try to understand the math parts....LOL. Read carefully, this can be easier understood. Hehe.)



#We choose to use cylindrical coordinates since it is easier to solve the problem, but if you pro, I think other coordinates system also can...Haha.




OK, now to integrate the equation, there are 2 formulas that is ready for us and all we need to do is just to implement them. 



For formula no.1: x = z'-z, a = r  (This will used for integration for equation vector z)
For formula no.2: x = z'-z, a = r  (This will used for integration for equation vector r)

Now, after we complete integrate the equation, we need to further reduce it. To do so, we use a triangle approve. 

Please look at the triangle in the photo, we draw a line from b to the point and another line from a to the point. Then, we identify the angles between them as alpha 1 and alpha 2. 

Then we notice that we can substitute formulas into the equations to further simplify the solution into sin and cos of the angle.

#The equation is slightly modify to suit the triangle. It is just the trick of positive sign to negative sign. :)



Happy understanding!

Should you have anythings to ask, please comment below.

Regards,

Daniel.












      


  










Read More

EMT: 2nd week part 2 Coulomb's law + Electric Field Intensity of Point charges

Hey there~

In 2nd week, we also learn about COULOMB's law!

Here is the summary and the example.


 COULOMB's law states that:

  The force between two point charges is proportional to the product of the charges and inversely proportional to the square of the distance of separation.

To have a better understanding on the formula, consider the force between charges is affected by 3 factors:

1) Force is directly proportional to the product of 2 charges

2) Force is inversely proportional to the square of R (radius).

3) the medium, which is free space is most of the case (8.854 x 10-12)

Here you go~ the formula:


 Superposition method can be used to find the total forces act on a single charge if multiple forces present.


\qquad\mathbf F_1=k_e\frac{q_1q_2}{{|\mathbf r_{21}|}^2} \mathbf{\hat{r}}_{21},\qquad  k_e = 1 / (4\pi\varepsilon_0)


Theory part finished! Let's go to the example!



Example:

Point charges 5 nC and -2 nC are located at (2,0, 4) and (-3,0, 5), respectively.

(a) Determine the force on a 1-nC point charge located at (1, -3, 7).

(b) Find the electric field E at (1, -3, 7)


Solution:

a)

Remember that there are 4 types of sources in electrostatic? This is the type 1 which is point charge problem.

#To solve this kind of question, it is important to draw first, however the position of the charges aren't necessary to be according to the real position.



b) To calculate the electric field, E = F/Q. (Q is the charge that forces been acted upon.)




Please note that the unit of electric field can be volt/meter or Newton/Coulomb. Either ways will do it~ :) 


Hope you guys can understand the concept of Coulomb's law and the example! Hehe :)

Regards,

Daniel
Read More

EMT: 2nd week part 1 Electrostatic

Hey there~

In general, electrostatic field is the electric field that is static, not dynamic and independent of time.

Electrostatic field has 4 types of sources which are:

1) Point charge

2) Line charge

3) Surface charge

4)Volume charge

To find the total charge, we will use integration over a certain limits on a 'sample' that we take from the area that we going to measure.




Example:


1.    Determine the total charge contained in the line charge distribution rl(x, y, z) = 2x + 3y – 5z C/m extending from (3, 2, 1) to (5, 4, 7).

Solution: since this is a line charge, so only one integral is required ( 2 for surface and 3 for volume)

From the question we have 3 variable (x,y,z), so we need to convert 2 of them into 1 single variable, in this case, we choose to convert y and z into x. To do so, first we acquired the equation of the straight line between y and x, z and x. 

Then we differentiate them and substitute inside the square root equation. 



The solution is 19.9. (not sure with the positive sign, it might be negative.)


#This is just a line charge question, will upload some surface and volume charge question if I free. :)


Regards,

Daniel.
Read More

About Us

Daniel;

Chua H.S.

Popular Posts

Designed ByBlogger Templates