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.
DS1820 is a temperature sensor which is small sensor. The output of sensor converted to digital that easy connecting with microcontroller.
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.
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
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
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w