#Universal temperature sensor reader

430 messages · Page 1 of 1 (latest)

tawny olive
#

Application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more
List of supported sensors: https://github.com/quen0n/unitemp-flipperzero#list-of-supported-sensors-supplemented
Source code: https://github.com/quen0n/unitemp-flipperzero
Download here: https://cloud.quenon.ru/index.php/s/h98rT9UnaOL4wxR
Installation:

trim zephyr
#

DHT11 gang

strange ice
#

Love this app!

fallen hemlock
#

@craggy pendant

late quail
#

Where you able to read an analog value like you would in Arduino? Or did you use digital signals? @tawny olive

tawny olive
steady grotto
#

BME280 support. yet without voc readings

#

great app by the way. really like it

tawny olive
blazing beacon
#

Yo this is sick!!!! When I get one ima add this mod to it so I can get the humidity of my studio so my guitars don’t warp

tight brook
#

@tawny olive how do i have to connect the sensor?
(never worked with flipper's gpio, dont want to fry anything)
the code seems to be commented in russian..

i have a sensor that says KY-015 DHT11, looks similar to the one in your photo, but pinout looks like this

tawny olive
#

S to 10,
+V to 9,
GND to 11

In the application, select DHT11 and port 10

tight brook
#

thanks for the response, i'll try it
looks like it cant be plugged in directly

tawny olive
tight brook
#

16/17/18?

tawny olive
#

S - 16
+V - 17
GND - 18
In the application, select port 16

tight brook
#

:D
got it to work, thanks for your help
(and for writing the program)

tawny olive
steady grotto
#

oh, anything missing for the BME680?

tawny olive
marble silo
#

this looks cool

steady grotto
#

oh. i already did and have it running

tight brook
#

any plans on supporting other types of i2c sensors?
a general-purpose sensor readout app for the flipper would be very neat.

tawny olive
tight brook
#

maybe distance sensor (HC-SR04?)

steady grotto
tawny olive
tawny olive
tawny olive
tawny olive
#

Cold 🥶

tawny olive
#

Developing thermocouple support. Hot 🔥

desert hemlock
#

That's actually super fucking useful for my job. Datalogging would be icing on the cake.

tranquil oar
#

This is rad. The UI work is really sweet. I want to borrow it for my CO2 sensor app

desert hemlock
#

Where's the donate link? Dead serious.

tawny olive
tawny olive
desert hemlock
#

Respect. I'll buy you a drink should we ever meet.

tawny olive
#

Universal temperature sensor reader

slender coral
# steady grotto

Any clues why this doesn't work properly for me? On mine i2c address is 0x77. It shows the temperature properly but humidity is always showing 100%.
Also for me I had to connect the sda and scl wires in the reverse order. There is also a typo in the UI where it says pin 15 (c0) pin 16 (c1) but on flipper it's vice versa

#

I see another bug in the app. When you have more then one sensor connected to it and you try to switch between them next screen is always alternating between the actual results and waiting screen

tawny olive
tawny olive
slender coral
empty python
#

are ntc thermosensors supported as well? and on which Name/Category do i have to use to read them out?

tawny olive
tawny olive
#

New sensors have arrived.

  • MAX6675 with thermocouple
  • BME680 (temperature, humidity, pressure, air quality) - check and accept PR @steady grotto
  • AHT25 (temperature, humidity)

Wait for updates 🙂

desert hemlock
#

BME680 support?! You guys are amazing.

#

Time to throw a Flipper friendly thermocouple in my packout to go along with the 6675 too.

tawny olive
#

MAX6675 now available in dev version

tawny olive
rugged briar
#

Thank you clap

oblique hull
#

Thank you for the fantastic job!

#

random question, which one is probably more accurate?

tawny olive
deft kite
#

as someone who just got a Elegoo starter kit, I was delighted to see that I could just plug in the DHT11 and use this app

slender coral
tawny olive
slender coral
#

Yes, was there a problem with it? Or it was a dev version?

tawny olive
slender coral
tawny olive
slender coral
sinful minnow
#

quick question, what if I don´t have GPIO folder in SD card/apps?

tawny olive
sinful minnow
#

it works!! thx m8

keen sierra
#

Is there a reason you can't select pin 17, the 1-wire pin, when setting up a Dallas sensor? If I edit the config file directly it does seem to work on 17.

tawny olive
tawny olive
rancid crater
#

So i need some help with my DS18B20. i have it pluged in,changed the offset and changed the gpio to 17 but i cant save and also address shows empty when i scan.running latest dev version with 17 support

tawny olive
#

I see an LED on the board that can interfere with passive power. It is best to connect - to GND, the middle pin to 3V3, and S to any selected pin

rancid crater
#

Alright I'll have a look when i get a chance as im at work

tawny olive
#

So you have to connect using the usual three-wire circuit.

brave turret
#

I have an LM34DH just a simple 3 wire sensor by itself. Datasheet lists A - +Vs positive power supply pin. A - Vout Temperature Sensor Analog Output pin and A - GND ground pin.

#

Do we have analog support yet do you think it would work with another devices mode?

desert hemlock
#

Just these so far.

brave turret
#

I mean I read all of that but I don't know anything about temperature sensors. I guess I'll look them all up and see if any of them are Analog. There's only 8 just temperature sensors

tawny olive
brave turret
mystic ember
#

One question: does the code for the temperature sensor also work for the Mac?

mystic ember
desert hemlock
#

Use a microSD card reader. Move the FAP to your microSD card’s apps folder.

mystic ember
desert hemlock
thick anvil
woeful silo
#

I'm getting API version mismatch only. I am freshly updated, tried the release and dev channels, also built the whole firmware and uploaded it with fbt with no difference. I even formatted the SD card. What can be wrong?

woeful silo
plush heron
#

I just got a bme680 and I would like to try using it with my flipper. Can anyone help me with how I should wire it to the gpio pins?

plush heron
#

I think it’s supposed to go like this but the app is not detecting it

vernal sleet
#

at what pins do i connect the dht11

tawny olive
plush heron
#

i did

tawny olive
#

There is an I2C address in the sensor settings. Try to change it

plush heron
#

it just stays on waiting for i2c pins

#

i have tried changing that too

#

maybe the sensor is just broken

tawny olive
plush heron
#

i realized that too later and i still had the same issue

tawny olive
#

SDA - 15
SCL - 16
VCC - 9
GND - 11

#

Connect as shown above and try another sensor address again

plush heron
#

Still nothing, I have some new ones arriving soon anyway so I’ll see if maybe the sensor is just broken.

#

Nvm it just started working

#

Thank you for the help

dire iris
#

Does anyone know the pinout for this DHT22?

tawny olive
dire iris
#

Yup, thanks a lot buddy

mellow wolf
#

the app seems to not be compatible with 0.80.1 version 😦

#

I got a sensor, but I can't use it

tawny olive
civic heath
# tawny olive

Sorry, complete noob here: I’m supposed to connect VCC to pin 1 of the FZ, Data to pin 2 and ground to pin 8? I’m stuck on “waiting for module on pin 2”

tawny olive
vernal sleet
#

do this work and where do i connect them

desert hemlock
#

DHT22?

vernal sleet
#

dht11

#

@desert hemlock

desert hemlock
#

Good news, they work.,

vernal sleet
#

and i just connect the vcc=3v3 and data=swc

desert hemlock
#

Data can go to a few pins. I’m using A7 as my data pin for mine, but that can be configured in-app

#

Also they seem to be more accurate on 5v but check and see if yours can run on 3.3/5 or just 3.3

vernal sleet
#

ok thanks

quick crypt
#

the download link for .fap file is not working on github

quick crypt
#

Thanks

wary dove
#

After updating to the latest firmware (0.82.3), I'm getting "API version mismatch".
I have tried downloading and installing Unitemp again but the message persists

keen sierra
keen sierra
#

It's a quick fix, they changed the name of the ibutton pin to better align with the rest of the gpio pins, so it's gpio_ibutton instead of ibutton_gpio

Line 48 of Sensors.c

@wary dove you can download a version I forked and fixed here: <edited - official is updated> though feel free to wait for the official.

keen sierra
#

Speaking of the ibutton pin, it seems to be working for Dallas sensors now, they must have changed some other things in the backend, so it might be worth looking into and removing the pin 17 block of one wire.

wary dove
#

Thanks @keen sierra that worked! 🎉

tawny olive
#

iButton port issues have been fixed. You can download and install Unitemp without any problems using the github link

lethal idol
#

@tawny olive What is the best sensor for this project? I'm thinking of getting one

#

And whats the diff between the DHT 11 and DHT 22?

tawny olive
lethal idol
#

DHT22 is coming in mail today

lethal idol
#

So, the file is not being recognised. It is .fap

#

I get this

#

And this

keen sierra
tawny olive
keen sierra
# tawny olive What link did you download from?

Speaking of download links, I had issues with downloading originally because I was going to releases and the most recent release has a link to an old version. That's why I started using flipc. I only later noticed there is a link in the readme under install. Not sure if others would get confused by that or just me.

night bronze
#

The flipc link above worked. 🤷🏻‍♂️

tawny olive
#

👌

uncut iris
#

The GitHub repo shows a DHT22 being stuck directly into the Flipper (presumably in pins 9, 10, 11 and 12), but the pinout of the DHT22, afaik, does not match those pins. How does one achieve this?

#

Preferably without making a custom PCB, cuz KiCad is hard.

desert hemlock
#

If you’re using the am2302 without a board, you can clip pin 3 as that’s a NC pin.

uncut iris
#

Ah alright, thank you. And yes I am, had the same idea already, so I'll probably do that.

west blaze
#

@tawny olive (Sorry for ping) But I bought a DHT20 do I need a board for it to work with the flipper or can I just plug it straight in because when I try and plug it straight in it does not work. If I cant what other temp sensor is just plugin and play?

tawny olive
west blaze
quick crypt
# west blaze

the sensor needs to be connected to i2c pins like c1 and c0

#

sda to 15(c1) and scl to 16(c0)

#

@west blaze

west blaze
#

So does that mean I would have to get wiring to be able to connect it? Sorry I’m new to all of this stuff

quick crypt
#

yes

#

and make sure to set the correct pins in software

west blaze
#

Okay thanks

west blaze
# west blaze

While on the topic of all of this, is there any temp sensors that can just plug in like this pic? That’s what my original question was can it plug-in like this without wires or boards.

quick crypt
#

i have one myself

west blaze
tawny olive
#

Or DHT11. It is important that the pins are located like this: + (VCC), DATA, - (GND)

#

Or DHT22

west blaze
#

Okay, sounds good thanks for all your guys help.

uncut iris
#

The DHTs with a board don't really work if you got a case. The pins don't reach deep enough because of it.

#

This is not an issue with the DS18B20, though, since it doesn't have a board.

dense kestrel
#

@tawny olive This is an awesome app, great job!

I'm trying to make a video where I add a new temp sensor (to teach about I2C). Is it intentional that when unitemp_I2C_sensor_update calls initializer, it will still call updater if the initializer call failed?

unique iron
#

Here's my custom board. GPS & BME680 (temp,hum,pres) all in one board

tawny olive
#

I'd love to see your video 🙂

unique iron
#

Is there a way to get Unitemp to read the MOX sensor on the BME680 to show the "gas" function?

tawny olive
#

Maybe I'll add support in the distant future

dense kestrel
#

Next Saturday, I'll release the video where we add the sensor to Unitemp... (but here's a sneak peak). Once I release it, it will have a pinned comment with a link to your repo. https://youtu.be/VoIYVdFxFVk

