Postagens

Mostrando postagens de outubro, 2018
Imagem
LENDO ENTRADAS ANALÓGICAS  NO NINA B112  COM SEGGER STUDIO,  JAVASCRIPT,  M-BED,  ARDUINO, PYTHON e o NINA W102 com ARDUINO e ESP-IDF O objetivo deste BLOG é mostrar como ler entradas analógicas do NINA B112 e NINA W102 com diferentes linguagens de programação. Nos BLOGS anteriores foi visto como instalar o SEGGER STUDIO, JAVASCRIPT, M-BED,  ARDUINO E PYTHON para o NINA B112 bem como ARDUINO e PLATFORMIO para NINA W102. Foram utilizados os  EVK-NINA-B1 e  EVK-NINA-W1  para testes. NINA B112 1) CÓDIGO NO SEGGER STUDIO Dicas: no sdk_config.h, esta para 10 bits a resolução. Habilite tambe nrf_log_rtt. #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include "nrf.h" #include "nrf_drv_saadc.h" #include "nrf_drv_ppi.h" #include "nrf_drv_timer.h" #include "boards.h" #include "app_error.h" #include "nrf_delay.h" #include "app_util_plat