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…
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…
Sonoff is cool little smart switch for not only home automation but for makers and hackers also, why? It’s based on ESP8266 plus it has tx/rx pins accessible and the hardware is well documented (schematics at the end of the post).
Now concerning the Sonoff original software I got it working after around 15 minutes of messing around. For some reason the app also needed my location information, sound recording, access to SD card and so on ….. so yeah not fishy at all. After successful pairing of the switch with app everything worked fine (around 5 minutes) until the app recommended the firmware update….. aaaand its broken. After the update the device was basically just push switch. After the update no matter what I did I could not reconnect the switch to the app.
Luckily I bought it to hack it. So here we go ….
Some time ago I bought chinese version of Saleae Logic Analyzer. It’s quite handy 8 CH analyzer for debugging my DIY projects.
Because I mainly use Linux this is small write up (mainly for myself) how to install Sigrok software for Saleae Logic Analyzer.
For now you can still use software provided by Saleae from their homepage (https://www.saleae.com/), but it soon may not work with clones.
Story of Saleae is quite common. Guys developed good product, wrote the software and chinese manufacturers copied it for the 1/10 of the price. Now of course if you like the product and this is a good product, support the developers. But here’s the thing, original product cost 108 USD and for many hobbyists this is not affordable. Especially if you use it maybe once every couple of months.
But I digress …