7d53186fc7
I think it's working!
...
I could try round the float...
2023-10-31 22:53:36 +00:00
a62732a1b5
Think I found the bug
...
Some kind of integer issue with dividing or something
2023-10-31 22:40:17 +00:00
6ed826ed7a
There's a bug with the rolling average
...
Not quite sure where though
2023-10-31 22:12:51 +00:00
0bbae8a254
I think this could be because I'm printing a u16 when it should be i16
2023-10-31 21:46:36 +00:00
7b29ea24db
Cleanedup code and added some logging
...
I think the averaging is working - will need to check the 10 minutes
2023-10-31 21:24:21 +00:00
6a3e39342e
I think just being completely flexible about the setup timings just works
...
I wonder if I put too much trust into the datasheet? I don't know
2023-10-31 21:13:49 +00:00
36041e63d2
The reading doesn't work with WiFi enabled
...
Just get timing errors
2023-10-31 21:00:44 +00:00
03b4bc7e5a
More cleanup and seems to be working
2023-10-31 20:42:29 +00:00
45d7001bb0
Working! and cleanup collapsed
...
got better results that passed checksum. NO idea why - I guess just being less
"strict" on what the high / low period was
2023-10-31 20:30:53 +00:00
822b73597e
Looked into another DHT22 library for inspiration
...
Still not working and I really can't tell why
2023-10-30 23:37:36 +00:00
69a7732017
Can't believe I fucked the for loop like that
...
Well I can believe it
2023-10-30 22:58:28 +00:00
e139aa7e9c
Every 4th byte comes back with zero time elapsed high.
...
Really don't know why
2023-10-30 22:13:16 +00:00
089d8a62f1
I get a timing error on every 4th bit
...
No idea why
2023-10-30 22:13:02 +00:00
6b40f97ba5
DHT22 is not working how I want it to
...
Need to keep debugging it... think of a different way to approach it maybe
2023-10-30 21:11:24 +00:00
556e0786da
Only get and convert time when using it
2023-10-28 17:33:49 +01:00
5c6a89df87
Ran clang-format
2023-10-28 17:28:13 +01:00
ebd2909d15
10 minute average complete
...
Need to actually test it. I'm never confident with programming
and definitely not when writing C
2023-10-28 17:25:08 +01:00
ac1fcbc5a5
I think this is the correct way to implement a rolling average
...
I can probably the time conversion part into the "saving" section when
that's done
2023-10-28 17:17:50 +01:00
bbfc55a066
Added SNTP and start of data logging
2023-10-28 13:40:19 +01:00
cf9a549cf2
Added Wifi
...
Seems to be working.
It's 90% the same code as the examples
2023-10-28 00:58:33 +01:00
e8c1dc0647
Added a random error checking function
...
Not actually sure I'll use it?
2023-10-25 22:11:04 +01:00
ce0de58466
Fleshing out some more parts
2023-10-25 21:43:47 +01:00
916e551d39
I think I've got something working
...
I can't believe it was that random stack size
I think at least... could be anything to be honest
2023-10-25 20:54:30 +01:00
a8c18feb81
I can't get this task stuff working
...
Going to try simplify it by not using group bits
2023-10-25 20:19:33 +01:00
6354e937fb
Task management still not working
...
The DHT task (or whatever is called later) isn't actually re-entering (I think
that's the right term?)
2023-10-25 20:09:03 +01:00
90e4837851
Different stack trace now...
2023-10-25 19:55:54 +01:00
ae598ea5b9
Issues with stack traces when 3 tasks running
...
I think it could be with ISR... maybe? I'm not 100% what an interrupt
actually realy is
2023-10-25 19:50:10 +01:00
bef67215cb
Created some tasks
2023-10-25 19:18:26 +01:00
5efca6b3c0
Figured out how to turn on PSRAM
...
Now it looks like you can just allocate from a regular "malloc"
Code ran successfully (afaict) when writing to 7MB - didn't seem
to when doing 8MB. Not 100% sure why, but I don't think it'll
matter tbh
2023-10-24 22:07:59 +01:00
d8c6ef5c8b
Already found some bugs
...
Wish I could be writing this in rust
2023-10-23 22:36:19 +01:00
6b9ec20b72
Started some DHT22 stuff
...
Haven't tested it at all
2023-10-23 22:34:21 +01:00
c91a8fc729
Got the KConfig stuff to work
...
I didn't quite realise I needed to #include sdkconfig.h
I thought they were injected as -D flags for ... no reason really
2023-10-23 21:41:32 +01:00
92949ea84d
Trying to get Kconfig to work
...
There's something wrong with the importing part I think
2023-10-23 21:30:38 +01:00
b48adeb547
Initial Commit
2023-10-23 20:35:50 +01:00