Line Follower ROBOT Controlled by 2051

Kuskel Robot- This Robot use two motors control  rear wheels and the single front wheel is free. It has 4-infrared sensors on the bottom for detect black tracking tape, when the sensors detected black color, output of  comparator, LM324 is low logic and the other the output is high.
Microcontrollor AT89C2051 and H-Bridge driver L293D were used  to control direction and speed of motor.
Fig 1. Circuit diagram of my Robot.

Fig 2. Circuit diagram of Infrared sensors and comparators.

Fig 4. Position of sensors,  left hand side is side view and right hand side is top view.
Software
Software for write to AT89C2051 is robot1.hex ,which was written by C-language ,the  source code is robot1.ccompiled by using MC51 in TINY model with my start up code robot.asm .
MPEG files
Sample of competition between 2051 and 68HC11.

  • movie1.mpg (1,303kB)

  • movie2.mpg (373kB)

  • Source : www.kmitl.ac.th
    Contact Owner : plermjai@loxinfo.co.th

    7-Segment Digital Clock Circuit

    Skema Rangkaian Jam Digital

    Kumpulan Skema Elektronika- Jam Digital dengan Seven Segmen. The Clock Controller V1.1was designed to be an exemplary of using 'C' language to control timer0interrupt, 7-segment LED and keypad scanning. It provides 1-bit sink currentdriving output, for driving a relay, opto-triac, say. Many projects requiring7-segment display and keypad interfacing may get the idea from the Clockcircuit and software.

    Hardware
    Figure 1 shows a circuitdiagram of the Clock Controller V1.1. P10-P1.7 drives 7-segment commonanode LED with sink current. P3.0-P3.3 also drives a base pin of 4-PNPtransistor, 2n2907 with sink current. As shown in the figure, the 2nd 2-digitLED that connected to P3.2 and P3.3 is rotated 180 degrees to the 1st 2-digitallowing the pt. segment to be used for 1 second blinking. P3.0-P3.3 alsoconnects four momentary switches while the other legs are tied to inputport P3.4. During display and key switch scanning, a logic '0' is shiftedfrom P3.0 to P3.3,  if there was a key pressed, P3.4 then became low.P3.7 is a 1-bit sink current driving, an example in the circuit uses a2n2907 to drive a small electromechanical relay 5V, say.

    Source: http://www.kmitl.ac.th

    High Quality Intercom

    Skema Rangkaian Interkom Kualitas Tinggi
    Kumpulan Skema Elektronika- Interkom Kualitas Tinggi. This circuit consists of two identical intercom units. Each unit contains a power supply, microphone preamplifier, audio amplifier and a Push To Talk (PTT) relay circuit. Only 2 wires are required to connect the units together. Due to the low output impedance of the mic preamp, screened cable is not necessary and ordinary 2 core speaker cable, or bell wire may be used.

    The schematic can be broken into 34 parts, power supply, mic preamp, audio amplifierand PTT circuit. The power supply is designed to be left on all the time, which is why no on / off switch is provided. A standard 12 V RMS secondary transformer of 12VA will power the unit. Fuses are provided at the primary input and also secondary, before the rectifier. The 1 A fuse needs to be a slow blow type as it has to handle the peak rectifier current as the power supply electrolytics charge from zero volts.

    The microphone amplifier is a 2 transistor direct coupled amplifier. BC108B transistors will work equally well in place of the BC109C transistors. The microphone used is a 3 terminal electret condenser microphone insert. These are popular and require a small current to operate. The preamp is shown in my audio circuit section as well, but has a very high gain and low distortion. The last transistor is biased to around half the supply voltage; this provides the maximum overload margin for loud signals or loud voices. The gain may be adjusted with the 10k preset. Sensitivity is very high, and a ticking clock can easily be heard from the distantloudspeaker.

    The amplifier is based on the popular National Semiconductor LM380. A 50 mV input is all that's required to deliver 2W RMS into an 8 ohm loudspeaker. The choice of loudspeaker determines overall sound quality. A small loudspeaker may not produce a lot of bass, I used an old 8 inch radio loudspeaker. The 4.7u capacitor at pin 1 of the LM380 helps filter out any mains hum on the power supply. This can be increased to a 10u capacitor for better power supply rejection ratio.

    The push to talk (PTT) circuit is very simple. A SPDT relay is used to switch between mic preamplifier output or loudspeaker input. The normally closed contact is set so that each intercom unit is "listening". The non latching push button switch must be held to talk. The 100u capacitor across the relay has two functions. It prevents the relays back emf from destroying the semiconductors, and also delays the release of the relay. This delay is deliberate, and prevents any last word from being "chopped" off.

    Setting Up and Testing
    This circuit does not include a "call" button. With this intercom pressing the Push to Talk button sends your voice to the opposite station, and vice versa. Setup is simple, set to volume to a comfortable level, and adjust the mic preset while speaking with "normal volume" from one meter away. You do not need to be in close contact with the microphone, it will pick up a conversation from anywhere in a room. If the units are a long way away, there is a tendency for the cable to pick up hum, or radio interference. There are various defenses against this. One way is to use a twisted pair cable, each successive turn cancels the interference from the turn before. Another method is to use a small capacitor of say 100n between the common terminal of each relay and ground. This shunts high frequency signals to earth. Another method is to use a low value resistor of about 1k. This will shunt interference and hum, but will shunt the speech signal as well. However as the output impedance of each mic preamp is low, and the speech signals are also low,this will have little effect on speech but reduce interference to an acceptable level.

    Source:  www.zen22142.zen.co.uk