TOP Contributors

  1. MIKROE (2760 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139223 times)
  2. FAT32 Library (71732 times)
  3. Network Ethernet Library (57114 times)
  4. USB Device Library (47426 times)
  5. Network WiFi Library (43051 times)
  6. FT800 Library (42401 times)
  7. GSM click (29832 times)
  8. mikroSDK (28038 times)
  9. PID Library (26881 times)
  10. microSD click (26196 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

PIC16 esp8266 Adafruit IO -publish sensor data via MQTT

Rating:

0

Author: Farrukh Hussain

Last Updated: 2020-01-16

Package Version: 1.0.0.0

Category: WiFi

Downloaded: 595 times

Not followed.

License: MIT license  

In this example, I demonstrated ESP8266 interfacing, how you can easily interface ESP8266 without AT commands, first i show interfacing with Arduino and then interfacing with a PIC microcontroller, PIC16 programmed in mikroC, there is nothing chip specific, so you are free to use any mikroC compiler and any supported microcontroller.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "PIC16 esp8266 Adafruit IO -publish sensor data via MQTT" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "PIC16 esp8266 Adafruit IO -publish sensor data via MQTT" changes.

Do you want to report abuse regarding "PIC16 esp8266 Adafruit IO -publish sensor data via MQTT".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

PIC16 code written in mikroC Pro For PIC, there is nothing chip specific, so you are free to use any microcontroller supported by mikroC compiler and also there is nothing specific to mikroC Pro for PIC, you are free to use any mikroC compiler. 

I've demonstrated how you can do advance things are not not possible with AT commands, so you can program esp8266 separately and use JSON to communicate between ESP8266 and external microcontroller, JSON isn't must, but is a standard, you are free to define your own protocol.

PIC send send data and digital input state to ESP8266 via UART, ESP8266 then publish this data to Adafruit MQTT broker. 

Project demonstration

In this video, there is explanation for both both Arduino UNO and PIC interfacing, also I've tested with both ESP-01 and nodemcu.

Watch on YouTube

ALSO FROM THIS AUTHOR

mikroC ESP8266 NTP Clock

1

In this project, I connected PIC18F452 to an ESP8266 via UART, programmed ESP8266 separately via Arduino and PIC is programmmed via mikroC Pro for PIC, you can select any PICxx microcontroller, or even AVR or something else, whatever MCU is supported by mikroC, if microcontroller support UART, it should be good to go.

[Learn More]