please read How to Use this Forum
it is a sticky post at the top of every forum #6 speaks to subject lines of value.
we have a few RTC Guru's on here. who may never read your post.
if you want them to see your post, put in something like :
Problems with RTC DS3231
before your post any code please read #7
then post the code that does not work.
as for editing, the lower right of your post has an option to modify your post.
Why did you change the default lcd library configuration? Using pins 0 and 1 is a bad idea (no serial monitor) and you duplicated pin 6 as shown. Go back to the library defaults shown below which allows you to leave the backlight on pin 6.
LiquidCrystal lcd(0,1,2,3,4,5);
int backlight = 6;
DB6 = Digital pin 4
I read that digital pins 0 and 1 can be used as long as the serial monitor is not used.
And I'm not using the monitor anyway, it's already all soldered on the board.
I also read that 0 and 1 are used to send the sketch, but as I said, it is already on the board, so they do not use these functions in fact.
Everything works in the board, except for the RTC.
In a code without ONE rtc line, I inserted line by line of the functions of the RTC and when I inserted the line: rtc.begin in the Setup, the LCD did not turn on. I suspect it's right there.
Re-reading this leaves me confused and I thought you had duplicated pin 6 between the LCD data and backlight. I now do not see that in your program.
Could you please post your current program and please explain this comment:
In a code without ONE rtc line, I inserted line by line of the functions of the RTC and when I inserted the line: rtc.begin in the Setup, the LCD did not turn on. I suspect it's right there.
"The LCD did not turn on" is not clear to me, do you mean the entire display of the LCD, the time value of the just the clock or the LCD backlight?
what pins to you have your RTC connected to ?
with your renaming so many pins from the default settings, it would be a really good idea to hand sketch your pin connections.
what pins to you have your RTC connected to ?
with your renaming so many pins from the default settings, it would be a really good idea to hand sketch your pin connections.
have you ever been able to get your RTC to work ?
can you post that sketch ?
These pins definitions are from RFID.
My RTC pins is default: SCL (A5) and SDA (A4)
Yes, before weld, I have done all tests on the board and everything worked fine.
These pins definitions are from RFID.
My RTC pins is default: SCL (A5) and SDA (A4)
Yes, before weld, I have done all tests on the board and everything worked fine.
check again
I think the MFRC522 board is labeled SDA, not the Arduino #define pin.
and on my UNO, I run out of pins after 13.
[color=blue]#define SS_PIN 10 // Arduino UNO pin 10 connects to MFRC522 pin RST
#define RST_PIN 9 // Arrduino UNO pin 9 connects to MFRD522 pin SDA
MFRC522 mfrc522(SS_PIN, RST_PIN):
[/color]
WattsThat:
You can run out if you want to but pins A1 through A5 are also known as digital pins 14 through 19.
Based on what the OP has said, I’d guess he has a solder bridge somewhere. Cannot do more than guess due to the lack of useful information.
too funny, but you're right, but I never think of them as D pins.
btw, what does A0 come up as ? I'm pretty sure it is not 13-1/2 ... LOL
I have to agree that we are missing the OP posting his pin connections.
WattsThat: This data appears in some versions of the pretty pinout pictures. For example, shown in purple or light violet below:
I was just laughing at myself that I did not think of the Analog pins as digital.
with the error of the OP renaming the I2C pin for use with the SPI device, my focus was in that error.
so you caught my error, but then, as can happen, you said A1-A5 as D14-D19....
but it should have been A0 to A5 = D14-D19....
I was wondering is D13 is just that.. and A1 = D14.... then...
A0 must be