Hello everyone, I hope your all fine. I am building a new project and I am encountering some problems. Some of my questions might be very simple and easy to answer but I have difficulties searching for 100% correct answers on web(it might be cause of my bad english).
I want to add four HCSR04 sensors to the project, so I need to know what conditions must be met the trigger and echo pins. For example does any needs pwm? Can I connect them in both analog or digital pins? Can I normally use the A6 and A7 pins of arduino nano?
I designed the project using an arduino nano, and then i decided to make it using a barebone arduino using the ATmega328 but realized that the microcontroller has only 5 analog pins(which means I run out of pins) and i got very confused. Is there any trick getting those 2 analog pins without multiplexers?
Which multiplexer(I am not sure if I am correct) should I use to add more HCSR04 sensors?
When is it possible to use the TX-RX(D0-D1) pins?
Thanks everyone for your time, really apreciating any help.