eHam

eHam Forums => Microcontrollers for Ham Radio (Arduino, Raspberry Pi, etc.) => Topic started by: K0WA on November 21, 2022, 05:45:04 PM

Title: Remote sensor and Arduino
Post by: K0WA on November 21, 2022, 05:45:04 PM
I want to use a HMC5883L Triple Axis Compass Magnetometer Sensor Module For Arduino 3V-5V about 100 feet away from the Arduino.  I am wondering if the length of wire comes into play.  I'm sure it does.  Is there a way to use a amplifier or a driver circuit to work between the sensor and the Arduino?
Title: Re: Remote sensor and Arduino
Post by: KG4RUL on November 22, 2022, 04:07:25 AM
The I2C bus will not work at that distance.  I am afraid you will need and Arduino board such as a pro-mini local to the sensor.  Then you could use software serial for communications via a pair of RS485 breakout boards such as the Sparkfun Transceiver Breakout - RS-485 BOB-10124 to the second Arduino board.  If you can supply power locally to the sensor and Arduino board, you can eliminate wire entirely with a pair of SparkFun RFM69 Breakout (915MHz)
WRL-12775 boards for an RF data link.