Showing posts with label system. Show all posts
Showing posts with label system. Show all posts

Thursday, November 20, 2014

Ultrasonic Position System

The ultrasonic position system uses ultrasonic transmitters/receivers to triangulate position of the robots used in GE423. Each of three transmitters uses a distinct frequencies: 23 kHz, 31 kHz, and 40 kHz. The 2812 DSP is used to measure signal timing and calculate position based on these values. The design of the electronics, as well as discussion of the software development is presented below.

The electronics were not intergrated with the 6713 DSP on the robot.
Note: To get around the issue of clock syncing, the robot will start in a known position, and calculate position for four cycles before proceeding. An alternative to this would be to add a fourth transmit frequency and use the 4th signal to sync the robot clock with the transmit clock.

1.0 Hardware

A wide variety of hardware was used for this project. The hardware was chosen based on availability and price. By no means is the solution presented "the best"or the only way to achieve the desired results, but it is a workable solution.

1.1 Ultrasonic Transmitters/Receivers

The ultrasonic sensor were purchased from Massa. The TR-89/B series where chosen because they come in 3 different frequencies, and they were stock parts. There is no pdf data sheet available on the Massa website, all information if available here. The main drawback of using Massa is there $500 minimum order, and the sensors arent cheap at about ~$30 each.

1.2 Transmit Circuit

A schematic of the transmit circuit looks like:

Images of the perf-boarded transmit circuits:

Details on the components of the transmit circuit can be found in the subsection below:

1.2.1 Frequency Generation

The transmit circuit take from the Massa Website looks like:
Source:http://www.massa.com/datasheets/graphics/tr89_data.gif
Where R1 is a 10k 10 turn precision wound potentiometer, and U1 is a CD4039B NAND Schmitt Trigger. The tuning resistor R2 and L where left out to increase the transmit power around the base frequency. The potentiometer was adjusted until the frequency was the desired base frequency. A 1k resistor was added in parallel with the potentiometer to give a higher resolution. For the 40 kHz case, a smaller capacitor was required to reach the base frequency. Make sure to tune the circuit with the ultrasonic transducers attached, because the additional impedance will change the transmit frequency. The 12 Vdc was generated by a lab supply.
The output at point TP1, is a 12V peak to peak is a square wave at the desired frequency. The point TP1 was connected to the Driver Signal Circuit presented below.

1.2.2 555 Timer Circuit

The documentation for the 555 timer can be found here. An a picture of how it is wired can be 


 
seen below:
Source:http://www.williamson-labs.com/480_555.htm
Using the handy calculator for Ra, Rb, and C found here, Ra=100k ohm, Rb=200k ohm, and C=2.2 mircoF.

1.2.3 Driver Signal Circuit

The 35 Vdc supply is manufactured by Ultravolt, part number 1/4Aa24-P30. This supply is actually a 0-250 Vdc supply that uses a potentiometer to control voltage output.. The transistor used is an IRF520 n-channel MOSFET.

1.3 Receive Circuit

A block diagram of the receive circuit can be seen below:

And a picture of the perf-boarded receive circuit can be seen below:

Details on the components of the receive circuit can be found in the subsection below:


1.3.1 Low Signal Amp Circuit

An instrumentation amplifier made by Analog Devices was used to amplify the low signal output of the ultrasonic receivers. The actual part used was the AD620, one is recquired for each receive channel. Analog has a nice tool here, to size the gain resistor, Rg. Based on experiments, a gain value of 33 was chosen, resulting in a Rg of 1.5k ohm. The AD620 was wired as follows:
Source:http://www.analog.com/images/Product_Descriptions/3888333375812882340AD620_fbs.gif

1.3.2 Comparator Circuit

The analog comparitor used was part number LM339. The volatage divdier was powered using +5 Vdc to creat the digital level output signal. The output from each instrumentation amplifier was wired to the "+" terminal, and the "-" was wired to 3 volts. The 3 Vdc signal was created from the +15 Vdc supply using a voltage divider. The output of the comparitor was wired to a 5 Vdc via a 3k resistor.

2.0 Software

The timing of the hardware interrupts from the 2811 is calculated, and from the times, position is calculated in the 2D plane using a combination of least squared fit and Jacobian iteration.

2.1 Matlab Triangulation Code

The first algorithm was developed using Matlab. This code can be found here. The algorithm is not stable for all input parameters, a good set of test conditions are:
[x,y]=blah(.010,.012,.012)
[x,y]=blah(.009,.014,.012)
[x,y]=blah(.011,.011,.011)
Note the highly descriptive function named blah

2.2 DSP C Code

The c code for the 2812 DSP is in the attached zip file. The code works as following:
  1. Hardware interrupt pin get triggered
  2. Record absolute clock time when pin transition occurs
  3. Go back to step 1,and once all three pins have been triggered:
    1. (only do this step the first time through the code) Assume robot stationary, acquire base transmit period for each frequency by averaging first 4 values, this step syncs the clocks of the transmitters to the robot
    2. Calculate time from transmitter to robot for each frequency
    3. Triangulate position of robot using least squared fit to data points
    4. Wait for fixed amount of time, ignore hardware interrupts during this time because of the nature of the transmit signal
    5. Go back to Step 1

3.0 Lessons Learned

  1. A resistor was needed in parallel with the tuning potentiometer to give better resolution
  2. A resistor was required in parallel with the US transmitter for the circuit to function because the transmitter is like a capacitor.

4.0 Acknowledgments

Various people and online resources aided in this project:
  • GE423 Lab Instructor: Dan Block
  • GE423 TAs: Dave Johnson, Daniel Herring
  • My officemate: Steve Tschopp
  • Misc. Consultation: Tim Cargol
  • Misc Websites:
    • http://ourworld.compuserve.com/homepages/Bill_Bowden/555.htm
    • http://www.williamson-labs.com/480_555.htm
    • http://www.massa.com
    • http://www.digikey.com (source for datasheets)
ReadMore..

Sunday, October 26, 2014

Digital control system applications

Digital Control System is a branch of the control system with continuous time processes in the region associated with the digital controller as the controller of the control elements that control systems and computing discrete time. Depending on requirements, a digital controller can be shaped microcontroller and ASIC to a standard desktop computer. Because the digital computer system is discrete, then the Laplace transform is used in the control system is replaced with the Z-transform. Therefore, you must understand about the concept of continuous time and discrete time concept.


Flow Chart - Digital Control system applications

Digital computer also has a limited precision (See quantization) extra care needed to ensure that errors in the coefficients, A / D conversion, D / A conversion, etc. do not produce unwanted effects or planned.

The application of digital control can easily be done when used in a feedback form. Since the creation of the first digital computer in the early 1940s the price of digital computers has dropped significantly. The reason this is one of the many reasons for the application of digital control systems for the control of the control system. Other reasons:

Flexibile: easy to configure and reconfigure through software
* Scalable: can be set up programs tailored to the limits of memory or storage space at no extra cost
* Adaptable: program parameters can be changed with the times
* Static operation: digital computers are much more susceptible to environmental conditions rather than of capacitors and inductors
ReadMore..

Monday, October 13, 2014

White TV System Miniature Black Circuit


INTRODUCTION

August 30, 2005
Incredibly small video cameras have recently become available at reasonable prices. Small televisions are available for very little money at online auction sites such as eBay. It is now possible to build a miniature short-range wireless video system with off-the-shelf parts. This wireless nature of this circuit is not suitable for long distance operation, the video modulator just provides a simple method for interfacing the video signal to a standard TV. Transmission distance is limited to a few feet.

Theory

The 12VDC supply provides power for the camera and video modulator circuits. The video from the camera is fed into the video input of the modulator circuit. The modulated RF from the modulator is fed into a small antenna. Use of a dipole antenna that is resonant at the frequency of the modulator can extend the signal range. The RF travels across a short distance to the Sony Watchman TV receiver. A black and white image magically appears on the TV screen.

Construction

The cameras video signal is connected to the video modulator with an RCA jumper cable. Power to the camera and video modulator is connected to the 12V power supply. Be careful with polarity, reversing the leads may damage the modulator. The camera that was used had reverse polarity protection built in. The modulators RF output signal is connected to a small antenna, the antenna can be made with two short lengths of #16 gauge solid wire. Alternately, for long distance wired operation, the RF signal can be fed into a length of 75 ohm coax cable with a 75 ohm terminating resistor across the far end of the cable. Connect the remote center conductor of the cable to the TV antenna through a 330 ohm resistor.

Use

Turn the power for the camera and modulator on, turn on the TV. Tune the TV to the channel of the RF modulator, fine-tune the TV for the best picture. For full-time operation, use the appropriate AC adapter for the watchman. If battery operation is desired, run the TV from its internal batteries and use a 12V battery for powering the camera and modulator. A rechargeable lead acid battery with a series fuse (and a recharging circuit) is recommended.
A fun use for this system would be to create an engineers view of a model train layout. A loop of wire near the track would make a good receiving antenna. Power could be pulled from the engine motor circuit using a bridge rectifier feeding into an electrolytic capacitor, just make sure not to exceed the cameras 12V maximum supply voltage.

Parts

  • Miniature black and white video camera, 12VDC, Model PC-206XP
  • Video modulator block, Jameco 141639CJ or equivalent
  • Sony Watchman miniature TV
  • 12V DC power supply, beware of wall-warts - they often have inaccurate voltage ratings.
  • Miscellaneous wires and cables
  • Read more at: http://english.cxem.net/rf/rf29.php
ReadMore..

Sunday, October 5, 2014

imple Home Alarm System Home Alarm System This Home Alarm System is simple secure fast and cheap Its only few components with maximum security

 The blue led connected to the pin RA3 of micro controller is used like a memory to know if the home alarm system has been activated by an event and its reset after a reactivation. The red led connected to the power supply before the 1N5406 diode is used to check the power supply connection. Of course the other 3 micro led red near the relays are used to check the output state.

ReadMore..

Thursday, September 18, 2014

Solar Tracking System Wiring diagram Schematic

Generally, solar panels are stationary and do not follow the movement of the sun. Here is a solar tracker system that tracks the sun’s movement across the sky and tries to maintain the solar panel perpendicular to the sun’s rays, ensuring that the maximum amount of sunlight is incident on the panel throughout the day. The solar tracker starts following the sun right from dawn, throughout the day till evening, and starts all over again from the dawn next day.

Solar
Fig. 1: Circuit of solar tracking system

Fig. 1 shows the schema of the solar tracking system. The solar tracker comprises comparator IC LM339, H-bridge motor driver IC L293D (IC2) and a few discrete components. Light-dependent resistors LDR1 through LDR4 are used as sensors to detect the panel’s position relative to the sun. These provide the signal to motor driver IC2 to move the solar panel in the sun’s direction. LDR1 and LDR2 are fixed at the edges of the solar panel along the X axis, and connected to comparators A1 and A2, respectively. Presets VR1 and VR2 are set to get low comparator output at pins 2 and 1 of comparators A1 and A2, respectively, so as to stop motor M1 when the sun’s rays are perpendicular to the solar panel.

When LDR2 receives more light than LDR1, it offers lower resistance than LDR1, providing a high input to comparators A1 and A2 at pins 4 and 7, respectively. As a result, output pin 1 of comparator A2 goes high to rotate motor M1 in one direction (say, anti-clockwise) and turn the solar panel.

When LDR1 receives more light than LDR2, it offers lower resistance than LDR2, giving a low input to comparators A1 and A2 at pins 4 and 7, respectively. As the voltage at pin 5 of comparator A1 is now higher than the voltage at its pin 4, its output pin 2 goes high. As a result, motor M1 rotates in the opposite direction (say, clock-wise) and the solar panel turns.


Fig. 2 Proposed assembly for the solar tracking system

Similarly, LDR3 and LDR4 track the sun along Y axis. Fig. 2 shows the proposed assembly for the solar tracking system.

ReadMore..

Saturday, September 13, 2014

Multiplex Control System Wiring Acura MDX

What is Multiplex control System? usually a Multiplex control management System has four internal capabilities: 1. Multiplexing; 2. Wake up/sleep; 3. Fail-safe; and 4. Self-diagnosis.

Multiplexing means that send multiple signals to shared wire. The wake up/sleep functions to decrease parasitic draw on the battery when the ignition switch is OFF. The fail-safe fixes or ignores faulty signals and stop improper operation. And self-diagnostic is employed to diagnose multiplex control management system (mode 1) and failure in input line of every system (mode 2)

In Acura MDX 2001 model year, the multiplex control management system consists of door, driver and passenger multiplex control management units. above schematic illustrates the placement index of every multiplex control management unit put in on 2001 Acura MDX series.
ReadMore..

Wednesday, September 3, 2014

Video Switch for Intercom System

Video Switch for Intercom System. Nowadays a lot of intercom units are  equipped with video cameras so that you can  see as well as hear who is at the door. Unfortunately, the camera lens is perfectly placed  to serve as a sort of support point for people  during the conversation, with the result that  there’s hardly anything left see in the video  imagery.  One way to solve this problem is to install two cameras on the street side instead only  one, preferably some distance apart. If you  display the imagery from the two cameras  alternately, then at least half of the time you  will be able to see what is happening in front  of the door. Thanks to the video switch module described  here, which should be installed on the street  side not too far away from the two cameras,  you need only one monitor inside the house and you don’t need to install any additional video cables.
 
Circuit diagram :
Video
Video Switch for Intercom System Circuit Diagram

Along with a video switch, the schema includes  a video amplifier that has been used with  good results in many other Elektor projects,  which allows the brightness and the contrast  to be adjusted separately. This amplifier is  included because the distance between the  street and the house may be rather large, so it is helpful to be able to compensate for cable attenuation in this manner.  The switch stage is built around the well  known 4060 IC, in which switches IC2a and  IC2d alternately pass one of the two signals to  the output. They are driven by switches IC2b and IC2c, which generate control signals that  are 180 degrees out of phase. The switching rate for the video signals is  determined by a clock signal from an ‘old  standby’ 555 IC, which causes the signals to  swap every 2 seconds with the specified com ponent values.
 
Naturally, this schema can also used in many other situations, such as where two cameras are needed for surveillance but only one video cable is available.
 
Author :Jacob Gestman Geradts - Copyright : Elektor
ReadMore..

Wednesday, August 27, 2014

TDA2052 Active Audio System

This active audio audio system use three TDA2052 chips and 5 speakers ( one woofer, two tweeters and two midranges ). For this TDA2052 active audio system we need dual 20 volts power supply and five volts supply for the stand by function.To the input of the every audio IC chip is placed an audio filter for filtering the audio signal for used speakers ( low pass for woofer , high pass for midranges and tweeters)

TDA2052 Active Audio System Circuit Diagram


TDA2052


The subwoofer plays the 20 to 300 Hz frequency range, while the remaining 300 Hz to 20KHz are sent to two separate channels with stereo effect.If one of the amplifier is affected by clipping distortion the others amplifiers are not affected .
ReadMore..

Monday, August 25, 2014

Build a Derived Center Channel Stereo System Circuit Digram

A simple method of deriving a center or third channel without the use of an extra transformer or amplifier, (a) 4- speakers are connected to 8- amplifier taps. 8 and 16- speakers connect to 16- taps, (b) By blending the inputs it is possible to cancel out undesired crosstalk. 

Derived Center-Channel Stereo System Circuit Digram
 
Derived
 Read more about diagram diagram
ReadMore..