I want to control my arduino uno using internet. So i bought NodeMCU but i have just realized that NodeMCU is not being used with Arduino Uno (i mean it's not something like shields). NodeMCU has 9 digital pins and 1 analog pin as i saw. But i need more pins. So how can i use Arduino Uno and NodeMCU together?
You can set up a software serial port on the Uno and use serial to communicate between the two. You will have to set the baud rate of the NodeMCU to 38400 or slower to get reliable comms with software serial. I2C is also a good way.
I think it it easier to add more pins to the NodeMCU than it is to use the two mcus together.
Please explain why you need more pins. How many? What type of pins?
In some ways, using Uno and NodeMCU together is like pulling a perfect working pickup truck with a donkey. I do not mean to insult Uno by saying this. Sometimes a donkey is the best solution. But if you need the pickup truck, let the donkey rest until he is needed.