Skip to main content

Posts

Showing posts with the label Code

Simple Low Cost Digital Code Lock

Many digital code lock circuits have been published in this magazine. In those circuits a set of switches (conforming to code) are pressed one by one within the specified time to open the lock. In some other circuits, custom-built ICs are used and positive and negative logic pulses are keyed in sequence as per the code by two switches to open the lock. Circuit diagram : Simple Low-Cost Digital Code Lock Circuit Diagram A low-cost digital code lock circuit is presented in this article. Here the keying-in code is rather unique. Six switches are to be pressed to open the lock, but only two switches at a time. Thus a total of three sets of switches have to be pressed in a particular sequence. (Of these three sets, one set is repeated.) The salient features of this circuit are: 1. Use of 16 switches, which suggests that there is a microprocessor in-side. 2. Elimination of power amplifier transistor to energise the relay. 3. Low cost and small PCB size. An essential property of this...

8051 LED TOGGLE PROGRAM CODE

You might have seen a " Hello World! " program code example while learning some programming language. While it is useful for getting familiar with the basics of that language, it also gives you a head start in that environment. If you ever want to learn some new programming language, you might want to Google out a "Hello world!' program code to get started. The code I am about to discuss serves the same purpose for the 8051 microcontroller because it is the most simplest task to perform. Play close attention if you want everything to work properly. READ MORE

Pseudo code

Pseudo-code is a tool that can be used to express algorithms more precisely Pseudo-code is a combination of programming code and ordinary English Pseudo-code allows algorithms to be specified precisely without having to worry about programming language syntax There is currently no firmly established standard for Pseudo Code Pseudo-code is not actually executed on a computer, it simply provides a means for programmers to "Think out" their programs before they implement them A carefully prepared pseudo code program can be easily converted to a programming language such as C++ or Java. HOW TO WRITE PSEUDO CODE? Any algorithm will eventually need to have its instructions performed by a computer For this reason the keywords used in Pseudo code are based on the main functions fo a computer. Rules for Pseudo-code INPUT READ get input from a file GET    get input from the keyboard ARITHMETIC / CALCULATIONS +_ * / ( ) = OUTPUT PRINT output to a printer WRITE output to a file DISPLAY o...