pulsar lynx
#

What is the latest version? And on Which Pins do i have to Plug The sensor in

desert hemlock
#

Depends on the sensor and what pins you assigned in the config

hasty topaz
#

This thread seems useful for all indoor cultivation. Great work everyone!

ebon remnant
tawny olive
tawny olive
dense kestrel
# tawny olive Amazing! I accidentally saw a video in Flipper News and I was insanely pleased

What's Flipper News?

Like I said before, your app is awesome! It's great to not have to code a UI when adding temp sensor support. It makes teaching out the sensor easier as well. My video next Saturday gets into clock stretching (which requires about 15 ms timeout on reads -- I believe the current code times out after 10 ticks). It also covers when you don't add the microsecond delay after wakeup -- the temp max out at 129C!

I asked a question in the comments for my most recent video. GitHub CoPilot used formula for humidity of 100.0f * value / 65535.0 (but datasheet says 2^16, which would be 65536) But since value can only be 0-65535, maybe AI makes sense since you go from 0 to 100% humidity? Give this info, do you think the HDC1080.c should use 65535 or stay as 65536?

cold raven
#

I believe 65535 is the right answer there, but only in theory.

While 0xffff has 65536 discrete steps from 0 to MAX, you want a value of 0/X to end up as the minimum, and a value of MAX/X to be 1 in most cases when calculating a real value from some numerical output. 65535/65536 is close enough to 1 to be fine and you will likely have a couple of LSBs of compounded error anyway. So in practice, it doesn't really matter unless you are doing a lot of filtering, oversampling, and averaging to get as many LSBs of accuracy as possible.

cold raven
#

I pulled up the datasheet for hdc1080 because I'm bored waiting for a compile to finish. And, yeah, while the example shows 2^16, the minimum using 65536 would get you 0% RH, and the max would get you 99.998% RH. This would line up with 100% correctly if you use 65535 (see below), and since they quote the range from 0-100% and not 99.998%.

Also interestingly, the two LSBs of the value are always 0. So, the range you would get would actually be a max of 65532. Which breaks the rest of the math and you'd probably want to actually use 65532 as the divisor in order to get equal steps from 0 to 100%. More or less showing still that, it doesn't really matter.

old adder
#

how can i suggest a small change/option for the unitemp program ?

#

i would like a option in settings - > pressure units - add hPa same as kPa but multiplied by 10 !?

fair cairn
old adder
#

hmm,... never tried that before 🙂 ,but i'll take a look !

late wyvern
#

Hello I have DHT11 sensor but idk how I plug it on flipper, how u can fix it?

#

(ping for reponse please)

raven sandal
# late wyvern
  • must go into 3V3 (9), - into one of the GND (8, 11 or 18) and the third one (data) into A7 as it is the pin selected. Use dupont cables.
#
  • can also be called VCC, - can be called GND and Data can be called DOUT or SIG
late wyvern
#

Yeah I do that too but it doesn't work

raven sandal
#

Maybe you fried it by plugging it into wrong pins...

late wyvern
#

Fu

#

Alright

#

I try it on my arduino

raven sandal
#

Yeah you will know if it is damaged or not then. If not, maybe app restart would do the trick

late wyvern
#

Y

raven sandal
#

And be careful when plugging things into GPIO's... you could do severe damages to your components or even to the Flip itself by mistake...

late wyvern
#

Lmao @raven sandal

#

Data and vcc are reversed

#

Let's goo it's works!!!

#

25.5 false

#

Is not too hot in my home

raven sandal
#

Those are cheap sensors... not so reliable... did a test once with 3 plugged the same time with DHT monitor app.

desert hemlock
#

If the sensor is 5v capable, they’re way more accurate on 5v. Still have to calibrate them for ESPHome projects but good enough for my tastes.

raven sandal
#

Interesting. Will try with 5V to compare.

vestal kraken
#

F.Y.I. DS18B20: pins (-) 8 or 11 / (out) 10 / (+) 9; most of the times reads the same T of a MI HT sensor model LYWSDCGQ/01ZM or differs up to ±00.4ºC. Edit: app v.1.4

unique onyx
#

I've got an Adafruit BME280 that isn't being recognized in the app. The power LED is coming on, but it doesn't seem to be sending information to the flipper because the app just keeps saying "Waiting for module on I2C pins".

I've got the board's 3v0 connected to 9, GND connected to 11, SCK connected to 16 and SDI connected to 15. The default I2C address for this sensor is 0x77, and I've configured that in the setup.

As for troubleshooting, I've tried:

  1. Switching it to 0x76, just in case
  2. Connecting VIN to 9 instead of the 3v pin
  3. Connecting VIN to 1 and running it off the 5v power
  4. Connecting to 13 and 14 instead of 15 and 16
  5. Adding in a BMP280 instead

Is there a troubleshooting step I've missed or something else I can try?

desert hemlock
#

Tried sniffing the i2c bus to see if it’s there?

unique onyx
#

It didn't show up, and I was trying to use it with a different controller and it never worked properly. I think this one might be borked. I got a DHT11 and it's working fine.

dense kestrel
#

The wires in the side of the module are likely the I2C interface? If you are using SPI, then maybe need logic high on CS pin (since it doesn’t show a not line above the CS label? Or maybe it’s just missing the correct label, or pulled high with an internal pull-up.)

ashen scroll
#

excuse me I have a 1-Wire Digital Thermometer DS18B20 and I cant find the model in the app so if I have any help I will be grateful

