[ESP-WROOM-32]Mainly, How to communicate with I2C sensor requiring higher current than GPIO can flow.
Posted: Wed Feb 06, 2019 7:14 am
Hi.
I am a beginner about embeded system.
I use ESPr developper 32 development board of ESP-WROOM-32.
The development framework is ESP - IDF (v3.1.2).
I would like to connect this board to the SCD 30 (sensirion) sensor via I2C, and send sensor data to AWSIoT.
Please ask you some questions about following topics.
● Electrical characteristics
As shown in fig 1(source: https://media.digikey.com/pdf/Data%20Sh ... eet_D1.pdf), this sensor requires up to 75 mA.
However, As shown in fig 2(source: https://www.espressif.com/sites/default ... eet_en.pdf), I read that the source current can only flow up to 40 mA from the GPIO pin.
Question:
· Did I get that right?? If so, what can I do so that I make sure that there is no problem from the hardware point of view?
I am ignorant about electronic circuits, so I do not know what to do.
●clock stretch
As shown in fig 3(Source: https://media.digikey.com/pdf/Data%20Sh ... eet_D1.pdf), the master device connected to the SCD 30 must support clock stretching.
(Usually 12 msec / 150 msec once per week)
Question:
· When looking at fig4(source: https://www.espressif.com/sites/default ... eet_en.pdf), it can be read that ESP32 support up to (maximum value that can be written to this register)/(APB clock frequency = 80 MHz?)=13 msec. Did I get that right??
●sending data to AWSIoT
The sample code that keeps sending character strings to AWSIoT that comes with ESP-IDF is working fine.
I am trying to exploit the parallel processing of FreeRTOS in order to run both the function of sending the data and the function of acquiring the sensor information by I2C on the assumption that the above two topics could be solved.
Question:
· Is there anything to be aware of when implementing parallel processing using the dual core?
· Is there any electrical problem that you are worried about moving both WiFi module and I2C?
There may also be other problems that I have not noticed on my own.
In short, I want you to tell me as many hints as possible to make SCD 30 work with ESPr developper 32.
I am sorry including questions out of hardware.
please help me. Thank you.
I am a beginner about embeded system.
I use ESPr developper 32 development board of ESP-WROOM-32.
The development framework is ESP - IDF (v3.1.2).
I would like to connect this board to the SCD 30 (sensirion) sensor via I2C, and send sensor data to AWSIoT.
Please ask you some questions about following topics.
● Electrical characteristics
As shown in fig 1(source: https://media.digikey.com/pdf/Data%20Sh ... eet_D1.pdf), this sensor requires up to 75 mA.
However, As shown in fig 2(source: https://www.espressif.com/sites/default ... eet_en.pdf), I read that the source current can only flow up to 40 mA from the GPIO pin.
Question:
· Did I get that right?? If so, what can I do so that I make sure that there is no problem from the hardware point of view?
I am ignorant about electronic circuits, so I do not know what to do.
●clock stretch
As shown in fig 3(Source: https://media.digikey.com/pdf/Data%20Sh ... eet_D1.pdf), the master device connected to the SCD 30 must support clock stretching.
(Usually 12 msec / 150 msec once per week)
Question:
· When looking at fig4(source: https://www.espressif.com/sites/default ... eet_en.pdf), it can be read that ESP32 support up to (maximum value that can be written to this register)/(APB clock frequency = 80 MHz?)=13 msec. Did I get that right??
●sending data to AWSIoT
The sample code that keeps sending character strings to AWSIoT that comes with ESP-IDF is working fine.
I am trying to exploit the parallel processing of FreeRTOS in order to run both the function of sending the data and the function of acquiring the sensor information by I2C on the assumption that the above two topics could be solved.
Question:
· Is there anything to be aware of when implementing parallel processing using the dual core?
· Is there any electrical problem that you are worried about moving both WiFi module and I2C?
There may also be other problems that I have not noticed on my own.
In short, I want you to tell me as many hints as possible to make SCD 30 work with ESPr developper 32.
I am sorry including questions out of hardware.
please help me. Thank you.