Multiple Sensors, questions in base shield and scripts

Hi community, I'm an educator trying to use seeduino base shield with Arduino to integrate multiple sensors. I have a questions regarding the shield,

  1. When using the shield with UNO, can we only bundle sensors that share the same baud rate?
  2. Should I be using Mega for bundling sensors that use different baud rate?
    3.Could you please send me a sample script of how that might work? lets say (sound sensor and barometer sensor)

for instance, if I have

void setup()
{
Serial.begin(115200);
//Serial.println("Grove - Sound Sensor Test...");
Serial.begin(9600); if(!bme280.init()){ Serial.println("Device error!");
}

Could I just add another like this? (same question goes with the void loop) If not how might one go about go about combining multiple scripts for multiple sensors such as sound and barometer? I would just like to get an understanding of how this might work together.

Thanks you for reading,
Andy,

  1. When using the shield with UNO, can we only bundle sensors that share the same baud rate?

No, as it has the UART interface (the only one using a baud rate) brought out only once, so there's no sharing at all.

  1. Should I be using Mega for bundling sensors that use different baud rate?

That doesn't help as the pins of the additional serial interfaces of the Mega aren't available on the shield.

3.Could you please send me a sample script of how that might work? lets say (sound sensor and barometer sensor)

I don't know any sound or pressure sensor that works over UART interfaces. If you're writing about the I2C interface, that's a bus and there you're not fixed to specific frequencies, all devices should be able to communicate at 100kHz.

void setup()
{
 Serial.begin(115200);
 //Serial.println("Grove - Sound Sensor Test...");
Serial.begin(9600); if(!bme280.init()){ Serial.println("Device error!");
}

What do you think this code is doing? It doesn't make sense to change the serial baud rate in the sketch (in most situations).
I got the impression you actually think that the I2C interface is somehow related to the baud rate of the serial interface. This is not the case.

Thanks for your quick reply!

I'm using grove sound and pressure sensor from Seeed.

and Grove - Sound Sensor | Seeed Studio Wiki

I'm trying to use their base shield to hook up multiple sensors

I'm wondering how might one go about programming this. Because some of these sensors have different
baud rate.

So do you think I can only process one sensor per board? do you computing multiple sensors in one board is not possible?

Thanks

I'm wondering how might one go about programming this. Because some of these sensors have different
baud rate.

No, both don't use a baud rate at all. The sound sensor has to be connected to an analog input (or the corresponding socket on the base shield) and the pressure sensor must be connected by I2C.

So do you think I can only process one sensor per board? do you computing multiple sensors in one board is not possible?

Both sensors can be read by the same Arduino.