How to connect this two codes?(Serial begin 9600 and Serial begin 1000000)

How to connect both file in one code?
if PIR sensor detect camera will On

In this code has Serial begin 9600 and Serial begin 1000000

PIR Sensor.ino (2.1 KB)

Forum.ino (11.8 KB)

No IDE in my current equipment, no dot ino download, so no tips other than read the topic "How to get the best out of this forum" especially how to post code.

1 Like

Check why the one code uses a high speed; there might be a good reason for it.

Once you understand, you can decide. Or just use the fastest one and adjust the serial monitor (or other terminal program) accordingly.

Or you may need a buffer to store the code. This will only work if the fast side sends bursts and the slow side can accept data continuously.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.