3 votes

Connecting various devices to Arduino

As cguck70 already stated in the comments: The pins A0 to A5 can be analog input pins, but they can also be normal digital input/output pins. You can use them to your liking, just like any other ...
user avatar
  • 13.7k
2 votes

Compare interrupt enabled in overflow interrupt behavior is not as expected

I solved it. The points were: In the interrupt TIMER1_OVF_vect, I shouldn't turn off the ADC by resetting ADEN. Instead, I disabled the auto trigger by resetting ADATE. I use some wrong register ...
user avatar
  • 31
2 votes

I2C sensors not working when I connect to LCD 20X04

Thank you for all your help. I now realize that I have made the wrong I2C circuits. Then I modified them and now the program and the sensors work perfectly. Here is my circuit now.
user avatar
1 vote

Round to first significant digit

First of all, let me clarify that there is nothing “decimal” in a float: a float is a binary (not decimal) floating point number. The Serial.println() function does a binary-to-decimal conversion for ...
user avatar
  • 35.5k
1 vote
Accepted

Can't get input from 4x4 keyboard

You need to watch out for what you return and if your variables are initialized. So, what happens here: In loop() you call getNumber(). There you declare two variables: userInput, which you ...
user avatar
  • 13.7k

Only top scored, non community-wiki answers of a minimum length are eligible