Random-access memory (RAM)

It's better to have as much as possible.

Sony VAIO Laptop

Good performance.

Windows 7

Today the most common Operating System (OS).

Power switch on motherboard

Today it comes with almost every motherboard.

Graetz

AC to DC converter on board.

Pages

Wednesday, January 3, 2018

D-Class Amplifier THD, Output Power, Efficiency - TPA3116d2

After quite a while I have some time to make few posts on the blog. I'm starting with Amplifier

This is homemade D-Class Amplifier with IC TPA3116d2 (Texas Instrument). I made it for my new boombox but also to verify/confirm datasheet measurements/results. My interests were to check maximum Output Power, Total Harmonic Distortion (THD) and Efficiency. All results are shown below.
As for PCB design I used Altium Designer 17, whole design was made according to guides from official datasheet. PCB itself is 2 layer where polygon pours on both layers are used as heatsink
All components are 0805 size footprint, capacitors are X7R and LOW ESR, everything ordered from FARNELL.com all order codes are below as well.


List of equipment used:
  • ·         Oscilloscope – Siglent SDS1000L
  • ·         Function Generator – FeelTech FY2300A
  • ·         Bench power supply – Focus DC Power supply HY3005D-2
  • ·         Artificial Load  - 4Ohm/500W




Here is the internal schematic and Altium schematic



Altium Designer Schematic 

Bill of Material


N Designator Value Footprint Manufacturer Farnell
1 C16, C17, C18, C19 220nF/50V 0805 Kemet 1288261
2 C26,C27,C28,C29 680nF/50V 0805 Kemet 1414702
3 C20,C23,C30,C31,C32,C33 1nF/50V 0805 Kemet 1414660
4 C57,C34,C37,C38,C40 10nF/50V 0805 Kemet 1414662
5 C21,C24,C58 100nF/50V 0805 AVX 1740673
6 C11,C12,C13,C14,C15 1uF/50V 0805 Multicomp 1759502
7 C22,C25 220uF/35V 0805 Panasonic LOW ESR 1219473
8 U1 TPA31162 TSSOP-32 Texas Instruments 2144259
9 R10,R15,R16,R17,R18 3R3 0805 Multicomp 2447656
10 R13, R11, R14 100k 0805 Yageo 9237879
11 R12 20k 0805 Multicomp 2074395
12 L1,L2,L3,L4 10uH Bourns 2374152



Top Assembly Layer



Bottom Assembly Layer

Top Copper Layer

Bottom Copper Layer

3D Top 


3D Bottom






How it looks when printed out




Toner Density Spray 
Toner Density Spray is awesome for those who have old printers or printers with 600 DPI but also saves the thing if you don't want to print 2 pcs then glue it to fit perfectly.

Definitely RECOMMEND! Search in your store or on the internet. 

Price is around  15-20$




This is my illuminator with broken VTF125 bulb


Actual finished PCB




Measurement setup


 THD measurements were conducted under this conditions:
  • Supply Voltage U=12V
  • Sine wave frequency  f=1kHz
  • Input Signal Amplitude Uin=0.5V
  • Output Signal Amplitude Uout=1.5V
  • U1, U3, U5 is 1.st, 3.rd , 5.th Harmonic
FFT - Fast  Fourier Transformation




U(Supply Voltage)
Input signal Amplitude(sine f=1kHz)
Uout
U1
U3
U5
12V
0.50V
1.5V
580mVrms
6.3mVrms
3.3mVrms




According to datasheet difference in THD is 22% .


Output Power, Efficiency is shown below:

Supply Voltage(U)
Supply Current(I)
Uin(sine, f=1kHz)
Rt (Load)
Up-p
Uout(peak-peak
P

Pout
h
12V
1.46A
1.3V
4Ω
10.6V
17.52W
14.04W
80.16%









According to datasheet 15W I measured in real environment 14.04W which is 0.96W or 6.8% less than manufacturer said. Which is quite good

You probably noticed the difference between Pout and P (all power) that's because of dissipated power which converts to heat on components with real impedance (parasitic resistance).
Dissipated power in my measurement can be calculated in 2 ways:





While I was doing my measurements I've also noticed that there are no maximum Amplitude of  Input Signal in datasheet so I measured that as well.
Maximum Amplitude is a bit smaller than we can see Clipped signal on Oscilloscope

As we can see firstly there is cutting on the negative half-periode than positive half. That's happening due to low bias voltage.

Input Signal Amplitude
Clipping voltage
Half periode
1.3V
4.4V
Negative
1.5V
5.2V
Positive


First cutting negative half

Cutting positive and negative

Total cut off


To summarize we can see that there are some deviations from official datasheet due to lack of mathematical analytic formulas we can't confirm our measurements nor design amplifier to meet our special requirements. That's not reason that this amplifier is not good enough to use for your boombox, speaker box, bluetooth, bigger audio systems (2.1) etc. on the contrary is Perfect due to price and easy to use.






Saturday, February 6, 2016

***New Project*** First Portable PCB Saw Table

After some time creating and cutting my PCBs with hand saw I decided to stop practice that and make something more suitable for 21.st century and that is Portable MINI PCB SAW Table. Also, as all my Project are on budget the same is with this one. I made it with minimal costs, Motor was from my old electric driller, table was found in garbage only thing I had to buy and give to processing was bottom aluminum plate, motor holder and saw blade. PWM controller left from another project, case as well. So overall price is <50$


Parts:
  • 1-Electric driller with battery (18V)
  • 1-Old saw table 
  • 1-PWM controller (from ebay)
  • 1-Saw blade
  • 1-Enclosure for controller
  • 1-Green LED
  • 1-1k Resistor
  • 1-Toggle switch 
  • 20 cm of velcro




Battery from hand driller




PWM controller

This is first try with PWM controller. Everything is nice labeled on PCB so there is no problem with it at all.

Controller inside enclosure

Added LED, Toggle swithc

Front panel of enclosure

Velcro is applied on the bottom of enclosure to provide easy access to controller. It handles enclosure really good without potential moving while carrying around.
Velcro







Motor holder with saw blade




 Battery & Enclosure












Take a look on PCB Saw in action below:





Thanks

Sunday, August 23, 2015

Music Box **UPGRADE**


Here is new old Music box with few modifications and changes. First of all I removed old Amplifier unit which was ridiculously inefficient and at the same time with very bad characteristic. After searching for new Amplifier circuit I decided to make 10W Amplifier with TDA2003. All i can tell is that was very good decision. It allows low power devices as MP3 ( mV) to reproduce great sound with 6-12V Power supply. With Solar Panels attached on the top of the box I would say it become GREEN BOX. I don't have to charge batteries anymore, it charge itself on the sun.

**Upgrades**
- New Amplifier
- New batteries
- added connector for charging
- added USB 5V charging connector/step down converter
- added Power On LED (Green)
- added New Speakers inside box
- speaker switch IN/OUT
- 2 Solar Panels ==12V

*New batteries
From some laptop. They are not normal 18650 batteries but slightly longer, they fits in 18650 charger. As for voltage they are fully charged on 4-4.05V. I'm using 3 battery connected in series. So it gives me around 12V

*Connector for charging
Normal connector from laptop adapter.

*USB 5V
I'm using internal battery for charging Smartphone/Mp3. With mini step down converter, Voltage is set to 5V even if battery voltage drops down to 7V.

*New Speakers
New speakers come from monitor. They are 8 Ohm each so in parallel 4 Ohm which is great for Amplifier.

*Speaker Switch IN/OUT
The middle unused switch is used as it was planned to switch between 2 Speakers inside box when I don't have any external Speakers or outside Speakers so you can close the box and carry it around

*Solar Panels
I bought 2 solar panels from ebay for 4$. One solar panel has 6V/160mA so with 2 panels in series I get 12V/160mA.

**AMPLFIER SPECS**
TDA2003 "10W"  sinks around 80-120mA at 12V depends on which speakers are used IN/OUT. Power supply voltage can go up to 18V with bigger Voltage you get bigger Amplitude which led to better sound.


Inside box

New Speakers

From left to right -->3.5mm input jack-->USB OUT/for charging-->5.5mm Input charging jack



2x 6V/160mA Solar Panels connected in series


That's all for now. Next thing I'm working on is new VU-Meter which will show Low Frequency (bass) on the 2 rows of LEDs

I hope you like it! Fell free to ask whatever you want.


Tuesday, December 30, 2014

Arduino Library Import & Errors

After hours of searching on Internet without success I finally find out how to import library in Arduino IDE to work properly. I will write it down so you don't need to lose couple of hours on search without results.

Firstly, internet is full of advice and ways how to import library in Arduino but for me none of these doesn't work.

After I tried import library in the way to copy downloaded library into Arduino libraries as internet says. I got errors like this:
multiple definition of `LiquidCrystal_I2C::pulseEnable(unsigned char)'
LiquidCrystal_I2C.cpp.o: In function `LiquidCrystal_I2C::send(unsigned char, unsigned char)':

What I figured out is that the way I "import" library is totally wrong.
The way I solved it is below!

  1. Download library (.zip file)
  2. Open Arduino IDE 
  3. Go to Sketch --> Import Library --> Add library...
  4. Select your .zip file of Library --> Open
  5. Now your library is Imported correctly --> Everything works, no errors!

NOTE:
Do not UNZIP Downloaded Library.



If you work with Arduino NANO and Arduino UNO the most common Error is below:
avrdude stk500_getsync() not in sync resp=0x00

To fix this ERROR Only thing you have to do is:

  1. Open Arduino IDE
  2. Go to Tools --> Board
  3. Select appropriate Arduino 
  4. That's it! Enjoy!





Thursday, July 17, 2014

How to make Positive and Negative voltage

One of the most common question when it's about amplifiers is how to make +/- voltage needed for IC-s  for instance (TDA7294 or even amplifiers with complementary transistor). btw it's not like when you connect battery in opposite direction to voltmeter and it shows negative voltage!! There are two ways how to make Negative voltage. 

 * First and the easiest way is to use two the same DC power supplies. 

 How to connect it?
  1. Connect positive(+/RED) terminal from 1st power supply to negative (-/BLACK) terminal on the second one. That will be your common terminal, ground, point whatever.
  2. You are done, but you don't know it yet. Now you have common point and if you connect your  voltmeter(-) to common point and with (+) side of voltmeter to BLACK terminal it will show negative voltage while on the RED terminal will be positive voltage. That's it, instead of voltmeter you connect you own load or voltage stabilizer.







 *Here is the second way to make negative voltage, it's a bit complicated but not too much. If you understand basics of transformers and rectification then it's no big deal. ;)

 Parts you need:
  • 1 - Transformer with 2 secondary
  • 1 - Bridge rectifier or 4 diodes
  • 2 - Capacitor usually 2200uF

