Closed gegedvd closed 10 months ago
PlatformIO Project Configuration File
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:m5stack-atom]
platform = espressif32
board = m5stack-atom
framework = arduino
upload_protocol = esptool
upload_port = COM8
monitor_speed = 115200
lib_deps =
SPI
Wire
adafruit/Adafruit MLX90614 Library
adafruit/Adafruit BMP3XX Library
OneWire
DallasTemperature
orgua/OneWireHub@^3.0.0
I checked issue #102 VALUE_IPL and I didn't have 1ms on the debug pin , I adjusted the VALUE_IPL
value from 51
to 71
to get 996µs
and now the OneWireSlave works fine
@GeorgeIoak : can you explain different value of VALUE_IPL
on ESP32 chip @240Mhz
Thanks a Lot
Hi @gegedvd I'm not able to explain why we are getting different values to work. What I did to determine the value was in this post https://github.com/orgua/OneWireHub/issues/102#issuecomment-1500990889
What did you measure in order to find that you had to increase from 51
to 71
? You mentioned that you didn't have 1ms but what value did you have? Maybe this value isn't always the same and my value was at 1 end of the range and now your value is at the other end of the acceptable range. I just ran a few tests adjusting VALUE_IPL
until I was close to 1ms and the code was working but I didn't spend time trying to find the window of acceptable values.
Hello , thank you for our reply I have check with oscilloscope on debug pin with master 1w disconnect during measure IPL:51 => Debug:1.38ms not run IPL:55 => Debug:1.27ms not run IPL:61 => Debug:1.13ms run flirckly ... IPL:70 => Debug:1.01ms run (diff 10µs) IPL:71 => Debug:0.996ms run (diff 4µs better)
I run on Stack-M5 Atom-U USB-A STICK
@GeorgeIoak do not hesitate to submit me a test on this platform
Hello , my software get sensor info by type on Serial to return A = Get MLX90614 Ambiant B = Get MLX90614 Ir Temp C = Get BMP388 Temp D = Get BMP388 Pressure E = Get DS18B20 Temp S20/S50/S25 = Set Temp Of simulated DS18B20 R = RESTART
i have compiling error in arduino and platformio
I fixed this error in arduino.h
i have replace this
by this (see in other issue)
once corrected there is no more compilation error but OneWireSlave does not work my code user thanks a lot for our help