HELLO, I AM Plamen Todorov.

Welcome to my personal web corner!

 

ABOUT ME

# Hello, I am Plamen, a web developer with a passion for clean, flexible and secure web and standalone applications. I am currently studying Network Technologies at NBU but I have been developing for more than 6 years now and I have expertise in PHP(OOP, Zend/Codeigniter frameworks), MySQL, jQuery JS(+jQuery UI), HTML, CSS, C++. I also have experience in Ruby on Rails, Bash Scripting, Arduino, FirebirdSQL, MongoDB, Java(Processing), Server Administration and Electronics.

  • MOVIES

    WHAT I WATCH

    #

    I'm heavily into movies and an avid follower of all the serious titles that fall into the drama, crime and thriller genres.

    My favourites are The Godfather, The Shawshank Redemption, Schindler's List, Goodfellas, City of God, Forrest Gump, Leon, The Green Mile, Snatch... a month will not be enough to list them.

  • MUSIC

    WHAT I LISTEN

    #

    I love listening to something when I rest, work or drive. I have a very colourful taste for music. Starting from the great 2Pac all the way to Sade and Diana Krall.

    When I'm home and resting I usually listen to jazz-pop on my DIY audio system. I'm a huge fan of DIY audio and you can check out my recent projects in the blog section.

  • EDUCATION

    WHAT I LEARNED

    #

    I graduated from the Foreign Language School based in Pleven, Bulgaria in 2011. The languages I studied include English and Russian.

    I am currently studying "Network Technologies" at the New Bulgarian University in Sofia, Bulgaria. I chose this particular university because it's very flexible and allows me to work a full-time job.

  • WORK

    WHAT I DO

    #

    I currently work as a PHP developer at Mobile Innovations Jsc. based in Sofia, Bulgaria. I also make time for occasional side projects after work.

    I have been working as a freelancer for more than 4 years but I decided to go for a more dedicated job.

 

PORTFOLIO

Skills // OOP PHP, Codeigniter, Zend Framework, CakePHP, HTML(5), CSS(3), Javascript, jQuery, jQuery UI, MySQL, Firebird SQL, SQLite 3, Linux, Networking, Drupal, Wordpress, Joomla, Adobe Photoshop, C++, Java(Processing), GPS, Arduino, Electronics.

Timestamp to sentence conversion
Convert a timestamp to "X hours/... ago" format
      
// Converts a timestamp to "X days/weeks/months... ago" format
private function ago($timestamp){
    // Time difference = current timestamp - supplied timestamp
    $difference = time() - $timestamp;
    // Period names(single)
    $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
    // 60 secs per min, 60 mins per hours, 24 hours per day and so on
    $lengths = array("60","60","24","7","4.35","12","10");
    // Choosing the most suitable period and dividing the difference
    for($j = 0; $difference >= $lengths[$j]; $j++) {
        $difference /= $lengths[$j];
        $difference = round($difference);
        // Add "s" to the end of the period if it's >1
        if($difference != 1) { $periods[$j].= "s"; }
        //Construct the sentence
        $text = "$difference $periods[$j] ago";
    }
    return $text;
}
            
Get the posts from a Tumblr blog
you can see an example on ptodorov.com
      
function list_posts($url, $type='')
{
    if ($type=='') {    $assembled_url  = $url.'/api/read'; }
    else {              $assembled_url  = $url.'/api/read?type='.$type; }       
            
    // Load XML feed from the tumblr blog
    $xml   = simplexml_load_file($assembled_url);
    // Fetch the posts
    $posts = $xml->xpath("/tumblr/posts/post");
    
    // Customize data
    foreach ($posts as $post) {
        // Form a "posted on" datestamp
        $post['posted_on']       = date("d.m.y", (int)$post['unix-timestamp']);
        // Form a reblog url
        $post['reblog_url']  = "http://www.tumblr.com/reblog/".$post['id']."/".$post['reblog-key'];
                       
        // You can do something to posts of type "regular"(or photo, video, quote etc.)
        if ($post['type']=="regular") {
            // Do something with this post
        }  
    }
    return $posts;
}

// You just need to call the function like that:
$posts = list_posts('http://YOURBLOG.tumblr.com');

// - or - (this gets only posts of type "photo")
$posts = list_posts('http://YOURBLOG.tumblr.com','photo');
            
 

DIY BLOG

  • Playstation 3 NAND Downgrade guide ( CECHC04 / COK-002 , Teensy 2.0++)

    AUTHOR: Plamen // Tags: ps3, ps3 nand, ps3 teensy, teensy2.0++, COK-002, CECHC, CECHC04, nand testpoints, teensy testpoints, teensy nand, progskeet, infectus, ps3 downgrade, playstation

    0 COMMENTS

    After searching for some time on the Internet on how to downgrade a 60GB PS3 with the COK-002 board, I couldn’t find a guide which explains which testpoint on the COK-002 that is in my PS3 corresponds to the appropriate NAND chip leg. The only thing I could find is that I can use a NAND CLIP to read/write the NANDs but I didn’t feel like giving 60$ and waiting 15 days for a NAND clip that I will use only once.

    There are 2 images I found showing which testpoint corresponds to every pin of the Progskeet v1.2 board and the same image for the Infectus board, but I could not find such an image for the Teensy++ 2.0, so I used the image for the Progskeet, along with an image of which Progskeet pin(GP1 etc.) corresponds to which NAND chip pin name (WP, ALE, CLE, I/O1 etc.) to create a diagram of which testpoint on the mainboard goes to which leg of the NAND chips made by Samsung.

    image

    CLICK ON THE IMAGE FOR BETTER RESOLUTION

    So now you can use this diagram not only for downgrading/dumping/writing the NANDs with a Teensy++ 2.0 board, but with any other board available on the Internet.

    Important!

    You must provide a stable 3.3V PSU to both the PS3 board and the Teensy, and don’t forget to unite the GNDs. You can use any PSU which outputs 3.3V @ 1.8A+, the easiest option will be to use a PC PSU.

    Short list of the downgrading procedure:

    Prepare your Teensy++ 2.0 by using the teensy_loader applications to flash the NANDway .hex file into it Install Python for Windows and PYserial Find out which COM port does the new Teensy NANDway use by opening the Device Manager and looking into the Ports(COM&LPT) category Take apart your PS3 using one of the million videos online for reference Very carefully solder all the wires according to the diagram above Solder the other end of all the wires to the teensy board Find a 3.3V 1.8A+ PSU and solder it to the PS3 mainboard(see the diagram) and to the Teensy++ 2.0 Solder the Teensy++ 2.0 GND to the PS3 mainboard GND Now on your PC, with the PSU on, the USB cable connected to the Teensy++ 2.0 board run the NANDway python script by issuing the following command in CMD: “NANDway.py COM4”, where COM4 will be the port number you seen in the Device Manager. You’re done :)

    Tools used to dump/downgrade/write the NAND chips:

    Teensy++ 2.0

    NANDway. Now united with NORway in the same repo.

    Useful information on the Teensy++ 2.0 PS3 topic here.


  • #  
    Click the icon to zoom

    AUTHOR: Plamen // Tags: olympics, olympic games, wrestling, savewrestling, sports, 2020

    REBLOG

    One of the dumbest decisions ever made in the history of the Olympics!

  • Quote...

    AUTHOR: Plamen // Tags:

    REBLOG

    The only true wisdom is in knowing you know nothing.
    - Socrates

  • Quote...

    AUTHOR: Plamen // Tags: apple, aapl, finance, market cap, money

    REBLOG

    The comment pointed out that the COMBINED market caps of Microsoft, Google, Facebook and Amazon, four of Apple’s major peers in the tech world, still didn’t equal Apple’s. Total market cap value of the four companies equals $630.95B. Meanwhile, Apple currently clocks in at $632.56B. Just staggering when you think about it. Especially when you consider that Apple’s market cap in 1999 was only $9.29B.
    - Google Finance

  • A solid-state tale. My favourite amp.

    AUTHOR: Plamen // Tags: amplifier, randy slone, solid-state, 2sk1058, 2sj162, zus amp

    0 COMMENTS

    After finishing my last solid-state amplifier I was away from the DIY audio scene for some months but a few weeks ago something bad happened to my last amp. My roommate was helping my move my audio components from my car trunk to my apartment and he accidentally dropped my solid state amplifier down the stairs. The amplifier didn’t have an enclosure and all the components were mounted on a wooden board so you can imagine what happened to the PCBs after that accident. It was time for a new build! After browsing the Bgaudioclub forum I came across a great thread about the Randy Slone’s favourite amplifier schematic from his book The Audiophile’s Project Sourcebook. I don’t know if it’s ok to post the schematics here, but if I infringed any copyrights please drop me a mail to remove it.

    As the schematic is relatively complex for a homemade PCB. I found out that a forum mate had some PCBs left and I bought two. Then I ordered the parts required for this build from Comet/Farnell. The problem was they didn’t have the 2SK1058 and 2SJ162, so I ordered them directly from the USA to be sure that I won’t come across fake transistors. A few days later I had everything to begin with the build.

    Almost all the components on the PCB were SMD including many transistors and I don’t have a reflow station so it took a some hours to solder everything on both sides of the PCBs. After I soldered everything, mounted the transistors to a heatsink and connected the cables I plugged the amplifier into the mains. Hm, there wasn’t anything coming out from the speakers… I wondered what’s wrong, but then I pressed play. The amplifier was perfectly working, it was so quiet that I could not hear any noise coming from my speakers… NICE!

    There are silicone insulation pads between the transistors and the heatsink, I just cut them to match the size of the transistors and therefore you can’t see them.

    The PSU:

    It is a classic unregulated PSU consisting of a 500VA copper shield insulated transformer with a 39-0-39VAC secondary, 4x HER607 diodes shunted with 4x 33nF caps and 2x 15,000uF/63V filter capacitors(+100nF MKPs). An EMI filter is added before the trans.

    First impression:

    My first impression of this amplifier was “WOW”… As soon as I pressed play the room was filled with warm yet very dynamic sound with plenty of bass considering my bookshelf speakers /B&W 685/. I listened to the following tracks at first: Sade - Jezebel, Sade - No Ordinary Love, Candy Dulfer - Lilly Was Here, AYO - Without You, Zazz - Je Veux, Steve Strauss - Mr. Bones and some orchestra.  I knew that the 22uF bipolar Nichicon Muse at the input was not the best choice for this amplifier/for any amplifier/ but I still liked the sound. After an hour or so listening, the capacitor started to settle down and the sound became more transparent and colorful. I didn’t have enough time to let the amplifier settle down and listen to it because I went on a vacation for a few days. I will post a follow-up with more details about the build and the sound when I get back in a few days.

    So far this is the best DIY solid-state amplifier I’ve ever heard!


  • TDA1541 and ECC88 DAC Part 1

    AUTHOR: Plamen // Tags: dac, ccda, ecc88, tda1541, dir9001, spdif usb, non-oversampling

    0 COMMENTS

    It all started a few months ago when I put together a TDA1541+OPA49720 schematic on an experimental board along with a regulated PSU based on LM317/337. The plan was to push the digital signal from PCM2707 to the TDA1541 via I2S. The moment I started this thing I was immediately amazed by the sound of TDA1541, it sounded very warm to my ears and I decided I need to finally build a proper USB DAC, as I listen to all my music collection(FLACs,APEs,WAVs) with my PC as a source.

    However, at that time I didn’t have enough time to continue with this project so I put everything in a cupboard and now I decided to finish it finally. The schematics were revised and SPDIF input is now planned along with the USB so DIR9001 is needed.

    I found a nice PCB(thanks to Simonov) from my favourite forum Bgaudioclub to move over the parts from the experimental PCB as a PCB is always a better option, especially for audio/video circuits which can easily “catch” RF noises.

    Click for the first part of the DAC schematic (before the tubes).

    PCB picture:

    A forum mate’s implementation as mine is not ready yet. Pictures of my DAC coming shortly.

    As for the tube stage I decided to use a CCDA circuit inspired by a post in the diyAudio forum. The SK170 is used to null out the DC voltage offset in the output of the TDA1541. As you can figure out, the OPAMP section of the board above can be obstructed when using a tube output stage like the one I’m writing about. Here is my redraw of the circuit. The output is around 1.2Vpp which is enough for my purposes.

    And the PSU:

    As you can notice, this PSU has an EMI filter circuit before the transformer. The transformer has 2 secondary windings - 250VAC and 7-12VAC. The anode supply is then filtered and regulated by a capacitor and an IRF840 mosfet. The voltage rises slowly to keep the tubes safe by charging C3 through R14 to a reference voltage created using 4x75V zener diodes(D1-D4) which makes the regulator output 243V after the ~7V dropout of the mosfet. The heater supply is a classic LT1083 regulator circuit. Output voltage must be adjusted to 6.3VDC via R17. If you have a transformer with a 6.3V secondary you can heat the tubes directly from the secondary winding dropping the heater supply part, but that can increase hum.

    I use PCM2707 in a standard circuit for a USB to I2S converter, in order to add an USB input to the DAC. A post will follow with pictures and sound quality review when my DAC is completely ready.

    Thank you for reading.


  • Quote...

    AUTHOR: Plamen // Tags: audiophile quote

    REBLOG

    An obsession to recapture the musical language of the past slides into the production of a new manifold of information. More and more time, care and money is invested in the medium of sound reproduction; more and more effort is expended to control the listening environment. Even the electricity coming into the house is suspect as a possible source of distortion.
    -

  • Grounding of power amplifiers

    AUTHOR: Plamen // Tags:

    0 COMMENTS

    Ground loop currents flow through A -> B to the protected earth at point B, and then to mains ground via B -> C. They cannot flow through the audio path so this topology is resistant to ground loops even with unbalanced inputs. The limitation on system performance in the presence of a ground loop is now determined by the voltage drop in the input cable ground, which is outside the control of the amplifier designer. A balanced input in theory cancels out this voltage drop completely.

    Seen in Audio Power Amplifier Design Handbook 5th Ed. by D.Self


  • My first tube amplifier (Part 1)

    AUTHOR: Plamen // Tags: e180, e180f, 6b4g, 6b4-g, vacuum tube, tube amp, amplifier, 5z4

    0 COMMENTS

    After discussing the schematics with members of Bgaudioclub I decided to build my first tube amplifier using the E180F and 6B4G vacuum tubes. I drew the schematic(thanks to 50AE) in Eagle and I will be starting to build this amplifier shortly. The costs will be more than in the solid state amplifiers I have built so far, therefore I need to spare some cash first.

    The schematic:

    As you can see the schematic includes an EMI filter before the transformer and makes use of 5ц4м(5z4) as a full-wave vacuum tube rectifier. The transformer has secondary windings outputting 290-0-290VAC, 5VAC, 6.3VAC. The combination of D1,D2,RP2 and C10 is a “hum control” circuit I saw here as it is recommended for directly heated tubes with AC. There is nothing fancy in the other part of the schematic. I expect this amplifier to have a solid and balanced sound which is not too coloured as the state of the tubes matches their documentation, yet nice to listen to. I will keep you posted when I have any progress on this project. Feel free to comment the schematic! Thank you for reading.


  • Plamen's LM3886 Gainclone

    AUTHOR: Plamen // Tags: lm3886, gainclone, gaincard, chip amp, 3886, amplifier

    0 COMMENTS

    Concept:

    As this was my first DIY amplifier I decided I need to create something easy to assemble yet good sounding. I started to plan the build. After some reading I decided to use the schematic posted by Alex Wong for 2x LM3886 per channel in parallel

    A DC speaker protection circuit is added and therefore I needed another small transformer to power it. I also added and EMI filter before the transformers which greatly reduced the hum I can hear from the speakers.

    PSU:

    As this is not a top-notch sonic quality amplifier I decided not to spend a fortune on the PSU. I also think that this particular amplifier won’t sound much different with a regulated PS. I don’t have schematics for the PS, but it’s just a 400VA 2x25VAC toroidal transformer > 2x 20A rectifiers with each diode shunted with a 10nF cap > 8x 4700uF 50V Low-ESR caps. If you decide to build a Gainclone I can tell you that the filter capacitors in the PSU have tha largest impact on the sound characteristics of the amplifier so be sure to experiment a bit with their capacity/type. All AC cables are twisted to reduce noises. The yellow DC cables are made of 1.5mm2 solid core OFC.

    Enclosure:

    I really wanted a good and solid enclosure which still doesn’t look like most of the DIY amplifiers I see on the internet. I really liked the enclosures Alex Wong uses in his projects, especially BPA300, but I really didn’t feel like paying 100$ for an enclosure of a 100$ amplifier… So I decided to DIY a bit. The floor and the right side of the box are cut from leftovers of a laminate flooring from my apartment using a regular cutting saw table and then put together using little aluminium profille that I had lying around. The heatsinks are then screwed to the lower panel.

    The upper/lower/front panel is made of a bent material called Etalbond but black or white plexiglass will look even better. As you can see the potentiometer is put on a L-shaped piece of aluminium bolted to the wood panel and it’s shaft goes through a hole in the front side of the Etalbond/Plexiglass panel.

    Conclusion:

    I had a great fun building this amplifier and I recommend it to beginner/intermediate users of the DIY audio scene. It sounds good, especially with a tube preamplifier. I’m sure you don’t expect that sound from a chipamp, but LM3886 and LM1875 are really good. I gave this amplifier to my brother as a present because I am planning to build my next solid-state amplifier in the next few days. Thank you for reading, now grab the soldering iron and do something cool!


Only the last 10 posts are shown until I'm ready with the pagination.

CATEGORIES

LATEST COMMENTS

MY TWITTER

 

CONTACT ME

Address // Studentski Grad
Sofia 1700, Bulgaria

Telephone // +359 8825 12345