DS18S20 interfacing with pic and avr microcontroller




In this article you will learn about DS18S20 interfacing with pic and avr microcontroller:

AVR Development Board:

The AVR Development Board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports In-system programming (ISP) which is done through Parallel/Printer port.

ATMEL’s AVR (Atmega8535), AVR Development Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of High speed 8-bit Microcontrollers.

Temperature Sensor

DS1820 is a temperature sensor which is small sensor. The output of sensor converted to digital that easy connecting with microcontroller.

Interfacing ds1820

Fig. 1 shows how to interface the ds1820 to microcontroller. As you can see the first pin is connected to GND, the third pin is connected to VCC & the second pin is connected to the Microcontroller. So when the temperature is sensing, it give the sensor reading to controller.

DS18S20 interfacing with pic and avr microcontroller

Interfacing ds1820 with AVR Development

We now want to read the temperature in AVR Development Board from temperature sensor ds1820. AVR Development Board uses the PORTA pin for reading temperature from temperature sensor ds1820. The reading output is displayed into PC through UART.

The PORTA pin is used to read temperature.

Pin Assignment with AVR Development

HARDWARE PIN OUT CONNECTIONS OUTPUT
DATA PORTA.2 Connect Port pin PORTA.2 with JH1(anyone) of DS1820 section by jumper or bus

Connect Serial cable between USART Section in the Board and PC.

Data array and Tempera- ture values will be dis- played in HyperTerminal

Circuit Diagram to Interface ds1820 with AVR

circuit-diagram-to-ds1820-with-avr-primer

Source Code

The Interfacing ds1820 with AVR Development program is very simple and straight forward, that reading temperature from temperature sensor ds1820 and it display into PC through serial port.

For more detail: DS18S20 interfacing with pic and avr microcontroller




READ  Book: PIC Microcontrollers

Leave a Comment

*
= 3 + 1

Read previous post:
Freeze 75 – and you have a temperature under control
Freeze 75 – and you have a temperature under control

A device operates OK until it reaches stable operating temperature … a typical situation in praxis usually caused by a...

Close
Scroll to top