Home » Personal collection » Acorn hard disk » misc » misc3 » eug_titles/BallBot/Part3

eug_titles/BallBot/Part3

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » misc » misc3
Filename: eug_titles/BallBot/Part3
Read OK:
File size: 1DC6 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
Ultrasonic Sonar System

By far the largest area of development in BallBot has been the work in
developing the sonar system which the robot uses to navigate. This sonar
system must be able to determine what objects are present around the
robot, how far away they are, and whether they are interesting or not.

The system essentially consists of two units: a transmitter, which is
essentially a loudspeaker, and a reciever, which is a microphone. Both
have a very fine resonant frequency of 40kHz. The system works as follows:

On a regular basis (eight times a second), BallBot emits a loud ultrasonic
pulse from the loudspeaker. As this pulse moves away at the speed of sound
(330m/s), some of this energy is reflected back at the robot in the form
of echoes. If there is an object such as a tennis ball present, the echoes
are much stronger, as shown by the diagram. These strong echoes are
recieved by very sensative microphones on board the robot. The distance of
the object from the robot can be calculated because we know that the time
taken for the sound wave to travel out to the object and then return back
to BallBot is equal to the time delay between the signal being
transmitted, and its echo being recieved. Therefore the following formula
can be applied:

The type of object present can also be determined. Different objects
produce different amplitudes of echo depending upon their size and how
absorbant they are to sound waves. As soon as the first signal from the
object is recieved, BallBot's computer begins sampling the sound being
recieved. The hardware converts the peaks in amplitude of the ultrasound
being recieved into binary 1s, and the troffs into binary 0s. Thus a form
of code is formed which is passed to the computer's input circuitry. The
computer then processes the binary code to search for patterns, which it
recognises as objects such as tennis balls.

Systems such as this are only effective, however, when the echoes are
being reflected off objects which are thicker than the wavelength of the
waves being transmitted. In our case, this can be found to be
approximately 8mm using the formula V=fl. Therefore some objects such as
the net and the fence surrounding the court may not be reliably detected.
Othere objects such as the balls and players will, however, still be
visable when this is allowed for. The pattern recognition system must,
therefore, be programmed to ignore any traces which are recieved from
these items if reliable consistent results are to be obtained, and the AI
code must be programmed to work without traces from these surfaces. It is
important that such traces are either picked up reliably every time, or
ignored completely. If they are necessary for the efficient running of the
AI, infra-red sensory systems may be added to detect the net, the fence,
and anything else of interest.

The Transmitter

The circuitry for this sonar system is still very much under development.
The transmitting system has now been designed, built and tested, and seems
to be working satisfactoraly. This part of the circuitry takes one output
line from the computer, and transmits 40kHz from the speakers when it is
high, and turns off the speaker when it is low. Essentially it consists of
a wave generator circuit, producing 40kHz sine waves, and a transistor to
switch the output to the speaker on and off. The circuit diagram for this
is shown below:

It is at first surprising that this circuit works. The collector ->
emitter connection of a transistor acts as a diode, and yet the voltage
across this negative in the lower half of the 40kHz sine wave. Therefore
we would expect half-wave rectified output from the speaker. I suspect
that the reason why this circuit works is that induction or resonance in
the transmitter fills in the lower-half of the wave.

Having built this circuit, and shown that it worked by monitoring the
output using a microphone and an oscilloscope, I decided to test the
response rate of the circuit to see how long it took the transmitter to
reach maximum amplitude after the output line from the computer goes high,
switching on the transmitter. By programming the computer to switch the
transmitter on and off at high frequency, and monitoring the sound output
on an oscilloscope, I found that it takes about 1ms to reach maximum
amplitude from the "blip" control signal being sent, and 1ms to return to
complete silence after being turned off. Therefore I decided that the
computer should send the "blip" signal to this circuit for a minimum of
1ms for it to be sure to have the effect of producing a sound of maximal
amplitude, but not too long that the recieved waveforms from different
objects become blurred in any way.

The Reciever

The ultrasonic reciever is rather more complicated than the transmitter,
and work is still at a very early stage. Our first objective was to find
out exactly work kind of signal the ultrasonic microphone produces when
exposed to ultrasound. Using an oscilloscope, I found that the signal
produced is an a.c. signal which oscillates at 40kHz, and has an amplitude
which varies with the intensity of the ultrasound to which it is exposed.
I expected the voltage of this signal to be proportional to the inverse
square of the distance. The sound spreads out from the source in the shape
of a sphere (or part of a sphere). Therefore at any one time the sound
energy is spread over the surface area of a sphere of distance d around
the source, where d is the distance between the source and the
transmitter. This would indicate the following formula:

The data actually collected through tests with the ultrasonic equipment is
shown below:

Both tests strongly suggest that the voltage of the signal from the
microphone is inversely proportional to the distance. Therefore, this
suggests that:

As you can see, the product of the voltage recieved and the distance of
the source from the reciever is constant. This could be very useful.
Graphs for Voltage x Distance should, therefore, be a straight horizontal
line. Such graphs of voltage x distance are plotted below:

So far, all studies have been of a system involving transmission in a
straight line, with the reciever facing the transmitter. In BallBot,
however, the transmitter and the reciever will be together, and facing in
the same direction. Therefore some tests have been performed for the input
recieved when an echo is bounced off a surface. Data for such tests are
shown below:

Once again, it appears that voltage is inversely proportional to distance.
This suggests that surfaces reflect a constant proportion of the sound
energy back at the robot. Once again, the product of distance and voltage
should be a constant value. But because we know that the distance of the
object is proportional to the time taken for the echo to be recieved, we
can convert this to saying that the product of the time elapsed since the
ultrasonic blip was transmitted and the input voltage is a constant value
for particular surfaces. This is more useful than distance with regard to
designing the BallBot hardware. Graphs for voltage x distance for echo
tests are plotted below:

The constant value of the product of voltage and distance can be found for
different surfaces for the given speakers and output amplitude. The unit
of this value is the volt-metre (Vm). Work is currently in progress to try
to find actual values of this for the kind of objects which BallBot will
come across (e.g. tennis balls). The value is equal to the voltage
produced across the reciever when an echo is recieved off that type of
surface at a distance of one metre.
00000000  55 6c 74 72 61 73 6f 6e  69 63 20 53 6f 6e 61 72  |Ultrasonic Sonar|
00000010  20 53 79 73 74 65 6d 0d  0d 42 79 20 66 61 72 20  | System..By far |
00000020  74 68 65 20 6c 61 72 67  65 73 74 20 61 72 65 61  |the largest area|
00000030  20 6f 66 20 64 65 76 65  6c 6f 70 6d 65 6e 74 20  | of development |
00000040  69 6e 20 42 61 6c 6c 42  6f 74 20 68 61 73 20 62  |in BallBot has b|
00000050  65 65 6e 20 74 68 65 20  77 6f 72 6b 20 69 6e 0d  |een the work in.|
00000060  64 65 76 65 6c 6f 70 69  6e 67 20 74 68 65 20 73  |developing the s|
00000070  6f 6e 61 72 20 73 79 73  74 65 6d 20 77 68 69 63  |onar system whic|
00000080  68 20 74 68 65 20 72 6f  62 6f 74 20 75 73 65 73  |h the robot uses|
00000090  20 74 6f 20 6e 61 76 69  67 61 74 65 2e 20 54 68  | to navigate. Th|
000000a0  69 73 20 73 6f 6e 61 72  0d 73 79 73 74 65 6d 20  |is sonar.system |
000000b0  6d 75 73 74 20 62 65 20  61 62 6c 65 20 74 6f 20  |must be able to |
000000c0  64 65 74 65 72 6d 69 6e  65 20 77 68 61 74 20 6f  |determine what o|
000000d0  62 6a 65 63 74 73 20 61  72 65 20 70 72 65 73 65  |bjects are prese|
000000e0  6e 74 20 61 72 6f 75 6e  64 20 74 68 65 0d 72 6f  |nt around the.ro|
000000f0  62 6f 74 2c 20 68 6f 77  20 66 61 72 20 61 77 61  |bot, how far awa|
00000100  79 20 74 68 65 79 20 61  72 65 2c 20 61 6e 64 20  |y they are, and |
00000110  77 68 65 74 68 65 72 20  74 68 65 79 20 61 72 65  |whether they are|
00000120  20 69 6e 74 65 72 65 73  74 69 6e 67 20 6f 72 20  | interesting or |
00000130  6e 6f 74 2e 0d 0d 54 68  65 20 73 79 73 74 65 6d  |not...The system|
00000140  20 65 73 73 65 6e 74 69  61 6c 6c 79 20 63 6f 6e  | essentially con|
00000150  73 69 73 74 73 20 6f 66  20 74 77 6f 20 75 6e 69  |sists of two uni|
00000160  74 73 3a 20 61 20 74 72  61 6e 73 6d 69 74 74 65  |ts: a transmitte|
00000170  72 2c 20 77 68 69 63 68  20 69 73 0d 65 73 73 65  |r, which is.esse|
00000180  6e 74 69 61 6c 6c 79 20  61 20 6c 6f 75 64 73 70  |ntially a loudsp|
00000190  65 61 6b 65 72 2c 20 61  6e 64 20 61 20 72 65 63  |eaker, and a rec|
000001a0  69 65 76 65 72 2c 20 77  68 69 63 68 20 69 73 20  |iever, which is |
000001b0  61 20 6d 69 63 72 6f 70  68 6f 6e 65 2e 20 42 6f  |a microphone. Bo|
000001c0  74 68 0d 68 61 76 65 20  61 20 76 65 72 79 20 66  |th.have a very f|
000001d0  69 6e 65 20 72 65 73 6f  6e 61 6e 74 20 66 72 65  |ine resonant fre|
000001e0  71 75 65 6e 63 79 20 6f  66 20 34 30 6b 48 7a 2e  |quency of 40kHz.|
000001f0  20 54 68 65 20 73 79 73  74 65 6d 20 77 6f 72 6b  | The system work|
00000200  73 20 61 73 20 66 6f 6c  6c 6f 77 73 3a 0d 0d 4f  |s as follows:..O|
00000210  6e 20 61 20 72 65 67 75  6c 61 72 20 62 61 73 69  |n a regular basi|
00000220  73 20 28 65 69 67 68 74  20 74 69 6d 65 73 20 61  |s (eight times a|
00000230  20 73 65 63 6f 6e 64 29  2c 20 42 61 6c 6c 42 6f  | second), BallBo|
00000240  74 20 65 6d 69 74 73 20  61 20 6c 6f 75 64 20 75  |t emits a loud u|
00000250  6c 74 72 61 73 6f 6e 69  63 0d 70 75 6c 73 65 20  |ltrasonic.pulse |
00000260  66 72 6f 6d 20 74 68 65  20 6c 6f 75 64 73 70 65  |from the loudspe|
00000270  61 6b 65 72 2e 20 41 73  20 74 68 69 73 20 70 75  |aker. As this pu|
00000280  6c 73 65 20 6d 6f 76 65  73 20 61 77 61 79 20 61  |lse moves away a|
00000290  74 20 74 68 65 20 73 70  65 65 64 20 6f 66 20 73  |t the speed of s|
000002a0  6f 75 6e 64 0d 28 33 33  30 6d 2f 73 29 2c 20 73  |ound.(330m/s), s|
000002b0  6f 6d 65 20 6f 66 20 74  68 69 73 20 65 6e 65 72  |ome of this ener|
000002c0  67 79 20 69 73 20 72 65  66 6c 65 63 74 65 64 20  |gy is reflected |
000002d0  62 61 63 6b 20 61 74 20  74 68 65 20 72 6f 62 6f  |back at the robo|
000002e0  74 20 69 6e 20 74 68 65  20 66 6f 72 6d 0d 6f 66  |t in the form.of|
000002f0  20 65 63 68 6f 65 73 2e  20 49 66 20 74 68 65 72  | echoes. If ther|
00000300  65 20 69 73 20 61 6e 20  6f 62 6a 65 63 74 20 73  |e is an object s|
00000310  75 63 68 20 61 73 20 61  20 74 65 6e 6e 69 73 20  |uch as a tennis |
00000320  62 61 6c 6c 20 70 72 65  73 65 6e 74 2c 20 74 68  |ball present, th|
00000330  65 20 65 63 68 6f 65 73  0d 61 72 65 20 6d 75 63  |e echoes.are muc|
00000340  68 20 73 74 72 6f 6e 67  65 72 2c 20 61 73 20 73  |h stronger, as s|
00000350  68 6f 77 6e 20 62 79 20  74 68 65 20 64 69 61 67  |hown by the diag|
00000360  72 61 6d 2e 20 54 68 65  73 65 20 73 74 72 6f 6e  |ram. These stron|
00000370  67 20 65 63 68 6f 65 73  20 61 72 65 0d 72 65 63  |g echoes are.rec|
00000380  69 65 76 65 64 20 62 79  20 76 65 72 79 20 73 65  |ieved by very se|
00000390  6e 73 61 74 69 76 65 20  6d 69 63 72 6f 70 68 6f  |nsative micropho|
000003a0  6e 65 73 20 6f 6e 20 62  6f 61 72 64 20 74 68 65  |nes on board the|
000003b0  20 72 6f 62 6f 74 2e 20  54 68 65 20 64 69 73 74  | robot. The dist|
000003c0  61 6e 63 65 20 6f 66 0d  74 68 65 20 6f 62 6a 65  |ance of.the obje|
000003d0  63 74 20 66 72 6f 6d 20  74 68 65 20 72 6f 62 6f  |ct from the robo|
000003e0  74 20 63 61 6e 20 62 65  20 63 61 6c 63 75 6c 61  |t can be calcula|
000003f0  74 65 64 20 62 65 63 61  75 73 65 20 77 65 20 6b  |ted because we k|
00000400  6e 6f 77 20 74 68 61 74  20 74 68 65 20 74 69 6d  |now that the tim|
00000410  65 0d 74 61 6b 65 6e 20  66 6f 72 20 74 68 65 20  |e.taken for the |
00000420  73 6f 75 6e 64 20 77 61  76 65 20 74 6f 20 74 72  |sound wave to tr|
00000430  61 76 65 6c 20 6f 75 74  20 74 6f 20 74 68 65 20  |avel out to the |
00000440  6f 62 6a 65 63 74 20 61  6e 64 20 74 68 65 6e 20  |object and then |
00000450  72 65 74 75 72 6e 20 62  61 63 6b 0d 74 6f 20 42  |return back.to B|
00000460  61 6c 6c 42 6f 74 20 69  73 20 65 71 75 61 6c 20  |allBot is equal |
00000470  74 6f 20 74 68 65 20 74  69 6d 65 20 64 65 6c 61  |to the time dela|
00000480  79 20 62 65 74 77 65 65  6e 20 74 68 65 20 73 69  |y between the si|
00000490  67 6e 61 6c 20 62 65 69  6e 67 0d 74 72 61 6e 73  |gnal being.trans|
000004a0  6d 69 74 74 65 64 2c 20  61 6e 64 20 69 74 73 20  |mitted, and its |
000004b0  65 63 68 6f 20 62 65 69  6e 67 20 72 65 63 69 65  |echo being recie|
000004c0  76 65 64 2e 20 54 68 65  72 65 66 6f 72 65 20 74  |ved. Therefore t|
000004d0  68 65 20 66 6f 6c 6c 6f  77 69 6e 67 20 66 6f 72  |he following for|
000004e0  6d 75 6c 61 0d 63 61 6e  20 62 65 20 61 70 70 6c  |mula.can be appl|
000004f0  69 65 64 3a 0d 0d 54 68  65 20 74 79 70 65 20 6f  |ied:..The type o|
00000500  66 20 6f 62 6a 65 63 74  20 70 72 65 73 65 6e 74  |f object present|
00000510  20 63 61 6e 20 61 6c 73  6f 20 62 65 20 64 65 74  | can also be det|
00000520  65 72 6d 69 6e 65 64 2e  20 44 69 66 66 65 72 65  |ermined. Differe|
00000530  6e 74 20 6f 62 6a 65 63  74 73 0d 70 72 6f 64 75  |nt objects.produ|
00000540  63 65 20 64 69 66 66 65  72 65 6e 74 20 61 6d 70  |ce different amp|
00000550  6c 69 74 75 64 65 73 20  6f 66 20 65 63 68 6f 20  |litudes of echo |
00000560  64 65 70 65 6e 64 69 6e  67 20 75 70 6f 6e 20 74  |depending upon t|
00000570  68 65 69 72 20 73 69 7a  65 20 61 6e 64 20 68 6f  |heir size and ho|
00000580  77 0d 61 62 73 6f 72 62  61 6e 74 20 74 68 65 79  |w.absorbant they|
00000590  20 61 72 65 20 74 6f 20  73 6f 75 6e 64 20 77 61  | are to sound wa|
000005a0  76 65 73 2e 20 41 73 20  73 6f 6f 6e 20 61 73 20  |ves. As soon as |
000005b0  74 68 65 20 66 69 72 73  74 20 73 69 67 6e 61 6c  |the first signal|
000005c0  20 66 72 6f 6d 20 74 68  65 0d 6f 62 6a 65 63 74  | from the.object|
000005d0  20 69 73 20 72 65 63 69  65 76 65 64 2c 20 42 61  | is recieved, Ba|
000005e0  6c 6c 42 6f 74 27 73 20  63 6f 6d 70 75 74 65 72  |llBot's computer|
000005f0  20 62 65 67 69 6e 73 20  73 61 6d 70 6c 69 6e 67  | begins sampling|
00000600  20 74 68 65 20 73 6f 75  6e 64 20 62 65 69 6e 67  | the sound being|
00000610  0d 72 65 63 69 65 76 65  64 2e 20 54 68 65 20 68  |.recieved. The h|
00000620  61 72 64 77 61 72 65 20  63 6f 6e 76 65 72 74 73  |ardware converts|
00000630  20 74 68 65 20 70 65 61  6b 73 20 69 6e 20 61 6d  | the peaks in am|
00000640  70 6c 69 74 75 64 65 20  6f 66 20 74 68 65 20 75  |plitude of the u|
00000650  6c 74 72 61 73 6f 75 6e  64 0d 62 65 69 6e 67 20  |ltrasound.being |
00000660  72 65 63 69 65 76 65 64  20 69 6e 74 6f 20 62 69  |recieved into bi|
00000670  6e 61 72 79 20 31 73 2c  20 61 6e 64 20 74 68 65  |nary 1s, and the|
00000680  20 74 72 6f 66 66 73 20  69 6e 74 6f 20 62 69 6e  | troffs into bin|
00000690  61 72 79 20 30 73 2e 20  54 68 75 73 20 61 20 66  |ary 0s. Thus a f|
000006a0  6f 72 6d 0d 6f 66 20 63  6f 64 65 20 69 73 20 66  |orm.of code is f|
000006b0  6f 72 6d 65 64 20 77 68  69 63 68 20 69 73 20 70  |ormed which is p|
000006c0  61 73 73 65 64 20 74 6f  20 74 68 65 20 63 6f 6d  |assed to the com|
000006d0  70 75 74 65 72 27 73 20  69 6e 70 75 74 20 63 69  |puter's input ci|
000006e0  72 63 75 69 74 72 79 2e  20 54 68 65 0d 63 6f 6d  |rcuitry. The.com|
000006f0  70 75 74 65 72 20 74 68  65 6e 20 70 72 6f 63 65  |puter then proce|
00000700  73 73 65 73 20 74 68 65  20 62 69 6e 61 72 79 20  |sses the binary |
00000710  63 6f 64 65 20 74 6f 20  73 65 61 72 63 68 20 66  |code to search f|
00000720  6f 72 20 70 61 74 74 65  72 6e 73 2c 20 77 68 69  |or patterns, whi|
00000730  63 68 20 69 74 0d 72 65  63 6f 67 6e 69 73 65 73  |ch it.recognises|
00000740  20 61 73 20 6f 62 6a 65  63 74 73 20 73 75 63 68  | as objects such|
00000750  20 61 73 20 74 65 6e 6e  69 73 20 62 61 6c 6c 73  | as tennis balls|
00000760  2e 0d 0d 53 79 73 74 65  6d 73 20 73 75 63 68 20  |...Systems such |
00000770  61 73 20 74 68 69 73 20  61 72 65 20 6f 6e 6c 79  |as this are only|
00000780  20 65 66 66 65 63 74 69  76 65 2c 20 68 6f 77 65  | effective, howe|
00000790  76 65 72 2c 20 77 68 65  6e 20 74 68 65 20 65 63  |ver, when the ec|
000007a0  68 6f 65 73 20 61 72 65  0d 62 65 69 6e 67 20 72  |hoes are.being r|
000007b0  65 66 6c 65 63 74 65 64  20 6f 66 66 20 6f 62 6a  |eflected off obj|
000007c0  65 63 74 73 20 77 68 69  63 68 20 61 72 65 20 74  |ects which are t|
000007d0  68 69 63 6b 65 72 20 74  68 61 6e 20 74 68 65 20  |hicker than the |
000007e0  77 61 76 65 6c 65 6e 67  74 68 20 6f 66 20 74 68  |wavelength of th|
000007f0  65 0d 77 61 76 65 73 20  62 65 69 6e 67 20 74 72  |e.waves being tr|
00000800  61 6e 73 6d 69 74 74 65  64 2e 20 49 6e 20 6f 75  |ansmitted. In ou|
00000810  72 20 63 61 73 65 2c 20  74 68 69 73 20 63 61 6e  |r case, this can|
00000820  20 62 65 20 66 6f 75 6e  64 20 74 6f 20 62 65 0d  | be found to be.|
00000830  61 70 70 72 6f 78 69 6d  61 74 65 6c 79 20 38 6d  |approximately 8m|
00000840  6d 20 75 73 69 6e 67 20  74 68 65 20 66 6f 72 6d  |m using the form|
00000850  75 6c 61 20 56 3d 66 6c  2e 20 54 68 65 72 65 66  |ula V=fl. Theref|
00000860  6f 72 65 20 73 6f 6d 65  20 6f 62 6a 65 63 74 73  |ore some objects|
00000870  20 73 75 63 68 20 61 73  0d 74 68 65 20 6e 65 74  | such as.the net|
00000880  20 61 6e 64 20 74 68 65  20 66 65 6e 63 65 20 73  | and the fence s|
00000890  75 72 72 6f 75 6e 64 69  6e 67 20 74 68 65 20 63  |urrounding the c|
000008a0  6f 75 72 74 20 6d 61 79  20 6e 6f 74 20 62 65 20  |ourt may not be |
000008b0  72 65 6c 69 61 62 6c 79  20 64 65 74 65 63 74 65  |reliably detecte|
000008c0  64 2e 0d 4f 74 68 65 72  65 20 6f 62 6a 65 63 74  |d..Othere object|
000008d0  73 20 73 75 63 68 20 61  73 20 74 68 65 20 62 61  |s such as the ba|
000008e0  6c 6c 73 20 61 6e 64 20  70 6c 61 79 65 72 73 20  |lls and players |
000008f0  77 69 6c 6c 2c 20 68 6f  77 65 76 65 72 2c 20 73  |will, however, s|
00000900  74 69 6c 6c 20 62 65 0d  76 69 73 61 62 6c 65 20  |till be.visable |
00000910  77 68 65 6e 20 74 68 69  73 20 69 73 20 61 6c 6c  |when this is all|
00000920  6f 77 65 64 20 66 6f 72  2e 20 54 68 65 20 70 61  |owed for. The pa|
00000930  74 74 65 72 6e 20 72 65  63 6f 67 6e 69 74 69 6f  |ttern recognitio|
00000940  6e 20 73 79 73 74 65 6d  20 6d 75 73 74 2c 0d 74  |n system must,.t|
00000950  68 65 72 65 66 6f 72 65  2c 20 62 65 20 70 72 6f  |herefore, be pro|
00000960  67 72 61 6d 6d 65 64 20  74 6f 20 69 67 6e 6f 72  |grammed to ignor|
00000970  65 20 61 6e 79 20 74 72  61 63 65 73 20 77 68 69  |e any traces whi|
00000980  63 68 20 61 72 65 20 72  65 63 69 65 76 65 64 20  |ch are recieved |
00000990  66 72 6f 6d 0d 74 68 65  73 65 20 69 74 65 6d 73  |from.these items|
000009a0  20 69 66 20 72 65 6c 69  61 62 6c 65 20 63 6f 6e  | if reliable con|
000009b0  73 69 73 74 65 6e 74 20  72 65 73 75 6c 74 73 20  |sistent results |
000009c0  61 72 65 20 74 6f 20 62  65 20 6f 62 74 61 69 6e  |are to be obtain|
000009d0  65 64 2c 20 61 6e 64 20  74 68 65 20 41 49 0d 63  |ed, and the AI.c|
000009e0  6f 64 65 20 6d 75 73 74  20 62 65 20 70 72 6f 67  |ode must be prog|
000009f0  72 61 6d 6d 65 64 20 74  6f 20 77 6f 72 6b 20 77  |rammed to work w|
00000a00  69 74 68 6f 75 74 20 74  72 61 63 65 73 20 66 72  |ithout traces fr|
00000a10  6f 6d 20 74 68 65 73 65  20 73 75 72 66 61 63 65  |om these surface|
00000a20  73 2e 20 49 74 20 69 73  0d 69 6d 70 6f 72 74 61  |s. It is.importa|
00000a30  6e 74 20 74 68 61 74 20  73 75 63 68 20 74 72 61  |nt that such tra|
00000a40  63 65 73 20 61 72 65 20  65 69 74 68 65 72 20 70  |ces are either p|
00000a50  69 63 6b 65 64 20 75 70  20 72 65 6c 69 61 62 6c  |icked up reliabl|
00000a60  79 20 65 76 65 72 79 20  74 69 6d 65 2c 20 6f 72  |y every time, or|
00000a70  0d 69 67 6e 6f 72 65 64  20 63 6f 6d 70 6c 65 74  |.ignored complet|
00000a80  65 6c 79 2e 20 49 66 20  74 68 65 79 20 61 72 65  |ely. If they are|
00000a90  20 6e 65 63 65 73 73 61  72 79 20 66 6f 72 20 74  | necessary for t|
00000aa0  68 65 20 65 66 66 69 63  69 65 6e 74 20 72 75 6e  |he efficient run|
00000ab0  6e 69 6e 67 20 6f 66 20  74 68 65 0d 41 49 2c 20  |ning of the.AI, |
00000ac0  69 6e 66 72 61 2d 72 65  64 20 73 65 6e 73 6f 72  |infra-red sensor|
00000ad0  79 20 73 79 73 74 65 6d  73 20 6d 61 79 20 62 65  |y systems may be|
00000ae0  20 61 64 64 65 64 20 74  6f 20 64 65 74 65 63 74  | added to detect|
00000af0  20 74 68 65 20 6e 65 74  2c 20 74 68 65 20 66 65  | the net, the fe|
00000b00  6e 63 65 2c 0d 61 6e 64  20 61 6e 79 74 68 69 6e  |nce,.and anythin|
00000b10  67 20 65 6c 73 65 20 6f  66 20 69 6e 74 65 72 65  |g else of intere|
00000b20  73 74 2e 0d 0d 54 68 65  20 54 72 61 6e 73 6d 69  |st...The Transmi|
00000b30  74 74 65 72 0d 0d 54 68  65 20 63 69 72 63 75 69  |tter..The circui|
00000b40  74 72 79 20 66 6f 72 20  74 68 69 73 20 73 6f 6e  |try for this son|
00000b50  61 72 20 73 79 73 74 65  6d 20 69 73 20 73 74 69  |ar system is sti|
00000b60  6c 6c 20 76 65 72 79 20  6d 75 63 68 20 75 6e 64  |ll very much und|
00000b70  65 72 20 64 65 76 65 6c  6f 70 6d 65 6e 74 2e 0d  |er development..|
00000b80  54 68 65 20 74 72 61 6e  73 6d 69 74 74 69 6e 67  |The transmitting|
00000b90  20 73 79 73 74 65 6d 20  68 61 73 20 6e 6f 77 20  | system has now |
00000ba0  62 65 65 6e 20 64 65 73  69 67 6e 65 64 2c 20 62  |been designed, b|
00000bb0  75 69 6c 74 20 61 6e 64  20 74 65 73 74 65 64 2c  |uilt and tested,|
00000bc0  20 61 6e 64 20 73 65 65  6d 73 0d 74 6f 20 62 65  | and seems.to be|
00000bd0  20 77 6f 72 6b 69 6e 67  20 73 61 74 69 73 66 61  | working satisfa|
00000be0  63 74 6f 72 61 6c 79 2e  20 54 68 69 73 20 70 61  |ctoraly. This pa|
00000bf0  72 74 20 6f 66 20 74 68  65 20 63 69 72 63 75 69  |rt of the circui|
00000c00  74 72 79 20 74 61 6b 65  73 20 6f 6e 65 20 6f 75  |try takes one ou|
00000c10  74 70 75 74 0d 6c 69 6e  65 20 66 72 6f 6d 20 74  |tput.line from t|
00000c20  68 65 20 63 6f 6d 70 75  74 65 72 2c 20 61 6e 64  |he computer, and|
00000c30  20 74 72 61 6e 73 6d 69  74 73 20 34 30 6b 48 7a  | transmits 40kHz|
00000c40  20 66 72 6f 6d 20 74 68  65 20 73 70 65 61 6b 65  | from the speake|
00000c50  72 73 20 77 68 65 6e 20  69 74 20 69 73 0d 68 69  |rs when it is.hi|
00000c60  67 68 2c 20 61 6e 64 20  74 75 72 6e 73 20 6f 66  |gh, and turns of|
00000c70  66 20 74 68 65 20 73 70  65 61 6b 65 72 20 77 68  |f the speaker wh|
00000c80  65 6e 20 69 74 20 69 73  20 6c 6f 77 2e 20 45 73  |en it is low. Es|
00000c90  73 65 6e 74 69 61 6c 6c  79 20 69 74 20 63 6f 6e  |sentially it con|
00000ca0  73 69 73 74 73 20 6f 66  0d 61 20 77 61 76 65 20  |sists of.a wave |
00000cb0  67 65 6e 65 72 61 74 6f  72 20 63 69 72 63 75 69  |generator circui|
00000cc0  74 2c 20 70 72 6f 64 75  63 69 6e 67 20 34 30 6b  |t, producing 40k|
00000cd0  48 7a 20 73 69 6e 65 20  77 61 76 65 73 2c 20 61  |Hz sine waves, a|
00000ce0  6e 64 20 61 20 74 72 61  6e 73 69 73 74 6f 72 20  |nd a transistor |
00000cf0  74 6f 0d 73 77 69 74 63  68 20 74 68 65 20 6f 75  |to.switch the ou|
00000d00  74 70 75 74 20 74 6f 20  74 68 65 20 73 70 65 61  |tput to the spea|
00000d10  6b 65 72 20 6f 6e 20 61  6e 64 20 6f 66 66 2e 20  |ker on and off. |
00000d20  54 68 65 20 63 69 72 63  75 69 74 20 64 69 61 67  |The circuit diag|
00000d30  72 61 6d 20 66 6f 72 20  74 68 69 73 0d 69 73 20  |ram for this.is |
00000d40  73 68 6f 77 6e 20 62 65  6c 6f 77 3a 0d 0d 49 74  |shown below:..It|
00000d50  20 69 73 20 61 74 20 66  69 72 73 74 20 73 75 72  | is at first sur|
00000d60  70 72 69 73 69 6e 67 20  74 68 61 74 20 74 68 69  |prising that thi|
00000d70  73 20 63 69 72 63 75 69  74 20 77 6f 72 6b 73 2e  |s circuit works.|
00000d80  20 54 68 65 20 63 6f 6c  6c 65 63 74 6f 72 20 2d  | The collector -|
00000d90  3e 0d 65 6d 69 74 74 65  72 20 63 6f 6e 6e 65 63  |>.emitter connec|
00000da0  74 69 6f 6e 20 6f 66 20  61 20 74 72 61 6e 73 69  |tion of a transi|
00000db0  73 74 6f 72 20 61 63 74  73 20 61 73 20 61 20 64  |stor acts as a d|
00000dc0  69 6f 64 65 2c 20 61 6e  64 20 79 65 74 20 74 68  |iode, and yet th|
00000dd0  65 20 76 6f 6c 74 61 67  65 0d 61 63 72 6f 73 73  |e voltage.across|
00000de0  20 74 68 69 73 20 6e 65  67 61 74 69 76 65 20 69  | this negative i|
00000df0  6e 20 74 68 65 20 6c 6f  77 65 72 20 68 61 6c 66  |n the lower half|
00000e00  20 6f 66 20 74 68 65 20  34 30 6b 48 7a 20 73 69  | of the 40kHz si|
00000e10  6e 65 20 77 61 76 65 2e  20 54 68 65 72 65 66 6f  |ne wave. Therefo|
00000e20  72 65 0d 77 65 20 77 6f  75 6c 64 20 65 78 70 65  |re.we would expe|
00000e30  63 74 20 68 61 6c 66 2d  77 61 76 65 20 72 65 63  |ct half-wave rec|
00000e40  74 69 66 69 65 64 20 6f  75 74 70 75 74 20 66 72  |tified output fr|
00000e50  6f 6d 20 74 68 65 20 73  70 65 61 6b 65 72 2e 20  |om the speaker. |
00000e60  49 20 73 75 73 70 65 63  74 0d 74 68 61 74 20 74  |I suspect.that t|
00000e70  68 65 20 72 65 61 73 6f  6e 20 77 68 79 20 74 68  |he reason why th|
00000e80  69 73 20 63 69 72 63 75  69 74 20 77 6f 72 6b 73  |is circuit works|
00000e90  20 69 73 20 74 68 61 74  20 69 6e 64 75 63 74 69  | is that inducti|
00000ea0  6f 6e 20 6f 72 20 72 65  73 6f 6e 61 6e 63 65 20  |on or resonance |
00000eb0  69 6e 0d 74 68 65 20 74  72 61 6e 73 6d 69 74 74  |in.the transmitt|
00000ec0  65 72 20 66 69 6c 6c 73  20 69 6e 20 74 68 65 20  |er fills in the |
00000ed0  6c 6f 77 65 72 2d 68 61  6c 66 20 6f 66 20 74 68  |lower-half of th|
00000ee0  65 20 77 61 76 65 2e 0d  0d 48 61 76 69 6e 67 20  |e wave...Having |
00000ef0  62 75 69 6c 74 20 74 68  69 73 20 63 69 72 63 75  |built this circu|
00000f00  69 74 2c 20 61 6e 64 20  73 68 6f 77 6e 20 74 68  |it, and shown th|
00000f10  61 74 20 69 74 20 77 6f  72 6b 65 64 20 62 79 20  |at it worked by |
00000f20  6d 6f 6e 69 74 6f 72 69  6e 67 20 74 68 65 0d 6f  |monitoring the.o|
00000f30  75 74 70 75 74 20 75 73  69 6e 67 20 61 20 6d 69  |utput using a mi|
00000f40  63 72 6f 70 68 6f 6e 65  20 61 6e 64 20 61 6e 20  |crophone and an |
00000f50  6f 73 63 69 6c 6c 6f 73  63 6f 70 65 2c 20 49 20  |oscilloscope, I |
00000f60  64 65 63 69 64 65 64 20  74 6f 20 74 65 73 74 20  |decided to test |
00000f70  74 68 65 0d 72 65 73 70  6f 6e 73 65 20 72 61 74  |the.response rat|
00000f80  65 20 6f 66 20 74 68 65  20 63 69 72 63 75 69 74  |e of the circuit|
00000f90  20 74 6f 20 73 65 65 20  68 6f 77 20 6c 6f 6e 67  | to see how long|
00000fa0  20 69 74 20 74 6f 6f 6b  20 74 68 65 20 74 72 61  | it took the tra|
00000fb0  6e 73 6d 69 74 74 65 72  20 74 6f 0d 72 65 61 63  |nsmitter to.reac|
00000fc0  68 20 6d 61 78 69 6d 75  6d 20 61 6d 70 6c 69 74  |h maximum amplit|
00000fd0  75 64 65 20 61 66 74 65  72 20 74 68 65 20 6f 75  |ude after the ou|
00000fe0  74 70 75 74 20 6c 69 6e  65 20 66 72 6f 6d 20 74  |tput line from t|
00000ff0  68 65 20 63 6f 6d 70 75  74 65 72 20 67 6f 65 73  |he computer goes|
00001000  20 68 69 67 68 2c 0d 73  77 69 74 63 68 69 6e 67  | high,.switching|
00001010  20 6f 6e 20 74 68 65 20  74 72 61 6e 73 6d 69 74  | on the transmit|
00001020  74 65 72 2e 20 42 79 20  70 72 6f 67 72 61 6d 6d  |ter. By programm|
00001030  69 6e 67 20 74 68 65 20  63 6f 6d 70 75 74 65 72  |ing the computer|
00001040  20 74 6f 20 73 77 69 74  63 68 20 74 68 65 0d 74  | to switch the.t|
00001050  72 61 6e 73 6d 69 74 74  65 72 20 6f 6e 20 61 6e  |ransmitter on an|
00001060  64 20 6f 66 66 20 61 74  20 68 69 67 68 20 66 72  |d off at high fr|
00001070  65 71 75 65 6e 63 79 2c  20 61 6e 64 20 6d 6f 6e  |equency, and mon|
00001080  69 74 6f 72 69 6e 67 20  74 68 65 20 73 6f 75 6e  |itoring the soun|
00001090  64 20 6f 75 74 70 75 74  0d 6f 6e 20 61 6e 20 6f  |d output.on an o|
000010a0  73 63 69 6c 6c 6f 73 63  6f 70 65 2c 20 49 20 66  |scilloscope, I f|
000010b0  6f 75 6e 64 20 74 68 61  74 20 69 74 20 74 61 6b  |ound that it tak|
000010c0  65 73 20 61 62 6f 75 74  20 31 6d 73 20 74 6f 20  |es about 1ms to |
000010d0  72 65 61 63 68 20 6d 61  78 69 6d 75 6d 0d 61 6d  |reach maximum.am|
000010e0  70 6c 69 74 75 64 65 20  66 72 6f 6d 20 74 68 65  |plitude from the|
000010f0  20 22 62 6c 69 70 22 20  63 6f 6e 74 72 6f 6c 20  | "blip" control |
00001100  73 69 67 6e 61 6c 20 62  65 69 6e 67 20 73 65 6e  |signal being sen|
00001110  74 2c 20 61 6e 64 20 31  6d 73 20 74 6f 20 72 65  |t, and 1ms to re|
00001120  74 75 72 6e 20 74 6f 0d  63 6f 6d 70 6c 65 74 65  |turn to.complete|
00001130  20 73 69 6c 65 6e 63 65  20 61 66 74 65 72 20 62  | silence after b|
00001140  65 69 6e 67 20 74 75 72  6e 65 64 20 6f 66 66 2e  |eing turned off.|
00001150  20 54 68 65 72 65 66 6f  72 65 20 49 20 64 65 63  | Therefore I dec|
00001160  69 64 65 64 20 74 68 61  74 20 74 68 65 0d 63 6f  |ided that the.co|
00001170  6d 70 75 74 65 72 20 73  68 6f 75 6c 64 20 73 65  |mputer should se|
00001180  6e 64 20 74 68 65 20 22  62 6c 69 70 22 20 73 69  |nd the "blip" si|
00001190  67 6e 61 6c 20 74 6f 20  74 68 69 73 20 63 69 72  |gnal to this cir|
000011a0  63 75 69 74 20 66 6f 72  20 61 20 6d 69 6e 69 6d  |cuit for a minim|
000011b0  75 6d 20 6f 66 0d 31 6d  73 20 66 6f 72 20 69 74  |um of.1ms for it|
000011c0  20 74 6f 20 62 65 20 73  75 72 65 20 74 6f 20 68  | to be sure to h|
000011d0  61 76 65 20 74 68 65 20  65 66 66 65 63 74 20 6f  |ave the effect o|
000011e0  66 20 70 72 6f 64 75 63  69 6e 67 20 61 20 73 6f  |f producing a so|
000011f0  75 6e 64 20 6f 66 20 6d  61 78 69 6d 61 6c 0d 61  |und of maximal.a|
00001200  6d 70 6c 69 74 75 64 65  2c 20 62 75 74 20 6e 6f  |mplitude, but no|
00001210  74 20 74 6f 6f 20 6c 6f  6e 67 20 74 68 61 74 20  |t too long that |
00001220  74 68 65 20 72 65 63 69  65 76 65 64 20 77 61 76  |the recieved wav|
00001230  65 66 6f 72 6d 73 20 66  72 6f 6d 20 64 69 66 66  |eforms from diff|
00001240  65 72 65 6e 74 0d 6f 62  6a 65 63 74 73 20 62 65  |erent.objects be|
00001250  63 6f 6d 65 20 62 6c 75  72 72 65 64 20 69 6e 20  |come blurred in |
00001260  61 6e 79 20 77 61 79 2e  0d 0d 54 68 65 20 52 65  |any way...The Re|
00001270  63 69 65 76 65 72 0d 0d  54 68 65 20 75 6c 74 72  |ciever..The ultr|
00001280  61 73 6f 6e 69 63 20 72  65 63 69 65 76 65 72 20  |asonic reciever |
00001290  69 73 20 72 61 74 68 65  72 20 6d 6f 72 65 20 63  |is rather more c|
000012a0  6f 6d 70 6c 69 63 61 74  65 64 20 74 68 61 6e 20  |omplicated than |
000012b0  74 68 65 20 74 72 61 6e  73 6d 69 74 74 65 72 2c  |the transmitter,|
000012c0  0d 61 6e 64 20 77 6f 72  6b 20 69 73 20 73 74 69  |.and work is sti|
000012d0  6c 6c 20 61 74 20 61 20  76 65 72 79 20 65 61 72  |ll at a very ear|
000012e0  6c 79 20 73 74 61 67 65  2e 20 4f 75 72 20 66 69  |ly stage. Our fi|
000012f0  72 73 74 20 6f 62 6a 65  63 74 69 76 65 20 77 61  |rst objective wa|
00001300  73 20 74 6f 20 66 69 6e  64 0d 6f 75 74 20 65 78  |s to find.out ex|
00001310  61 63 74 6c 79 20 77 6f  72 6b 20 6b 69 6e 64 20  |actly work kind |
00001320  6f 66 20 73 69 67 6e 61  6c 20 74 68 65 20 75 6c  |of signal the ul|
00001330  74 72 61 73 6f 6e 69 63  20 6d 69 63 72 6f 70 68  |trasonic microph|
00001340  6f 6e 65 20 70 72 6f 64  75 63 65 73 20 77 68 65  |one produces whe|
00001350  6e 0d 65 78 70 6f 73 65  64 20 74 6f 20 75 6c 74  |n.exposed to ult|
00001360  72 61 73 6f 75 6e 64 2e  20 55 73 69 6e 67 20 61  |rasound. Using a|
00001370  6e 20 6f 73 63 69 6c 6c  6f 73 63 6f 70 65 2c 20  |n oscilloscope, |
00001380  49 20 66 6f 75 6e 64 20  74 68 61 74 20 74 68 65  |I found that the|
00001390  20 73 69 67 6e 61 6c 0d  70 72 6f 64 75 63 65 64  | signal.produced|
000013a0  20 69 73 20 61 6e 20 61  2e 63 2e 20 73 69 67 6e  | is an a.c. sign|
000013b0  61 6c 20 77 68 69 63 68  20 6f 73 63 69 6c 6c 61  |al which oscilla|
000013c0  74 65 73 20 61 74 20 34  30 6b 48 7a 2c 20 61 6e  |tes at 40kHz, an|
000013d0  64 20 68 61 73 20 61 6e  20 61 6d 70 6c 69 74 75  |d has an amplitu|
000013e0  64 65 0d 77 68 69 63 68  20 76 61 72 69 65 73 20  |de.which varies |
000013f0  77 69 74 68 20 74 68 65  20 69 6e 74 65 6e 73 69  |with the intensi|
00001400  74 79 20 6f 66 20 74 68  65 20 75 6c 74 72 61 73  |ty of the ultras|
00001410  6f 75 6e 64 20 74 6f 20  77 68 69 63 68 20 69 74  |ound to which it|
00001420  20 69 73 20 65 78 70 6f  73 65 64 2e 0d 49 20 65  | is exposed..I e|
00001430  78 70 65 63 74 65 64 20  74 68 65 20 76 6f 6c 74  |xpected the volt|
00001440  61 67 65 20 6f 66 20 74  68 69 73 20 73 69 67 6e  |age of this sign|
00001450  61 6c 20 74 6f 20 62 65  20 70 72 6f 70 6f 72 74  |al to be proport|
00001460  69 6f 6e 61 6c 20 74 6f  20 74 68 65 20 69 6e 76  |ional to the inv|
00001470  65 72 73 65 0d 73 71 75  61 72 65 20 6f 66 20 74  |erse.square of t|
00001480  68 65 20 64 69 73 74 61  6e 63 65 2e 20 54 68 65  |he distance. The|
00001490  20 73 6f 75 6e 64 20 73  70 72 65 61 64 73 20 6f  | sound spreads o|
000014a0  75 74 20 66 72 6f 6d 20  74 68 65 20 73 6f 75 72  |ut from the sour|
000014b0  63 65 20 69 6e 20 74 68  65 20 73 68 61 70 65 0d  |ce in the shape.|
000014c0  6f 66 20 61 20 73 70 68  65 72 65 20 28 6f 72 20  |of a sphere (or |
000014d0  70 61 72 74 20 6f 66 20  61 20 73 70 68 65 72 65  |part of a sphere|
000014e0  29 2e 20 54 68 65 72 65  66 6f 72 65 20 61 74 20  |). Therefore at |
000014f0  61 6e 79 20 6f 6e 65 20  74 69 6d 65 20 74 68 65  |any one time the|
00001500  20 73 6f 75 6e 64 0d 65  6e 65 72 67 79 20 69 73  | sound.energy is|
00001510  20 73 70 72 65 61 64 20  6f 76 65 72 20 74 68 65  | spread over the|
00001520  20 73 75 72 66 61 63 65  20 61 72 65 61 20 6f 66  | surface area of|
00001530  20 61 20 73 70 68 65 72  65 20 6f 66 20 64 69 73  | a sphere of dis|
00001540  74 61 6e 63 65 20 64 20  61 72 6f 75 6e 64 0d 74  |tance d around.t|
00001550  68 65 20 73 6f 75 72 63  65 2c 20 77 68 65 72 65  |he source, where|
00001560  20 64 20 69 73 20 74 68  65 20 64 69 73 74 61 6e  | d is the distan|
00001570  63 65 20 62 65 74 77 65  65 6e 20 74 68 65 20 73  |ce between the s|
00001580  6f 75 72 63 65 20 61 6e  64 20 74 68 65 0d 74 72  |ource and the.tr|
00001590  61 6e 73 6d 69 74 74 65  72 2e 20 54 68 69 73 20  |ansmitter. This |
000015a0  77 6f 75 6c 64 20 69 6e  64 69 63 61 74 65 20 74  |would indicate t|
000015b0  68 65 20 66 6f 6c 6c 6f  77 69 6e 67 20 66 6f 72  |he following for|
000015c0  6d 75 6c 61 3a 0d 0d 54  68 65 20 64 61 74 61 20  |mula:..The data |
000015d0  61 63 74 75 61 6c 6c 79  20 63 6f 6c 6c 65 63 74  |actually collect|
000015e0  65 64 20 74 68 72 6f 75  67 68 20 74 65 73 74 73  |ed through tests|
000015f0  20 77 69 74 68 20 74 68  65 20 75 6c 74 72 61 73  | with the ultras|
00001600  6f 6e 69 63 20 65 71 75  69 70 6d 65 6e 74 20 69  |onic equipment i|
00001610  73 0d 73 68 6f 77 6e 20  62 65 6c 6f 77 3a 0d 0d  |s.shown below:..|
00001620  42 6f 74 68 20 74 65 73  74 73 20 73 74 72 6f 6e  |Both tests stron|
00001630  67 6c 79 20 73 75 67 67  65 73 74 20 74 68 61 74  |gly suggest that|
00001640  20 74 68 65 20 76 6f 6c  74 61 67 65 20 6f 66 20  | the voltage of |
00001650  74 68 65 20 73 69 67 6e  61 6c 20 66 72 6f 6d 20  |the signal from |
00001660  74 68 65 0d 6d 69 63 72  6f 70 68 6f 6e 65 20 69  |the.microphone i|
00001670  73 20 69 6e 76 65 72 73  65 6c 79 20 70 72 6f 70  |s inversely prop|
00001680  6f 72 74 69 6f 6e 61 6c  20 74 6f 20 74 68 65 20  |ortional to the |
00001690  64 69 73 74 61 6e 63 65  2e 20 54 68 65 72 65 66  |distance. Theref|
000016a0  6f 72 65 2c 20 74 68 69  73 0d 73 75 67 67 65 73  |ore, this.sugges|
000016b0  74 73 20 74 68 61 74 3a  0d 0d 41 73 20 79 6f 75  |ts that:..As you|
000016c0  20 63 61 6e 20 73 65 65  2c 20 74 68 65 20 70 72  | can see, the pr|
000016d0  6f 64 75 63 74 20 6f 66  20 74 68 65 20 76 6f 6c  |oduct of the vol|
000016e0  74 61 67 65 20 72 65 63  69 65 76 65 64 20 61 6e  |tage recieved an|
000016f0  64 20 74 68 65 20 64 69  73 74 61 6e 63 65 20 6f  |d the distance o|
00001700  66 0d 74 68 65 20 73 6f  75 72 63 65 20 66 72 6f  |f.the source fro|
00001710  6d 20 74 68 65 20 72 65  63 69 65 76 65 72 20 69  |m the reciever i|
00001720  73 20 63 6f 6e 73 74 61  6e 74 2e 20 54 68 69 73  |s constant. This|
00001730  20 63 6f 75 6c 64 20 62  65 20 76 65 72 79 20 75  | could be very u|
00001740  73 65 66 75 6c 2e 0d 47  72 61 70 68 73 20 66 6f  |seful..Graphs fo|
00001750  72 20 56 6f 6c 74 61 67  65 20 78 20 44 69 73 74  |r Voltage x Dist|
00001760  61 6e 63 65 20 73 68 6f  75 6c 64 2c 20 74 68 65  |ance should, the|
00001770  72 65 66 6f 72 65 2c 20  62 65 20 61 20 73 74 72  |refore, be a str|
00001780  61 69 67 68 74 20 68 6f  72 69 7a 6f 6e 74 61 6c  |aight horizontal|
00001790  0d 6c 69 6e 65 2e 20 53  75 63 68 20 67 72 61 70  |.line. Such grap|
000017a0  68 73 20 6f 66 20 76 6f  6c 74 61 67 65 20 78 20  |hs of voltage x |
000017b0  64 69 73 74 61 6e 63 65  20 61 72 65 20 70 6c 6f  |distance are plo|
000017c0  74 74 65 64 20 62 65 6c  6f 77 3a 0d 0d 53 6f 20  |tted below:..So |
000017d0  66 61 72 2c 20 61 6c 6c  20 73 74 75 64 69 65 73  |far, all studies|
000017e0  20 68 61 76 65 20 62 65  65 6e 20 6f 66 20 61 20  | have been of a |
000017f0  73 79 73 74 65 6d 20 69  6e 76 6f 6c 76 69 6e 67  |system involving|
00001800  20 74 72 61 6e 73 6d 69  73 73 69 6f 6e 20 69 6e  | transmission in|
00001810  20 61 0d 73 74 72 61 69  67 68 74 20 6c 69 6e 65  | a.straight line|
00001820  2c 20 77 69 74 68 20 74  68 65 20 72 65 63 69 65  |, with the recie|
00001830  76 65 72 20 66 61 63 69  6e 67 20 74 68 65 20 74  |ver facing the t|
00001840  72 61 6e 73 6d 69 74 74  65 72 2e 20 49 6e 20 42  |ransmitter. In B|
00001850  61 6c 6c 42 6f 74 2c 0d  68 6f 77 65 76 65 72 2c  |allBot,.however,|
00001860  20 74 68 65 20 74 72 61  6e 73 6d 69 74 74 65 72  | the transmitter|
00001870  20 61 6e 64 20 74 68 65  20 72 65 63 69 65 76 65  | and the recieve|
00001880  72 20 77 69 6c 6c 20 62  65 20 74 6f 67 65 74 68  |r will be togeth|
00001890  65 72 2c 20 61 6e 64 20  66 61 63 69 6e 67 20 69  |er, and facing i|
000018a0  6e 0d 74 68 65 20 73 61  6d 65 20 64 69 72 65 63  |n.the same direc|
000018b0  74 69 6f 6e 2e 20 54 68  65 72 65 66 6f 72 65 20  |tion. Therefore |
000018c0  73 6f 6d 65 20 74 65 73  74 73 20 68 61 76 65 20  |some tests have |
000018d0  62 65 65 6e 20 70 65 72  66 6f 72 6d 65 64 20 66  |been performed f|
000018e0  6f 72 20 74 68 65 20 69  6e 70 75 74 0d 72 65 63  |or the input.rec|
000018f0  69 65 76 65 64 20 77 68  65 6e 20 61 6e 20 65 63  |ieved when an ec|
00001900  68 6f 20 69 73 20 62 6f  75 6e 63 65 64 20 6f 66  |ho is bounced of|
00001910  66 20 61 20 73 75 72 66  61 63 65 2e 20 44 61 74  |f a surface. Dat|
00001920  61 20 66 6f 72 20 73 75  63 68 20 74 65 73 74 73  |a for such tests|
00001930  20 61 72 65 0d 73 68 6f  77 6e 20 62 65 6c 6f 77  | are.shown below|
00001940  3a 0d 0d 4f 6e 63 65 20  61 67 61 69 6e 2c 20 69  |:..Once again, i|
00001950  74 20 61 70 70 65 61 72  73 20 74 68 61 74 20 76  |t appears that v|
00001960  6f 6c 74 61 67 65 20 69  73 20 69 6e 76 65 72 73  |oltage is invers|
00001970  65 6c 79 20 70 72 6f 70  6f 72 74 69 6f 6e 61 6c  |ely proportional|
00001980  20 74 6f 20 64 69 73 74  61 6e 63 65 2e 0d 54 68  | to distance..Th|
00001990  69 73 20 73 75 67 67 65  73 74 73 20 74 68 61 74  |is suggests that|
000019a0  20 73 75 72 66 61 63 65  73 20 72 65 66 6c 65 63  | surfaces reflec|
000019b0  74 20 61 20 63 6f 6e 73  74 61 6e 74 20 70 72 6f  |t a constant pro|
000019c0  70 6f 72 74 69 6f 6e 20  6f 66 20 74 68 65 20 73  |portion of the s|
000019d0  6f 75 6e 64 0d 65 6e 65  72 67 79 20 62 61 63 6b  |ound.energy back|
000019e0  20 61 74 20 74 68 65 20  72 6f 62 6f 74 2e 20 4f  | at the robot. O|
000019f0  6e 63 65 20 61 67 61 69  6e 2c 20 74 68 65 20 70  |nce again, the p|
00001a00  72 6f 64 75 63 74 20 6f  66 20 64 69 73 74 61 6e  |roduct of distan|
00001a10  63 65 20 61 6e 64 20 76  6f 6c 74 61 67 65 0d 73  |ce and voltage.s|
00001a20  68 6f 75 6c 64 20 62 65  20 61 20 63 6f 6e 73 74  |hould be a const|
00001a30  61 6e 74 20 76 61 6c 75  65 2e 20 42 75 74 20 62  |ant value. But b|
00001a40  65 63 61 75 73 65 20 77  65 20 6b 6e 6f 77 20 74  |ecause we know t|
00001a50  68 61 74 20 74 68 65 20  64 69 73 74 61 6e 63 65  |hat the distance|
00001a60  20 6f 66 20 74 68 65 0d  6f 62 6a 65 63 74 20 69  | of the.object i|
00001a70  73 20 70 72 6f 70 6f 72  74 69 6f 6e 61 6c 20 74  |s proportional t|
00001a80  6f 20 74 68 65 20 74 69  6d 65 20 74 61 6b 65 6e  |o the time taken|
00001a90  20 66 6f 72 20 74 68 65  20 65 63 68 6f 20 74 6f  | for the echo to|
00001aa0  20 62 65 20 72 65 63 69  65 76 65 64 2c 20 77 65  | be recieved, we|
00001ab0  0d 63 61 6e 20 63 6f 6e  76 65 72 74 20 74 68 69  |.can convert thi|
00001ac0  73 20 74 6f 20 73 61 79  69 6e 67 20 74 68 61 74  |s to saying that|
00001ad0  20 74 68 65 20 70 72 6f  64 75 63 74 20 6f 66 20  | the product of |
00001ae0  74 68 65 20 74 69 6d 65  20 65 6c 61 70 73 65 64  |the time elapsed|
00001af0  20 73 69 6e 63 65 20 74  68 65 0d 75 6c 74 72 61  | since the.ultra|
00001b00  73 6f 6e 69 63 20 62 6c  69 70 20 77 61 73 20 74  |sonic blip was t|
00001b10  72 61 6e 73 6d 69 74 74  65 64 20 61 6e 64 20 74  |ransmitted and t|
00001b20  68 65 20 69 6e 70 75 74  20 76 6f 6c 74 61 67 65  |he input voltage|
00001b30  20 69 73 20 61 20 63 6f  6e 73 74 61 6e 74 20 76  | is a constant v|
00001b40  61 6c 75 65 0d 66 6f 72  20 70 61 72 74 69 63 75  |alue.for particu|
00001b50  6c 61 72 20 73 75 72 66  61 63 65 73 2e 20 54 68  |lar surfaces. Th|
00001b60  69 73 20 69 73 20 6d 6f  72 65 20 75 73 65 66 75  |is is more usefu|
00001b70  6c 20 74 68 61 6e 20 64  69 73 74 61 6e 63 65 20  |l than distance |
00001b80  77 69 74 68 20 72 65 67  61 72 64 20 74 6f 0d 64  |with regard to.d|
00001b90  65 73 69 67 6e 69 6e 67  20 74 68 65 20 42 61 6c  |esigning the Bal|
00001ba0  6c 42 6f 74 20 68 61 72  64 77 61 72 65 2e 20 47  |lBot hardware. G|
00001bb0  72 61 70 68 73 20 66 6f  72 20 76 6f 6c 74 61 67  |raphs for voltag|
00001bc0  65 20 78 20 64 69 73 74  61 6e 63 65 20 66 6f 72  |e x distance for|
00001bd0  20 65 63 68 6f 0d 74 65  73 74 73 20 61 72 65 20  | echo.tests are |
00001be0  70 6c 6f 74 74 65 64 20  62 65 6c 6f 77 3a 0d 0d  |plotted below:..|
00001bf0  54 68 65 20 63 6f 6e 73  74 61 6e 74 20 76 61 6c  |The constant val|
00001c00  75 65 20 6f 66 20 74 68  65 20 70 72 6f 64 75 63  |ue of the produc|
00001c10  74 20 6f 66 20 76 6f 6c  74 61 67 65 20 61 6e 64  |t of voltage and|
00001c20  20 64 69 73 74 61 6e 63  65 20 63 61 6e 20 62 65  | distance can be|
00001c30  20 66 6f 75 6e 64 20 66  6f 72 0d 64 69 66 66 65  | found for.diffe|
00001c40  72 65 6e 74 20 73 75 72  66 61 63 65 73 20 66 6f  |rent surfaces fo|
00001c50  72 20 74 68 65 20 67 69  76 65 6e 20 73 70 65 61  |r the given spea|
00001c60  6b 65 72 73 20 61 6e 64  20 6f 75 74 70 75 74 20  |kers and output |
00001c70  61 6d 70 6c 69 74 75 64  65 2e 20 54 68 65 20 75  |amplitude. The u|
00001c80  6e 69 74 0d 6f 66 20 74  68 69 73 20 76 61 6c 75  |nit.of this valu|
00001c90  65 20 69 73 20 74 68 65  20 76 6f 6c 74 2d 6d 65  |e is the volt-me|
00001ca0  74 72 65 20 28 56 6d 29  2e 20 57 6f 72 6b 20 69  |tre (Vm). Work i|
00001cb0  73 20 63 75 72 72 65 6e  74 6c 79 20 69 6e 20 70  |s currently in p|
00001cc0  72 6f 67 72 65 73 73 20  74 6f 20 74 72 79 0d 74  |rogress to try.t|
00001cd0  6f 20 66 69 6e 64 20 61  63 74 75 61 6c 20 76 61  |o find actual va|
00001ce0  6c 75 65 73 20 6f 66 20  74 68 69 73 20 66 6f 72  |lues of this for|
00001cf0  20 74 68 65 20 6b 69 6e  64 20 6f 66 20 6f 62 6a  | the kind of obj|
00001d00  65 63 74 73 20 77 68 69  63 68 20 42 61 6c 6c 42  |ects which BallB|
00001d10  6f 74 20 77 69 6c 6c 0d  63 6f 6d 65 20 61 63 72  |ot will.come acr|
00001d20  6f 73 73 20 28 65 2e 67  2e 20 74 65 6e 6e 69 73  |oss (e.g. tennis|
00001d30  20 62 61 6c 6c 73 29 2e  20 54 68 65 20 76 61 6c  | balls). The val|
00001d40  75 65 20 69 73 20 65 71  75 61 6c 20 74 6f 20 74  |ue is equal to t|
00001d50  68 65 20 76 6f 6c 74 61  67 65 0d 70 72 6f 64 75  |he voltage.produ|
00001d60  63 65 64 20 61 63 72 6f  73 73 20 74 68 65 20 72  |ced across the r|
00001d70  65 63 69 65 76 65 72 20  77 68 65 6e 20 61 6e 20  |eciever when an |
00001d80  65 63 68 6f 20 69 73 20  72 65 63 69 65 76 65 64  |echo is recieved|
00001d90  20 6f 66 66 20 74 68 61  74 20 74 79 70 65 20 6f  | off that type o|
00001da0  66 0d 73 75 72 66 61 63  65 20 61 74 20 61 20 64  |f.surface at a d|
00001db0  69 73 74 61 6e 63 65 20  6f 66 20 6f 6e 65 20 6d  |istance of one m|
00001dc0  65 74 72 65 2e 0d                                 |etre..|
00001dc6