DIY Power and Power Factor Meter

DIY Power and Power Factor Meter

In this post, I will show my DIY power/power factor meter. The module itself was bought(of course) I just put it in an enclosure and added some cables to make measurements easier. This way I have a handy and cheap tool for measuring the power and power factor of any device that I connect to it. This thing is no professional instrument with great accuracy but it’s good enough for doing some basic measurements.

TV RCA Image Output with Arduino featured image

Arduino TVout library Image Output

In this tutorial, you will learn how to output video from an Arduino and display it on a TV. Here we will specifically, see how to output an image. If you would like to know how to make the adapter or know more about the other functions available(outputting text, shapes, pixels) in the TVout library see this post.

TV RCA Output with Arduino

Arduino RCA Video Output to TV

In this tutorial, you will learn how to output video from an Arduino and display it on a TV. We will make a board/cable adapter that will connect the Arduino to the TV through the RCA input. Then we’ll look at some of the functions available to us in the TVout library and use them to output something to the screen.

C# Code Snippets Method Hiding vs Overriding

C# Method Hiding vs Overriding

In this tutorial, we will see the difference between method hiding and overriding in C#. The difference between method hiding and method overriding becomes evident when a class object is used polymorphically. The child version of the method gets called only when the method is overridden. If the method is hidden(new keyword) the parent version of the method gets called. Meanwhile, if we don’t call a method polymorphically the new keyword will act in the same way as the override keyword does and hide the original parent implementation of the method.

C# Code Snippets Using Keyword

C# Using Keyword

In this tutorial, we will take a look at the using keyword in C#. The using keyword can be used as a directive to include a namespace or it can be used as a statement. Using it as a statement the using keyword ensures that the dispose() method gets called even if an exception occurs.

C# Code Snippets Interfaces

C# Interfaces

In this tutorial, we will take a look at interfaces in C#. When I was first learning about interfaces I was given this analogy: “Interfaces are like contracts that specify what a class has to implement”. When a class uses an interface it must implement everything that the interface specifies.

C# Code Snippets Extension Methods

C# Extension Methods

In this tutorial, we will take a look at extension methods in C#. If you have a class that you don’t own or is sealed you won’t be able to add anything to it. In such cases, you can use extension methods which will be “glued” on to the class. This enables you to add your code to a class without modifying it or creating a new derived class. 

C# Code Snippets Polymorphism

C# Polymorphism

In this tutorial, we will take a look at polymorphism, the virtual and the override keywords in C#. Polymorphism is one of the main concepts of OOP(object-oriented programming). It means that child classes can be viewed as parent classes at run time.  Suppose we have a method that takes a parent class as an input. We can pass it the derived class and everything will still work. This can work because the child method inherits the required members from the parent class.