ashen scroll
#

Nvm i figured it out

worthy bone
#

I have a DHT11, where do i plug it in?

#

i tried following what it says but nothing works, and yes i’m sure it’s a DHT11

#

I plugged it into pin 2 also and nothing happens

tawny olive
#

In application select DHT11 and 10 pin

worthy bone
tawny olive
worthy bone
desert hemlock
#

Quenon, looked at implementing an infrared thermometer like the MLX90614ESF? Cheap and have decent range for hobbyists. Speaks i2c.

tawny olive
desert hemlock
#

Oh it’s smbus. Got it. I’ll keep looking around for other alternatives to test.

worthy ocean
#

Yay! Thanks for the app (:

#

I mutilated this dht11 by soldering a piece of wire between the gnd pin (rightmost on the pic) and the unused pin (next to the gnd), and setup pin 10 as input

ocean bone
#

First project to get to grips with my FlipperZero, it works perfectly! love

earnest canopy
#

The spreadsheet on github seems to suggest the BME680 seems to be one of the most capable ones (more functionality), is this the right one? https://thepihut.com/products/fermion-bme680-environmental-sensor

The Pi Hut

The BME680 is a 4-in-1 multi-functional MEMS environmental sensor which integrates VOC (Volatile Organic Compounds) sensor, temperature sensor, humidity sensor and barometer. It is designed for air quality monitoring, and due to the MEMS technology, the BME680 has a small size and low power consumption. It can be widel

#

seems it also has a VOC sensor, which this app doesn't support (yet), but if I know some c/c++, should be doable to add support for it too, right?

#

would love to play with this, but kinda new to the hardware world other than knowing how to solder haha

#

Also see this one, but not sure if that's compatible (or even implementable in code) at all with the current state of the repo: https://thepihut.com/products/fermion-multi-function-environmental-module-ens160-bme280

The Pi Hut

Build up a simple environmental monitor station with this multi-function environment sensor from DFRobot! Based on the combination of the ENS160 and BME280 chips, this module features high accuracy, an I2C interface and fast measurement. The BME280 can provide temperature and humidity compensation for the ENS160 to imp

#

Also open to suggestions on what people think is a good sensor to play with. The more measurements it can take (even if some measurements aren't available until I (or someone else) make a code change on the repo to expand existing implementation), the better :)

visual kayak
#

Is it possible to add more settings for the output of readings when using multiple sensors?

earnest canopy
visual kayak
#

When using multiple sensors, the ability to display the desired readings on a common screen. For example, from one sensor only the temperature from the other only the humidity. And when enabled, the ability to install the start screen. I want more display settings.

fiery citrus
#

I'm hoping someone here can confirm I have the right pin layout before I solder. I'm using a sht30 (https://www.adafruit.com/product/5064), and I believe the pin layout is red 9, white 15, yellow 16, black 18. Is that right?

#

I tried testing it myself and it didn't work, but I believe that was just because I was using the wires without pins and not getting a proper connection on all of them.

wanton scroll
#

Hello, after updating to 0.95.0 the app does not appear in lab.flipper.net and cannot be updated and has stopped working. Some help?

river ruin
#

hi all, do I need to put a BME680 into force mode in order to be able to read the chip ID register? I can't seem to get the chip in a state where it talks to me.

river ruin
dim crow
#

My SHT35 just arrived, how do I connect it to flipper0? 😂

#

I actually connected (sensor: flipper):
VCC: 9 (3.3V)
GND: 11 (GND)
SDA: 15 (C1)
SCL: 16 (C0)

dim crow
#

don't look at the photo, I changed the pin pattern later

dim crow
#

@tawny olive can you help me about that?

fading cypress
#

@dim crow did you manage to connect it?
I'm looking for SHT36 as well since it's the most accurate among the whole list

dim crow
#

Hoping for a quenon feedback

fading cypress
dim crow
#

It is another flipper zero tool?

fading cypress
dim crow
fading cypress
#

btw, if it's I2c sensor, pull-up resistors might be needed

dim crow
#

On the chip is written "2.3-2.5V" but the specs says it works also with 3.3V, so maybe i will need to adjust the voltage with a resistor :,<

#

@fading cypress just tried the sensor with i2csensor and it works

fading cypress
fading cypress
dim crow
#

in the "scan" section it is found by the flipper

tawny olive
dim crow
#

in the sniff section I can send a signal to receive a response so I can try to send manually a gpio "request" and test if the response is a valid temperature or not

dim crow
#

red: vcc
black: gnd
orange: sda
brown: scl

dim crow
tawny olive
#

Is the sensor address 0x44 selected in the application?

dim crow
#

yessir

#

do you have an sht3x to test?

tawny olive
#

And it still doesn't work?

#

I’ll look now, I wrote the code for this sensor and everything worked for me

dim crow
tawny olive
dim crow
#

hmmm

dim crow
#

also cool case, where did you bought it?

dim crow
#

Thank you ❤️

tawny olive
#

I would recommend buying the BME280. It is accurate and can measure atmospheric pressure

dim crow
#

Oh okk, so there isn’t any way to make it works the sht35?

fading cypress
#

BME280 is precise ± 1 °C :c SHT35 is ± 0.1 °C

tawny olive
#

I once again compared the SHT30 and SHT35 datasheets. They have the same commands, so everything should work. You may not have SHT35

fading cypress
#

@dim crow Can you please send the link what you bought?

dim crow
#

After testing a couple of time with I2CTOOLS it is working also with unitemp 🤯

#

I don't know why, the wiring and the config are the exactly the same

dim crow
#

It doesn't work anymore- lol

#

Maybe is a unitemp bug

hybrid nacelle
#

Hi! Please help me understand the version designations - I'm confused (where to look for the latest one)
Over official Unitemp site on Github i can see v1.2, over "lab.flipper" i can see v1.3, and i found one that is v1.4 - where i notice a conversion error from "mm H" to "hPa" - where to look?

hybrid nacelle
tawny olive
cinder rose
#

do you have to have any of the dev boards to install this or can anyone with a flipper do sp?

desert hemlock
#

It's not even a board project if you don't want it to be.

frigid musk
desert hemlock
#

Max31855 makes a good grill temp sensor with the correct thermocouple. Thermoworks sells a bunch of probes you can use with it for actually stabbing food or stabbing food in a grill.

fiery citrus
tawny olive
fiery citrus
hasty bridge
#

Ouch...the api will updated. And app doesnt work. Someone to fix it?

tawny olive
hasty bridge
tawny olive
#

Ok

hybrid nacelle
tawny olive
fiery citrus
gentle steppe
#

After updating to fw 0.98.2, Unitemp no longer shows up in the app listings. Has it not been updated?

tawny olive
tranquil sapphire
#

thanks to the author for this great app, I use it a lot. I've added various leds that turn on depending on the temperature displayed 🙂

gentle steppe
tawny olive
#

The application has been fixed, we are waiting for an update in the catalog

elfin mantle
hybrid nacelle
dense kestrel
#

@tawny olive Are you planning on doing anything to support the temp sensor that is part of the Video Game Module? I'm thinking of trying to use the internal temp sensor as a tutorial, but if you already figured it out -- I'd probably just walk thru your code. 🙂

https://github.com/flipperdevices/video-game-module/tree/main/lib lib\pico_sdk\src\rp2_common\hardware_adc\include\hardware\adc.h says:

 * The RP2040 has an internal analogue-digital converter (ADC) with the following features:
 * - SAR ADC
 * - 500 kS/s (Using an independent 48MHz clock)
 * - 12 bit (8.7 ENOB)
 * - 5 input mux:
 *  - 4 inputs that are available on package pins shared with GPIO[29:26]
 *  - 1 input is dedicated to the internal temperature sensor   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
tawny olive
#

Yes, I plan to as soon as I get it in my hands

nimble pecan
#

W

next token
#

@tawny olive I'm looking to read co2 / pm2 sensors from the flipper, and maybe add a favourites page so I can have my favourite sensors display on the home page.

Also ideally allow one sensor to increase the accuracy of others, eg a pressure sensor would be able to feed into the pm2 sensor / etc.

Is that the type of thing you'd be interested in accepting as a PR in the future or is it way out of scope?

Would be building on this PR initially https://github.com/quen0n/unitemp-flipperzero/pull/16

lavish cradle
#

Hi I have a Dallas DS18B20 sensor connected to pins 8,9,10 and it isn't working do I need to change the pins or do I need a resistor?

next token
#

They label the pins there, 1 being ground, 2 (the middle) being data, and the third being power.

lavish cradle
#

It's labeled S,V,G i am assuming G is ground V is power and S is data

next token
#

Can you link to where you got your sensor?

lavish cradle
#
ELECFREAKS

This brick uses the DS18B20 1-Wire digital temperature sensor from Maxim IC. It can report degrees C with 9 to 12-bit precision, -55C to 125C (+/-0.5C). Each sensor has a unique 64-Bit Serial number etched into it that can allow for a huge number of sensors to be used on one data bus. The Freaduino Sensor Shield is the

#

this is the closest variant i could find online however i checked continuty with a voltimeter and data and voltage have been reversed on the end pins

next token
# lavish cradle

ahh ok so in the first photo here the top pin on the connector connects to the middle pin on the sensor? That's super confusing but makes sense, I was trying to see if that's what the traces did but they're really hard to see with that white solder mask covering the whole board.

#

Probably a good idea to try out that resistor 😆

lavish cradle
#

yeah thats what i was thinking. but thank you for your help anyways!

lavish python
#

is there Fahrenheit available? or is it just celsius.

#

my camera is a potato but thought id share

next token
gentle steppe
#

Unitemp is incompatible with the latest firmware, released May 28. I feel like I complain about this specific problem every update, so is there anything I can do to help the process?

dense kestrel
dense kestrel
tawny olive
#

Accepted and updated. Thank you. The update has already been sent to the catalog. stay tuned

tawny olive
nocturne hedge
#

Got my DHT22 to work. Default pin was not 2. In face, do not recommend jamming anything into the 5V (ow). (pin set to 10 and all was fine)

clear shadow
#

Trying to get my Si7021 to work, am a bit of newbie and thanks for all the documentation here.

I have it all connected up, but "waiting for module"

Any advice on how to troubleshoot? Can I use a digital multimeter to see if there is any signal coming out of the SCL and SDA ports on the Si7021? I'm trying to understand if it's a hardware problem with my sensor, or if the sensor is working but somethings up with the ports the signal is coming into the flipper, or something i need to change in the program? I didn't make any changes to what I downloaded from here (https://lab.flipper.net/apps/unitemp)

#

I have connected
ON THE Si7021 to FLIPPER

Vin to 3V3
GND to 11 (GND)
SCL to 16 (C0)
SDA to 15 (C1)

forest sapphire
#

Is there any possibility of using an LM35 sensor?

next token
#

@tawny olive after a bunch of time debugging with a sensor that uses the load16_be / load16_le functions I found they seemed to have at some point been reversed?

I think it's a problem with the endianness.h code, sort of. Specifically

    #if BIG_ENDIAN == BYTE_ORDER
    FURI_LOG_I(APP_NAME, "Big Endian");
    #endif
    #if LITTLE_ENDIAN == BYTE_ORDER
    FURI_LOG_I(APP_NAME, "Little Endian");
    #endif

I got

10017542 [I][Unitemp] Big Endian
10017544 [I][Unitemp] Little Endian
In the logs 😨

#

I'm running a fork, and compiling myself. So this could 100% be something I somehow broke... No idea. But if you do encounter sensors that used to work not working that may be why.

Ahh, it's code on a PR anyway I was running. Ignore me.

jade cosmos
trim zephyr
# jade cosmos where do i get

I got mine from one of those introduction Arduino kits. You can get them by themselves on aliexpress for relatively cheap as well.

There's a lot of different sensors you can get, but the one I've got is a DHT11

wooden valve
#

i'm trying the app, but it stuck on "no sensor found" press OK. nothing work, I can just reset the flipper. last release and last firmware. any idea?

wooden valve
#

in debug i see [W] [Unitemp] Missing sensors file

grand cedar
#

Same here.

white marsh
#

Tested and working on this https://www.youtube.com/watch?v=Jic9GVFarsc DHT11 sensor with LED

Measure temp and humidity on your flipper zero

use with unittemp flipper app - and in setup, you need to select the right "device" and also the right gpio pin

make sure to read the schematics on your dht11 and flipper zero gpio pins... not every dht11 sensor is exactly alike

led is to indicate if there is power going to it or not

I used pi...

▶ Play video
white marsh
ancient axle
burnt scroll
#

Hi, another one with the same problem. Is it something about the latest firmware?

white marsh
#

Try UNITEMP, it's in Apps -> GPIO -> Sensors

white marsh
tame stump
#

How do I fix it? The flipper gets stuck when launching the unitemp app on latest firmware

next token
#

If you desperately need to get it working for something, let me know though and maybe I can walk you through building from a branch or something idk.

tame stump
next token
#

uhh, I'll have to push up the changes I have to a branch, you'd have to clone it and build it with ufbt IIRC?

#

And ideally be able to read through my changes to make sure they're not malicious / etc. Since you shouldn't run code from people you don't trust without understanding it.

noble sage
#

Will an update to the app be posted here or should i just keep an eye on my zero?

dense kestrel
#

@next token Do you have a branch that you can submit? If not, I was probably going to look into make the fixes.

next token
next token
#
    view_dispatcher_run(app->view_dispatcher);
#

I guess now apps instead of having a main loop are supposed to use a view_dispatcher thing. Which I had in the past switched this to using... but even though on the timer I call the app's _draw_call method it's not re-rendering out to the actual screen.

next token
dense kestrel
# next token I guess now apps instead of having a main loop are supposed to use a view_dispat...

Cool, hopefully I'll take a look later this week.

One way to force refresh, not recommended is...

    Gui* gui = furi_record_open(RECORD_GUI);
    gui_direct_draw_acquire(gui);
    gui_direct_draw_release(gui);

a better way is...

  with_view_model(
    app->my_view,
    MyModel* model,
    { UNUSED(model); },
    true);

or better yet, using the with_view_model and instead of UNUSED(model); actually making changes to any data used in rendering.

next token
#

The force refresh does make the UI super flickery, but it does work.

#

Regrettably I don't know enough to refactor things to use the view models the way they're intended.

dense kestrel
#

yeah, it's only recommended to use it when the information has actually changed as it does a blanking of the screen.

dusk halo
#

Hi guys I would like to do the app build without using the app available to test some changes how do I do it ?

#

I would report these bug

dusk halo
#

i have some good news

#

today i recopile the app for the new firmware and now works in the next days I'm trying to connect the sensors

arctic geode
#

Is there a fix for the freezing problem of this app?

timber iron
#

Is this ever going to be updated to the latest firmware version? If not, it should be removed from the official flipper apps list.

dense kestrel
#
py -m pip install --upgrade ufbt

git clone https://github.com/quen0n/unitemp-flipperzero

cd unitemp-flipperzero

ufbt launch
dense kestrel
#

Here is the FAP for firmware v1.3.4 (the above directions won't work for latest firmware due to another code fix that is required. You can use gh pr checkout 55 after the cd command but it requires you have cli.github.com installed.)

fiery citrus
#

I'm having issues getting my SHT30 to work with this app. I can see it with the i2c tools app, but in unitemp I can't get past "waiting for module on I2C pins". I noticed that the app says to put the SDA in 15 (c0) but 15 is c1, and also says to put the SCL in 16 (c1), but 16 is c0. I tried both and neither seem to work. other than that I am putting the VCC in 9 (3v3) and ground in 11 (gnd)

fiery citrus
#

I still havent made any progress on this, debating buying a different sensor at this point. Is anyone currently using this app? If so what sensor are you using?

next token
#

Fork kinda diverged from the main repo potentially.

But has some fixes I don't think are in there, for example a bunch of memory leaks.

spring hatch
#

Hey, i wanted to try out this app but it is outdated. How can i use it on latest firmware though?

next token
brisk elbow
#

I don't suppose it would be possible to upload the fap file already compiled for the fork would it? Having trouble on my setup running UFBT
would love to have this working for my DHT11

tawny olive
tawny olive
sullen bolt
tawny olive
sullen bolt
tawny olive
#

Hello everyone!
I'm finishing up Unitemp 2.0. I need your help. Please test the app thoroughly and let me know your impressions, bugs, or suggestions for improvement. I'd be grateful!
https://github.com/quen0n/unitemp-flipperzero/tree/dev
There's a huge list of changes in CHANGELOG.md, I recommend checking it out.
Installation instructions are in the README

GitHub

Flipper Zero application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more - quen0n/unitemp-flipperzero

next token
#

I've been using this with SPS30 & SCD30 for a while.

tawny olive
tawny olive