-
Notifications
You must be signed in to change notification settings - Fork 6
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
esp12 #3
Comments
@bamboo-master Thanks for your feedback. I've some questions: Which version of the library are you using?
Which microcontroller are you using?
Which example are you using? Did you make any changes?
Yes, any digital pin can be used for AVR, ESP8266 and ESP32. I recommend to start with this example without modifications:
Another suggestion is to double check that the connected chip is a DS1302 and contains a 32kHz crystal oscillator. |
The ESP8266 pins in the sketches are tested with a NodeMCU. There is a pin conversion needed from #elif defined(ARDUINO_ARCH_ESP8266)
#define DS1302_CLK_PIN 2 // GPIO2 NodeMCU: D4 Pin is high during power-on / reset / flashing
#define DS1302_IO_PIN 0 // GPIO0 NodeMCU: D3
#define DS1302_CE_PIN 4 // GPIO4 NodeMCU: D2 |
Yes I've done that before. |
I tried to reproduce with:
Output:
Unfortunately, I could not reproduce it. |
And you can check with pins ? |
That works. |
Are pull-up resistors needed there? Could I have damaged the rtc? |
The problem is not only with rtc, it also does not work with bmp180, some pins do not respond at all, once it was possible to start normally and then again "not found". Maybe the board is damaged or some other binding is needed, I will buy a NodeMCU and compare it. |
Thanks for sharing. Using a NodeMCU is a good idea. Success! |
The pin's in the example are indicated in the example d2-3-4, but it doesn't work that way, I changed it to 4-0-2 (gpio) the example compiled but didn't work. Once I successfully assembled it for 4-5-13, but after the bulkhead, errors started again - I get "Time: Error: Could not read the time".
What am I doing wrong? Can pins be changed? What am I doing wrong? Can pins be changed?
The text was updated successfully, but these errors were encountered: