Lab 3: LogoChip

Joseph Giardina
Yan Tran
February 26,2004

In this lab, the UML305DEV board and a Logochip wired on a breadboard were constructed. Then 3 activites were performed with these 2 devices and a Handy Cricket.

The UML305DEV board was constructed by following instructions available at http://www.cs.uml.edu/~fredm/courses/91.305-fall02/files/assembly.pdf. All the components were provided and, with the exception of the batteries, required soldering. Assembly time was approximately 3 hours. Occasionally, some of the LEDs or other components were soldered in reverse-polarity. To rectify this problem, the components were removed, the solder was cleaned out, and new components were installed. The instructions called for testing by using the probe on the board. Some of the tests failed initially due to insufficient soldering of some pins.

The Logo Chip was wired to a breadboard along with a 74HCO4 IC,a resonator, resistors, an LED, and a few capacitors. Instructions were provided by the following document: http://www.cs.uml.edu/~fredm/courses/91.548-spr03/files/GettingStarted-fredm.pdf. The instructions called for connecting the Logo Chip to the UML305DEV board.

Activities

Part 1:
This activity required inducing the LogoChip to run a bootflash with instructions provided by a serially-connected PC running the LC LOGO project. Instructions on running this code is described in the LogoChip Bus Version page here: http://www.cs.uml.edu/~fredm/courses/91.548/logochip.shtml. Sending the "flash" command" from the console window on the PC induces the same bootflash effect on the Logo Chip. Part 1 also requires that a beeper be connected to the Logo Chip and for the beeper to be activated in a loop. The solution was to hook the piezo on the UML305DEV board to pin 14 on the Logo Chip. Then the flash command was repeatedly called. Thus, when the LED on the bread board, flashed, the piezo would produce a beep. The code for this loop is as follows:
to flashy
loop [ flash]
end

Part 2:
In this activity, the experiment to build a sound-activated strobe light was attempted. The piezo on the UML305DEV board was wired to port A0 on the Logo Chip the bank of LEDS on the UML305DEV board were wired to the Logo Chip's port B4. The code that was downloaded to the Logo Chip and run from the PC is available at http://www.cs.uml.edu/~ytran/robotics/lab3/part2.mw2. A diagram of the circuits is available at http://www.cs.uml.edu/~ytran/robotics/lab3/logochip2.bmp. Unfortunately, the piezo was only sensitive enough to detect vibrations resulting from physically tapping on UML305DEV board. Attempts to build a transistor amplifier were not successful.

Part 3:
In this activity, the LogoChip was connected to a Handy Cricket using its Bus protocol. The diagram for this wiring is here: http://www.cs.uml.edu/~ytran/robotics/lab3/logochip3.bmp. The previously mentioned LogoChip Bus page describes how to connect the two devices together. The Handy Cricket was loaded with the following code:
to master
bsend $180
master
end
The LogoChip was then loaded with this code:
to slave
waituntil [newbus?]
if brcv = $180 [flash]
slave
end