Verilog-A: A PWM controller

Below is the procedure of a PWM veriloga controller created in Verilog-A language (behavioral description language)

So, I need a PWM controller which is basically the block the duty cycle of which will vary in dependence of the control pin voltage. The previous picture shows the output of the controller (red) with input applied control voltage (green). The frequency is constant.

Continue reading

Remote control for the fan

It was a hot, really hot, really very hot summer in 2012 in place where I used to live. I bought some cheap fan, though it was quite powerful, but there were two major drawbacks for me:

  1. No remote control
  2. No timer for scheduling switching off, let say at night. And I did not want it to make noise a whole night.
a fan with the remote control
Continue reading

Voltage supply 12V, 5V for the audio-amplifier

Now it is time to provide an appropriate voltage supply for the audio-amplifier. Since I care about the noise and the amplifier is dedicated to work from the outlet only, I decided to move in the linear stabilization direction.

What do I want?

  1. The +12В voltage for coolers and relay, which in charge of the stand by mode.
  2. The +5В voltage for everything else, I have a lot of “everything else”, so I need to project a lot of different connectors.
  3. Powerful output capable to provide enough of the power for everything I have.
  4. To not forget to put all powerful transistor underneath of the radiators and coolers.
  5. Add outputs for indications and switches.
Continue reading

A logic analyzer in Pickit2

I was debugging IR protocol RC5 and was regretting again and again that I still don’t have a scope at home or at least some small handy logic analyzer. All of a sudden I found the interesting item in the tool menu of Pickit2 software:

I completely forgot that the tool has a couple of useful items – uart, the logic analyzer, some kind of the debugger tool.

Continue reading

Running the local wordpress on the docker

The post-instruction me not forget the pain and the flow I used for it.

So I’ve heard recently about the docker and I really liked the idea to have a self-container with basically anything you want to run and test. Why I was thinking about it? Because I always was afraid of what will happen if my provider will kick me off the hosting and will I be able to move my backups to a new server with minimum effort and pain.

A long time ago, I tried to create a local server with a lot of crap settled on my pc. It worked out, but I really did not like the way how I was doing this. The idea to have it in a single self-contained place where I can (theoretically) easily move it to another server with docker running without any struggle seems way more attractive.

Continue reading