-
Notifications
You must be signed in to change notification settings - Fork 26
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
Problem ... ESP8266 -> ATTiny85 ... #22
Comments
Hello? Any ideas on how I can best debug this scenario? |
Are you using pull-up resistors? What's their value?
…On Sun, Aug 4, 2019, 22:34 Scott C. Lemon ***@***.***> wrote:
Hello? Any ideas on how I can best debug this scenario?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=ABVNTWLVSYSRV6ZBJPC73DDQC57STA5CNFSM4IFTXUDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3QOQBY#issuecomment-518055943>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVNTWPCPJ4FRWTBAVUVQM3QC57STANCNFSM4IFTXUDA>
.
|
Yes ... I've got pull-ups in place, and they are 4.7k ohm. |
Sorry for the dumb questions about stuff you've probably checked a million times already. I'll try using a Tiny85 with an ESP8266, but, before, I gotta ask. Again, sorry:
|
Hello, There are no dumb questions ... you're helping to debug this so everything is fair game. :-) The board (running the I2C Slave code) is from here: https://www.smart-prototyping.com/Zio-Qwiic-Loudness-Sensor-I2C?search=sound Here is the schematic of the board: https://github.com/ZIOCC/Zio-Qwiic-Loudness-Sensor-I2C/blob/master/zio%20qwiic%20loudness%20sensor%20schematic.pdf And the firmware for the ATTiny on the board is here: https://github.com/ZIOCC/Zio-Qwiic-Loudness-Sensor-I2C/blob/master/Codes/Qwiic_Loudness_Sensor_Firmware/Qwiic_Loudness_Sensor_Firmware/Qwiic_Loudness_Sensor_Firmware.ino I've cabled it according to this page: https://www.smart-prototyping.com/Qwiic.html It appears to be built correctly, and configured correctly.
And I am using the Arduino IDE, however I have not yet recompiled the code nor uploaded to the board until I determined if there were other hardware issues going on. Which board library (url?) would you recommended be added to the current IDE? |
Sorry ... and again, I used this board with an UNO, Mega, and Pro Mini without an issue ... the exact same off-the-shelf board running the exact same ATTiny85 code ... and it seems to work perfectly. It's only when I connect it to the ESP-12F module that I don't get a response. And my ESP-12F module can talk with all sorts of other I2C devices ... |
Last one, which ESP8266 board are you using? |
I'm actually using a very simple prototyping board from ESProto ... http://www.esproto.com/product/esproto-one-kit/ It's really just a ESP-12F on a PCB ... very raw. |
So:
Right? Not an easy one. I keep thinking about issues related to an electric issue. I'll test this during the weekend (I'm out of town now) and get back to you. |
Yes ... with one more bullet:
It's only when I go to read that the reads fail. I do know this is not an easy one ... and truly appreciate your time on this. I'm going to have to find your donate button if we can solve this. Let me know if there are other things I can provide. |
Haha, if you knew how far way from setting up a donate button I am. I'll get back to you during the weekend. This kind of issues are always fun. |
You've probably already checked this out. https://arduino-esp8266.readthedocs.io/en/2.5.2/boards.html#generic-esp8266-module |
Hello, I wanted to check back and see if you ever got a chance to experiment? I did review that link that you provided ... was there something in particular that you wanted me to read? Just as a side note, we PCB that we designed around the ESP-12F module, and have ~15 different sensor products that I've designed and built for use in a wide range of applications. I have written a lot of code for the ESP-12F, interacting with numerous I2C devices. This is the first time I've run into an issue like this, which is why I was looking for some tips/input on what might not be working. I'm hoping that you had a chance to investigate a little ... or maybe have some ideas on requirements to be able to read properly from a ATTiny85 from the ESP-12F. I spent some time Googling for ideas, and experimented with the code some ... but can still write ... just can't read ... :-? |
Hello! I wanted to let you know that I just resolved this issue! :-) It turns out that I needed to increase the "clock stretching" on the ESP8266 I2C bus, adding the following line to my code:
The default Arduino ESP8266 StretchLimit is 230us ... which I guess was just too short for the board running your code. I increased this to 1000us and it's working great! Thanks! |
Hello,
I'm hitting an issue that is driving me nuts. :-)
I have an ATTiny85 that is running this code: Qwiic_Loudness_Sensor_Firmware.ino
I have an Arduino UNO (and MEGA) running this code: Example1-Basic_Reading/Example1-Basic_Reading.ino
This works perfectly.
My ESP8266 can talk with countless I2C devices, and even an Arduino UNO running some Wire slave code. It just can't read from the ATTiny85 running that code above.
Specifically ... it's the requestFrom() operation that fails every time ... always returning 0 bytes. If I comment out the get_value(); call that is in loop() then the LED blinks just fine.
Upon searching (for hours) I found some people referencing this post from the /rambo library that you mention: rambo/TinyWire#36
I'm wondering if there is a similar fix that you have made, or might have to make, in your library?
Any ideas on debugging or what might be going on?
The text was updated successfully, but these errors were encountered: