-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32-S2 I2C interface with MLX90614 #4375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe some code to show? |
I'm using the following library from Sparkfun for MLX90614 It also includes example code (MLX90614_Serial_Demo) |
Are you having issue with example or your own code? |
I'm using example code only and having issue with example code. It is successfully compiled and uploaded but nothing is showing on Serial Monitor. |
Try to comment out this line: |
Let me try it and update you. Thanks! |
I've checked by commenting this line: |
Time to use logic analyzer? |
However, I2C pins that I've used on ESP32-S2 is SDA - PIN8 and SCL - PIN9. Is that fine or is there any default I2C pins on ESP32-S2? |
Yes, when I've started the connection, I followed this only, but still I don't understand why nothing is displayed on Serial Monitor and it's blank? |
I dont have that sensor, so no much help about it, but just tested I2C with DS1307 RTC and it is working just fine. |
Have you interfaced DS1307 RTC with ESP32-S2 or ESP32? If you've done with ESP32-S2, could you please share the code so that it'll be helpful to check it. Also I can check with DS1307 RTC from my side and try to fix it with MLX90614 |
ESP32-S2 of course. i am using example from RTClib library:
|
Thanks. In the code you've commented Wire.begin(8,9). Is it like that? Also, I think may be problem in installing EP32-S2 board on Arduino platform. May I know the right procedure to follow it? Further, after adding ESP32-S2 board, when I choose ESP32 Dev board, I'm getting a compilation error like this: xtensa-esp32-elf-g++: error: unrecognized command line option '-mfix-esp32-psram-cache-strategy=memw' But when I choose ESP32-S2 board it's compiling fine and I've read that when using ESP32-S2, ESP32 based boards can't be used. Is it so? |
At first you have to delete old arduino-esp32, make sure you did delete all. I believe you have this error because some old files, maybe toolchain, are still not deleted. Then follow instruction for development repository, just use esp32s2 branch instead of master. There is also video on youtube from @UnexpectedMaker This installation will work with old esp32 and esp32-s2, when you pick proper board. It is still dev branch, so expect bugs and issues and please report if you find any. |
Sure, Thanks. I've seen this video earlier and he's doing for Mac and not windows. Hence I've followed this video: Is the procedure on this video is right to follow it? Also you made installation for Windows or other operating system? |
Currently i am working on ubuntu 20.04, but i also have prepared windows 10 installation and i did have windows 10 in virtualbox. |
Have you took the video that you've shared as a reference for windows installation or some other procedure?
|
My own experience and git command line. |
Fine, Thanks. If possible you can share your procedure for windows installation which will be very helpful. Also, I can try it out and let you know the updates. |
Hello, |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Arduino Core 2.0.0 and PR #5664 may solve this issue. |
Hello,
I'm using ESP32-S2 (ESP32-S2-Saola-1 Board, having ESP32-S2 Wroover model). I'm trying to connect ESP32-S2 with MLX90614 via I2C interface and have connected SDA to PIN8 and SCL to PIN9 of ESP32-S2. But the problem is nothing is displaying on Serial Monitor. Also, I've checked with I2C Scanner code and it's fine and showing I2C address that I setup, but the temperature is not showing on Serial Monitor and it is blank.
May I know the reason and please help me out.
Thank you.
The text was updated successfully, but these errors were encountered: