C# Code Snippets Delegates

C# Delegates

In this tutorial, we will take a look at delagates in C#. A delegate is a pointer to a method(basically an indirect call to the method). Delegates can be passed as input parameters to other methods. A benefit of this is that it provides flexibility. Such a method can then use the passed in delegate to call another method(callback method). This is actually the way events work.

DIY Quiet Air Compressor

DIY Quiet Air Compressor

In this post, I will show my DIY quiet air compressor. I took the compressor from an old fridge and used an old whipped cream dispenser as an air tank. The compressor is very quiet and can thus be kept indoors(under my table in fact). The air capacity isn’t the greatest but it’s good enough for my needs(doing some pneumatics experiments, solder dispenser, …). The air pressure, however, can easily get up to 8 bar(around 120 psi). In addition to compressed air, you also get a vacuum line. You could, for example, use that for making a vacuum chamber or a vacuum pick up tool.

DPS3003 DIY Power Supply Assembled 2

DPS3003 DIY Portable Lab Power Supply

In this post, I will show my DIY portable power supply. The PSU uses the DPS3003 module. This module is rated for voltages from 0-32V and currents from 0-3A. You can get other models with higher or lower voltage/current ratings. The input voltage, however, must be in the range of 6-40V and your maximum output voltage is limited to your input voltage. In my case, the battery provides around 16V to the input so the output voltage can’t go higher than that.

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.

Advertisment ad adsense adlogger