Here are couple of quick ways to set up temperature sensing with ESP32 using DS18B20 temperature sensors. Why DS18B20 you may ask. Well here is why:
- Measures Temperatures from -55°C to +125°C (-67°F to +257°F)
- ±0.5°C Accuracy from -10°C to +85°C
- Programmable Resolution from 9 Bits to 12 Bits
- Unique 1-Wire® Interface Requires Only One Port Pin for Communication
So its accurate sensor with nice range. Plus its it doesn’t need analog pins because it uses 1-wire digital interface.
So lets get started…
Every cool project needs display. So today we going to look how to set up 2.4 TFT LCD display on arduino. Full sketch and library downloads included.
Super simple Arduino TFT SD Card reader tutorial plus alternative to Arduinos default library…
ADXL345 will give your projects ability to sense the static acceleration of gravity in tilt-sensing applications plus dynamic acceleration resulting from motion or shock. High resolution of 4mg/LSB gives ability yo measure inclination changes less than 1.0 degrees. Lets look the main Features:
Arduino has ADC ( Analog digital converter) and PWM (Pulse with modulation) but if you need true Analog out, you are out of luck. But all is not lost. We can add the analog capability to Arduino with MCP4725 12-Bit Digital to Analog converter. This nifty chip has also on board EEPROM so you can save your last value in case of power failure. This chip has also 3.4Mbps Fast Mode I2C (Unfortunately Arduino does not support that speed), with Arduino you can update the output at around 200KHz. So lets jump in…
Most of the currently available solutions for sending a simple email with arduino are bit complicated for my taste. Like knowing your SMTP server ip and the converting your password and username to bas64 like whaaat no way, ain’t nobody got time for that.
So here is a solution, BUT there are couple of small BUT-s you have to have access to some kind of web hosting solution. (There are plenty of free hosting solutions out there, like googling + registration = 3 min. I tested 😉 ). And the hosting solution has to have smtp enabled on php or supported (I didn’t find any that didn’t work). And I will show you how to check that.
We will use: Arduino Uno and WizNet W5100 ethernet shield.
In this part of the tutorial we will look closer the esp8266 sketch that will send the temperature info to our server.
In this small series I will show you how to use Arduino IDE with ESP8266 and log your temperature data to the MySql server trough Node Red. And for data transmission we will use MQTT.