I'm working on a project where I'm hoping to expand on someone else's work. The project is linked here, and it uses an Arduino Nano. The current functionality involves the use of all the digital I/O pins and all but 2 of the analog I/O pins. I was hoping to extend this project and add 5 buttons, but given that there are not enough input pins remaining, I know I'll have to come up with some way of extending the board's pins, and I have a hunch it'll involve an IC2 bus (since this project is already using one of those). Perhaps someone with more experience can recommend an easier option for a beginner who can no longer copy someone else's code.
Go for a controller that manages it. Else you'll have to add other circuits that need power, connections and special code.
Please extract the useful information and post it here. Plowing through unknown projects calls for unnecessary time that all helpers are not villing to spend.
If you have an analog input pin spare, you could use a resistor ladder voltage divider and read which if any of five buttons is pressed.
Google is your friend. See
a7
Here is how you do it:
You probably will not R9 and R10. This part can sink several about 25 mills but only sources about 1. You can use the unused pins for inputs or outputs or nothing your choice.
I don't know what you mean with that, but I2C is a bus so you don't need additional pins for it.
Without knowing what the original code does there is some chance that some solution will cause a problem.
What does the original code do with the other analog pins?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
