90S2313 AVR Robot Board


Posted on Feb 5, 2014

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


90S2313 AVR 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...




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Dc-latching-relay
Qrp-cw-transceiver
Circuit examples
Sensors and Sensing
Arduino Controlled Pneumatic Servo
programming pen usb interface
Sense of Time tester circuit
Cranial Electrotherapy StimulatorCircuit
Hobby and Fun
25kHz using thyristor inverter welding machine circuit



Top