The Atmel AVR series are very good microcontrollers with quite a rich instruction set, rich enough that lots of folks have good compilers for them so we don`t have to learn their assembler. A very rich compiler available is the BASCOM/AVR compiler from MCS Electronics. I`ve used this compiler for prototyping the software on my 90S2313 robot board
Click here to download the full size of the above Circuit.
for two reasons: One, It has a very rich command syntax; Two, its free in its demo version! The demo version only supports 2K of instruction memory, other than that it is completely uncrippled. The 90S2313 has 2K of instruction memory - See the pattern I designed this board to use my IRPD chip and my Serial Servo Chip to handle the "eyes" and the "legs" of this robot board respectively. Because the 2313 does not have A2D capability, I also added the SPI based MCP3202 dual channel A2D chip. Finally, because I like to have some kind of debug capability, I added the MAX232 circuit to the hardware UART on the 2313 chip. Currently all that I have done is make sure that the board is fully functional. Note that BASCOM/AVR now has the ability to control up to 8 servos in the background - My SSC chip will take up less system overhead, but with this new capability, it really isn`t needed. However, note that the SSC chip uses one I/O line and controls 4 servos. Below is the test code for the board. It tests out the servo by using the software UART on an arbitrary output pin, then tests the IRPD (waving hands in front of it a bit), then it blinks an LED on a port to show single bit output and finally grabs A2D input from the MCP3202 - The A2D ports are designed so that I can just stick a trim pot into them and twidling it. Incidentally, it also checks out the RS232 connection to the PC by printing to it. So this test software shows how...
This project fits more for custom made battery casing that can have more space to hide things inside. This switch with few alterations can be used for any other project as well but is designed based on e-bike needs! This project use a clever functionality of....
The circuit described here uses ultrasonic oscillations and operates based on the propagation velocity of these oscillations in the air. Thus, we can easily determine the distance of two points if the time within which the wave travels this distance is....
Sometimes the precious metals are hidden too deep and are not detected except with complicated devices. In many cases, however, small pieces of precious metal buried near the surface can be detected by relatively simple means. Everyone is very attractive to....
Many times for various reasons we forget or can not water the plants that we have in our homes. And many humidity sensors units just notify us with a beeping sound or with a flashing light, that the pot needs watering. But what if we are away from home? This....
The principle behind a metal detector is really very simple. Proof of this is the circuit that follows, in which it proves that the construction of a metal detector can be done in the minute, with few components that we find very easily everywhere. With the....
The sub-harmonic bass generator is a sound producing unit for guitars. The sound it produces looks very much like that of the bass guitar. The octave generator is sometimes quite unusual since it does not produce any of the usual ways of coloring the sound,....
In the past the sounding (sea bottom measurement) was done with the "bullet", that is, with a heavy lead object that the seamen plucked into the sea hung from a calibrated rope. As soon as the "bullet" reached the bottom, the depth appeared directly from the....
This Amplifier was designed to have the following specifications: Distortion less than 0.1% at full power of 100W even at 20KHz. Power has to be attributed to an extended bandwidth. The output transistors must be protected against short circuits. The power....
A series of LEDs serve to alert the gardener when plants need water. Using two conventional digital integrated LEDs and a series of LEDs, we make a very useful device for gardening. The device detects the amount of water in the pot and alerts the grower.....
characters left: