sending sensor data from arduino Uno to arduino mega using bluetooth

Discussion in 'Programmer's Corner' started by saiteja12, Feb 16, 2017.

  1. saiteja12

    Thread Starter New Member

    Jan 4, 2017
    17
    0
    i want to send ultrasonic sensor sr04 values from arduino uno to arduino mega using hc -05 master/slave modules. can someone give me ideas in doing this
     
  2. MrSoftware

    Active Member

    Oct 29, 2013
    656
    182
    Don't try to trigger and wait for echo over wireless, the latency will be too much and your readings will be inaccurate. Take the reading on the uno, then send the numerical data to the mega.

    Google "hc-05 arduino" and you'll get tons of examples with code.
     
  3. saiteja12

    Thread Starter New Member

    Jan 4, 2017
    17
    0
    sir I got the code for reading values from hc sr 04 ultrasonic senor. now i want to send these values via bluetooth. so is there any way to get example sketch for sending data via bluetooth. i have two hc 05 modules;one is configured mastered and other one as slave.
     
  4. MrSoftware

    Active Member

    Oct 29, 2013
    656
    182
Loading...