Fernan
06/01/2025, 7:09 PMfloitsch
06/02/2025, 4:47 PMFernan
06/02/2025, 4:50 PMfloitsch
06/02/2025, 4:51 PMfloitsch
06/02/2025, 4:51 PMFernan
06/02/2025, 4:52 PMfloitsch
06/02/2025, 4:52 PMfloitsch
06/02/2025, 4:52 PMfloitsch
06/02/2025, 4:52 PMfloitsch
06/02/2025, 4:53 PMfloitsch
06/02/2025, 4:53 PMFernan
06/02/2025, 4:53 PMfloitsch
06/02/2025, 4:53 PMfloitsch
06/02/2025, 4:53 PMFernan
06/02/2025, 4:55 PMfloitsch
06/02/2025, 4:56 PMfloitsch
06/02/2025, 4:56 PMkaxori
06/02/2025, 5:18 PMfloitsch
06/02/2025, 5:19 PMfloitsch
06/02/2025, 5:19 PMkaxori
06/02/2025, 5:23 PMfloitsch
06/02/2025, 5:24 PMfloitsch
06/02/2025, 5:24 PMfloitsch
06/02/2025, 5:25 PMfloitsch
06/02/2025, 5:25 PMkaxori
06/02/2025, 5:25 PMfloitsch
06/02/2025, 5:26 PMfloitsch
06/02/2025, 5:26 PMfloitsch
06/02/2025, 5:26 PMfloitsch
06/02/2025, 5:27 PMfloitsch
06/02/2025, 5:27 PMkaxori
06/02/2025, 5:27 PMkaxori
06/02/2025, 5:38 PMfloitsch
06/02/2025, 5:39 PMkaxori
06/02/2025, 5:39 PMfloitsch
06/02/2025, 5:40 PMFernan
06/02/2025, 6:25 PMfloitsch
06/02/2025, 6:27 PMfloitsch
06/03/2025, 8:33 AMFernan
06/03/2025, 2:12 PMFernan
06/03/2025, 2:16 PMjag, device has version
******************************************************************************
EXCEPTION error.
insufficient signals from DHT
0: Driver.read-data-no-catch_ \driver_.toit:129:7
1: Driver.read-data_.... \driver_.toit:93:20
2: Driver.read-data_... \driver_.toit:91:32
3: Task_.with-deadline_. \core\task.toit:223:16
4: Task_.with-deadline_ \core\task.toit:217:3
5: with-timeout \core\utils.toit:189:24
6: with-timeout \core\utils.toit:181:10
7: Driver.read-data_.. \driver_.toit:91:9
8: catch. \core\exceptions.toit:124:10
9: catch \core\exceptions.toit:122:1
10: catch \core\exceptions.toit:73:10
11: Driver.read-data_. \driver_.toit:90:7
12: SmallInteger_.repeat \core\numbers.toit:1288:3
13: Driver.read-data_ \driver_.toit:89:14
14: Driver.read \driver_.toit:59:13
15: main. temp_ibi_t1.toit:23:20
16: Duration.of \core\time.toit:221:10
17: Duration.periodic \core\time.toit:276:19
18: main temp_ibi_t1.toit:20:20
******************************************************************************kaxori
06/03/2025, 2:17 PMFernan
06/03/2025, 2:32 PMkaxori
06/03/2025, 2:33 PMfloitsch
06/03/2025, 2:55 PMFernan
06/03/2025, 2:57 PMFernan
06/03/2025, 3:10 PMfloitsch
06/03/2025, 3:16 PMfloitsch
06/03/2025, 3:17 PMfloitsch
06/03/2025, 3:17 PMkaxori
06/03/2025, 3:25 PMkaxori
06/03/2025, 3:26 PMFernan
06/03/2025, 3:28 PMkaxori
06/03/2025, 3:31 PMfloitsch
06/03/2025, 3:31 PMfloitsch
06/03/2025, 3:31 PMFernan
06/03/2025, 4:02 PMfloitsch
06/03/2025, 4:03 PMfloitsch
06/03/2025, 4:03 PMFernan
06/03/2025, 4:07 PMfloitsch
06/03/2025, 4:09 PMfloitsch
06/03/2025, 4:10 PMjag toit ...floitsch
06/03/2025, 4:10 PMFernan
06/03/2025, 4:24 PMfloitsch
06/03/2025, 4:25 PMfloitsch
06/03/2025, 4:25 PMfloitsch
06/03/2025, 4:25 PMtoit itself is written in Toit.floitsch
06/03/2025, 4:26 PMtoit foo.toit, or compile them to executables: toit -o foo.exe foo.toit.floitsch
06/03/2025, 4:27 PMhost, and/or cli.Fernan
06/03/2025, 4:31 PMfloitsch
06/03/2025, 4:32 PMfloitsch
06/03/2025, 4:32 PMFernan
06/03/2025, 4:33 PMfloitsch
06/03/2025, 4:33 PMFernan
06/03/2025, 4:35 PMFernan
06/03/2025, 4:38 PMfloitsch
06/03/2025, 5:20 PMFernan
06/03/2025, 6:29 PMfloitsch
06/03/2025, 6:29 PMfloitsch
06/03/2025, 6:30 PMFernan
06/03/2025, 6:32 PMfloitsch
06/03/2025, 6:34 PMFernan
06/03/2025, 6:39 PMfloitsch
06/03/2025, 6:41 PMfloitsch
06/03/2025, 6:42 PMFernan
06/03/2025, 6:42 PMfloitsch
06/03/2025, 6:46 PMfloitsch
06/03/2025, 6:47 PMfloitsch
06/04/2025, 9:00 AMkaxori
06/04/2025, 9:12 AMfloitsch
06/04/2025, 9:12 AMfloitsch
06/04/2025, 9:13 AMfloitsch
06/04/2025, 9:13 AMfloitsch
06/04/2025, 9:14 AMfloitsch
06/04/2025, 9:14 AMkaxori
06/04/2025, 9:15 AMfloitsch
06/04/2025, 12:37 PMkaxori
06/04/2025, 1:33 PMfloitsch
06/04/2025, 1:36 PMfloitsch
06/04/2025, 1:53 PMkaxori
06/04/2025, 1:54 PMfloitsch
06/04/2025, 2:01 PMfloitsch
06/04/2025, 2:01 PMfloitsch
06/04/2025, 2:06 PMsleep --ms=1000 after creating the driver object.
@Fernan could you try to do the same and see if that works for you?
Independently: In theory the driver needs to be powered up by at least 1s before we are allowed to interact with it. The driver assumes that the instantiation time is when the sensor is powered on, and is supposed to wait if the second wasn't elapsed yet. However, due to an inverted '<', that never triggered. I think I will remove that code, since the sensor is most of the time powered up independently of the esp32.
I will add a warning somewhere, though.kaxori
06/04/2025, 3:02 PMimport dhtxx
import gpio
GPIO-PIN-NUM ::= 20
main:
pin := gpio.Pin GPIO-PIN-NUM
driver := dhtxx.Dht22 pin
count := 0
while true:
++count
e := catch :
print "$(count): "+ driver.read.stringify
if e:
print "$(count): "
sleep --ms=250Fernan
06/04/2025, 3:20 PMfloitsch
06/04/2025, 3:39 PMfloitsch
06/04/2025, 4:14 PMfloitsch
06/04/2025, 4:36 PMfloitsch
06/04/2025, 4:56 PMkaxori
06/04/2025, 5:01 PMFernan
06/04/2025, 5:08 PMfloitsch
06/04/2025, 5:09 PMfloitsch
06/05/2025, 7:11 AMfloitsch
06/05/2025, 7:12 AM