I'm absolutely new to arduino, so please excuse me if this is a noob question. I want to use a ESP8266 esp-03 Wifi module with a HC-05 bluetooth module together with my arduino uno. Unfortunately both use the TX and RX pins on the board. Is there a way to use both, the wifi and the bluetooth modules? Or do I have to purchase a wifi board?
You can (just about) use any combination of two of:
- Serial to PC,
You have, basically, a hardware UART (pins 0/1), and a software UART (any pins of your choice).
Only the hardware UART can be used for communication with the PC, and you can only reliably use one instance of SoftwareSerial.
So, you could:
- Use Serial to the PC (0/1) and HC-05 (SoftwareSerial, your choice of pins), or
- Use Serial to the PC (0/1) and ESP-03 (SoftwareSerial, your choice of pins), or
- Hardware Serial for ESP-03 (0/1) and SoftwareSerial for HC-05 (your choice of pins), or
- Hardware Serial for HC-05 (0/1) and SoftwareSerial for ESP-03 (your choice of pins)
If you want anything more complex than that then you need to use a board with more than one hardware Serial port (such as a Mega2560).