Normal transformer with one secondary has 2 wire on primary(which goes to wall AC) and 2 wire on secondary(AC) while transformer with 2 secondary has 2 wire on primary and 4 wire on secondary. That's basic difference.

Now you have 4 wire on secondary. You have to connect 2 wire together but not from the same secondary it has to be one wire from first connected to one wire from second secondary and that will be your COMMON POINT. If you connect 2 wire from the same secondary you will make short circuit which can destroy transformer. So be aware what you doing.

With that COMMON POINT you have 2 more wires. These 2 wires have AC voltage you assume that we need DC voltage so we have to rectify it. You take these 2 separated wires and connect to bridge rectifier to get DC voltage. With 2 capacitors fix dumps in voltage and you are done. It will be more clear when you take a look at picture below.








I hope that negative voltage become more clearly now :) enjoy!
Like, comment, subscribe :)





Friday, July 11, 2014

LM7905, LM7906, LM7908, LM7909, LM7910, LM7912, LM7915

As 78XX version, 79XX is also voltage stabilizer. But like 7805 have +5V stable the same is with 7905 just with opposite (negative) sign or -5V that's the only difference between these two voltage stabilizer. And here also the last two digit of 79XX represents negative output voltage. More detail about power consumption you can look at my previous post about LM78XX it's the same calculation.

ATTENTION

I know a lot of people who asked me if they can normally connect +12V on LM7905 as on LM7805 and the output voltage would be NEGATIVE -5V. Answer is NO!!!! Don't even try it otherwise your IC is DEAD! It would be remarkable to connect +12V and then he convert to negative voltage. But the man who would invent that hasn't been born yet. :D  If you want stabilized negative voltage you must have negative input voltage. Now transformers with two or more secondary coil come to expression. but that in the next episode :)



They can be found in different package as well as LM78XX, that's standard type TO-220, TO-3, SOT ... more about it you can find in datasheet.



How it looks in schematic





LM79XX DATASHEET






Sunday, February 2, 2014

Power supply [1.2 - 25V, LM317]

After a quite a while, finally, I'm coming with new project.  It's about simple power supply which anyone can make at home for really cheap price ($10) without transformer. It gives max 25V with 2A. Why can't give more than 2A? It's because LM317 can max handle 2A (TO-220 package), but i predicted that maybe it won't be enough so i made PCB board which can handle at least 5-8A of course without LM317. If i want more power, with output of 5A i can easily remove LM317 and replace 2N3055 (TO3 package) but then you need bigger cooler, but everything will working perfect. Also LM317 can handle up to 37V. That's not everything i assumed, also there is Volt,Amp meter integrated on board and stable +5V (LM7805) I'll show it below

Parts:
  • 2 - Electrolytic capacitor - 2200uF/35V
  • 4 - Block capacitor - 100nF
  • 2 - Bridge rectifier - 2W10
  • 1 - Green LED
  • 1 - LM317
  • 1 - LM7805
  • 1 - Resistor - 1k5
  • 1 - Potentiometer -10k
  • 1 - Resistor - 460Ohm
  • 4 - Terminal connector -1x2 (you can use them or you can solder wire direct to PCB)
  • 2 - Header - 1x2 (Amp, Voltmeter again you can use them but you don't have to, It's up to you)


 What you MUST consider before you make it

First some general knowledge, when you connect 120AC[US] or 230AC[EU] to appropriate transformer you will get 12, 15, 18, 24AC etc. on secondary,  it's variable, depends of transformer. When you finish the rectification (AC to DC) you don't have 12, 15, 18, 24DC anymore. Actually you have the nominal secondary voltage multiplied with square root of 2. So it looks like 12*√2=17V,  15*√2=21V, 18*√2=25V, 24*√2=34V. Therefore you have to be aware of this, example: if you want 12V power supply and you have transformer with 12V AC on secondary, let's say you put 1000uF/16V Capacitor but your DC is 17V so when you connect this to city network, your capacitor is dead.

Second, YOU MUST BE CAREFUL when you working with 120AC or 230AC it can kill you instantly.




Schematic


Power supply schematic



Power supply PCB

PCB 3D TOP


PCB 3D BOTTOM



You can find and download ALTIUM DESIGNER file (PCB, Schematic) on the link below.

DOWNLOAD HERE

I hope you like it :) Thanks