Answer the question
In order to leave comments, you need to log in
How to connect one BLUEtooth module to two Arduinos?
There is one Bluetooth module, it needs to be connected to two arduinos so that the signal is not lost.
Initially, it is a robot, where one arduino controls the wheels, and the second a manipulator, you need to send a signal from the phone to the first arduino and the second, and they subsequently already determined what needs to be done (I still didn’t understand how to do it right, now everything is very crooked and the manipulator refuses to work, multiple restarts help. I just connected the wires in parallel to two duins), or so that the first arduino reads the signal and sends it to the second one (I also tried to do it, but I didn’t achieve anything). If anyone had such an experience, then send a link to the solution.
Bluetooth module - HM-10
Arduino UNO
Answer the question
In order to leave comments, you need to log in
connect both Rx arduinos with their feet on the Tx of the bluetooth adapter. When sending data via bluetooth to arudins, form a command as a packet of bytes, where the first byte is the address of the recipient. On arduins, when you receive the first byte, compare it with the address of the arduino and decide whether to process the command or ignore it. The question of sending data from arduin back is not considered here.
although it can be considered. everything is pretty primitive.
you need to connect the Tx legs of both arduins to the Rx of the bluetooth. send a response only if the command is processed.
all)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question