Skip to main content

Posts

A deep look at the internals of arduino IR library; how it works and how to implement one by yourself

Introduction Last few days, I have been interested in IR remotes and how they work and whether I can write a code that sends a command to my crappy Chinese receiver. I had no idea about IR remotes or how the protocol works so I had to learn a few things about it first then learn what is the exact protocol used by my receiver. This isn't an IR tutorial, there are many good tutorials that explains the concept very well out there, So I will just go quickly through it, then try to understand how some existing codes work. How does IR remote works? When you press a button on your remote control, it emits an infrared light with a specific pattern that contain information to tell your commanded device what to do. When I say pattern, I mean "Protocol", the protocol tells us how to send a specific information to a specific device.These information usually are the command (volume up,down,OK...) and the address or the device these information are sent to. There are many IR protoc
Recent posts

24h /12h Digital clock with alarm using ic555 ,7490 decade counters and 7447 bcd-7seg decoders tutorial (2/2)

Hello again! in the first part we've seen how the basic 24h clock works (the hour coulmn counts to 24 and then resets to 00). It was quite easy and there were no problems, but let's extend the idea a little bit. What if we want to design a 12h clock?  well.. it's the same idea but there was a little problem which is: when the hours reachs 12 and counts to the end of the hour 12.59 we don't want it to reach 13, we rather want it to reset to...? 01 not 00 so i had to make a small trick you'll see later. How the circuit works? It's the same circuit as the first part   but we've to edit the hours coulmn so it resets to 00 when it reachs 13 and then clocks the first coulmn of hours so it becomes 01 .. simple! So that's how i made it , the two AND gates U9 and U10 detect the case when the hours coulmn is 13 and their output(A) then will be 1.  Output A has two jobs to do : - The first is to reset the boths hours coulmn so it's

linear and switching power supply basic concepts (1/2)

I ntroduction We can divide regulators into two major types : Linear regulators Switching mode regulators In this article, we will introduce you to the linear regulators and then we will get to the magical switching supplies! Linear regulators Fig.1 Linear regulator shown in fig.2 produces DC regulated output from a higher DC input supply by simply putting a transistor in series between the input and the output. Fig.2 This series transistor  (called “ series–pass transistor ” or simply “ pass transistor ”) is operated in the linear(ohmic) region of its VI curve. That’s it,  Transistor Q1 acts as a variable resistance that drops the excess voltage across it. So it can be represented as shown in fig.3 . Fig.3 Using simple math, the voltage drop across the resistor is the difference between input and output voltages (this term is called the “headroom”) V = V (in)-V(out) If we want to calculate the dissipated (wasted) p

24h /12h Digital clock using ic555 ,7490 decade counters and 7447 bcd-7seg decoders tutorial (1/2)

This photo is from this instructables project here There are many stuff on the internet about this project, but we are gonna add something or two. This circuit was a school project and it was a 24h clock, but i decided to extend it to 12h and 24h with the transferring between them using a switch so you can choose whatever mode you want. Anyway, i made this circuit just for fun so i just simulated it on proteus, i.e we're not going into pcb design. The final project First of all we're going to divide this tuorial into 3 parts: - How it works in the 24h mode. - How it works in the 12h mode. - How to transfer between them using simple switch. So... let's get started with the first one..