Home › Forums › Environmental Sensors › Connecting Arduino MEGA or NANO with Teros 12 Sensor › Reply To: Connecting Arduino MEGA or NANO with Teros 12 Sensor
The baud rate in the example sketches is usually 57600 or 115200, which is the rate for the Arduino board’s serial output port that it uses to communicate with your computer, not the sensor. For whatever rate you choose, you have to manually change your IDE’s baud rate to match, otherwise you’ll just get gibberish on the monitor. The baud rate of the SDI12 sensor port (pin 7 in most examples because of how the Mayfly board is wired) is hard-coded to 1200 in the library files and can’t (or shouldn’t) be easily changed by end users.
If you use a Meter sensor on a Meter logger, it MUST be set to channel 0. Their logger will not communicate with any sensor that has an address other than 0. So if you change your sensor address to 1 (or A, or x, or any other valid SDI12 address) to use with your Arduino board, in the future if you want to put that sensor on a Meter brand logger, you’ll have to use your Arduino board and the b_change_address sketch again to change it back to 0. Alternatively, if you think you’ll be doing this switching a lot, it would be worth it to get one of the ZSC modules from Meter. It’s a low cost device that uses a bluetooth connection and an app on your phone to read and configure Meter sensors. It’s great for reading live sensor data and changing SDI12 addresses.