• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

raspberry pi

Q&A Forum › Category: Raspberry Pi › raspberry pi
0 Vote Up Vote Down
vskiprotich asked 6 years ago

Can I do this project with the Raspberry pi alone without the ESP? 

5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello, the Raspberry Pi is required to establish the MQTT connection between your devices, because it runs Mosquitto MQTT broker.

Yes, you can also use a free CloudMQTT broker as I show in this thread: https://rntlab.com/question/using-cloudmqtt/

CloudMQTT is free for a couple of devices, after that it’s a paid service that’s I prefer to run my own MQTT Broker.

0 Vote Up Vote Down
vskiprotich answered 6 years ago

I meant can I use the sensors directly on the raspberry pi without the ESP8266-12E? I have the raspberry pi but I dont have the ESP8266-12E or Node MCU. Is it possible to proceed with the Raspberry pi receiving sensor values and publishing them to clients? 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Oh I’m sorry, I’ve misunderstood your question (often people want to eliminate the Raspberry Pi in that project). Yes, Node-RED has support for a lot of sensors, so you can read them directly with the Raspberry Pi.

  • Which sensors do you want to use?
  • Which clients are you going to publish to?
0 Vote Up Vote Down
vskiprotich answered 6 years ago

I will be using the same sensors in the project ie the MQ2 gas sensor and the motion sensor as per the project.
I’ll be publishing the data to the web clients.
Also is ESP 32 viable as ESP8266 replacement?

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

You can read those sensors directly with the Raspberry Pi. However, the Raspberry Pi doesn’t support analog reading, so you need to use an ADC to read analog values.
Yes, the ESP32 is the best choice for that application (I recommend it over the ESP8266).

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.