kailash2506 / EXPERIMENT--02-INTERFACEING-A-DIGITAL-INPUT-TO-IOT-DEVELOPMENT-BOARD-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DATE:

NAME:

ROLL NO :

DEPARTMENT:

EXPERIMENT--02-INTERFACING-A-DIGITAL-INPUT-TO-IOT-DEVELOPMENT-BOARD-

Aim: To Interface a Digital Input (IR pair ) to ARM IOT development board and write a program to obtain the data

Components required: STM32 CUBE IDE, ARM IOT development board, STM programmer tool.

Theory

The full form of an ARM is an advanced reduced instruction set computer (RISC) machine, and it is a 32-bit processor architecture expanded by ARM holdings. The applications of an ARM processor include several microcontrollers as well as processors. The architecture of an ARM processor was licensed by many corporations for designing ARM processor-based SoC products and CPUs. This allows the corporations to manufacture their products using ARM architecture. Likewise, all main semiconductor companies will make ARM-based SOCs such as Samsung, Atmel, TI etc.

IR pair

image

IR technology is used in a wide range of wireless applications which includes remote controls and sensing. The infrared part in the electromagnetic spectrum can be separated into three main regions: near IR, mid-IR & far IR. The wavelengths of these three regions vary based on the application. For the near IR region, the wavelength ranges from 700 nm- 1400 nm, the wavelength of the mid-IR region ranges from 1400 nm – 3000 nm & finally for the far IR region, the wavelength ranges from 3000 nm – 1 mm.The near IR region is used on fiber optic & IR sensors, the mid-IR region is used for heat sensing and the far IR region is used in thermal imaging. The range of frequency for IR is maximum as compared to microwave and minimum than visible light.

Procedure:

  1. click on STM 32 CUBE IDE, the following screen will appear image

  2. click on FILE, click on new stm 32 project image image

  3. select the target to be programmed as shown below and click on next

image

4.select the program name image

  1. corresponding ioc file will be generated automatically image

6.select the appropriate pins as gipo, in or out, USART or required options and configure image image

7.click on cntrl+S , automaticall C program will be generated image image 8. edit the program and as per required image

  1. use project and build all image

  2. once the project is bulild image

  3. click on debug option image

  4. connect the iot board to power supply and usb

  5. After connecting open the STM cube programmer image

  6. click on UART and click on connect image

  7. once it is connected , click on Erasing and programming option image

  8. flash the bin or hex file as shown below by switching the switch to flash mode

image

  1. check for execution of the output by switching the board to run mode

STM 32 CUBE PROGRAM :

Output :

Result :

Interfacing a digital Input (ir pair) with ARM microcontroller based IOT development is executed and the results are verified.

About