How to control a servo motor.

servo motor controller pic2

In ths project you can learn how to build a servo controleer motor with the ATMEGA328 board. The position of the servo motor is controlled by the software (sweep back and forth) or by a potentiometer.

The ATMega16 chip in the M16 has a real-time counter that operates asynchronously when a 32,768hz watch crystal is connected to it, providing a real-time clock. Bascom has built-in support for the RTC, making it very easy to use time functions. The watch crystal needs to connect to pins TOSC1(pin 28) and TOSC2(pin 29). The time and date can be set via the PC serial port connection.

This is a peripheral board with 4 relais, rated at 5A/250V each. The board has a ML10 output connector for connection with the AT2313 Project board. It has also 4 LED's for indication which relais is switched on.

How to control a stepper motor

stepper motor controller

In this project you will learn how to control a stepper motor using the ATMEL328 board and the L293D motor control chip. The stepper motor can be turned left or right with a slide switche .

The NXP PCF8583 IC is a clock/calendar circuit based on a 2048-bit static CMOS RAM organized as 256 words by 8 bits. Addresses and data are transferred serially via the two-line bidirectional I2C-bus.

The output voltage is 10mV/ºC . The output voltage is converted by the AD convertor of the AT Mega8. The temperature is displayed on an LCD module. In this example the thermometer has a range of 0ºC to 40ºC and a resolution of 0.5ºC. If you want to have a readout in Fahrenheit you can use the LM34.

With this circuit you can drive a unipolar stepper motor. It operates in full step mode. The AVR attiny2313 micro controller controls the pulses for the stepper motor. The pulses are amplified by the ULN2003 driver.