How to Build a GPS Guided Bluetooth Robot - Part 4 - The Compass

Поделиться
HTML-код
  • Опубликовано: 22 апр 2018
  • The Instructable is here - www.instructables.com/id/How-...
    How to Build a GPS Guided Bluetooth Robot Part 4 The Compass
    You can Download the Cellphone App from MIT App Inventor here
    ai2.appinventor.mit.edu/?local...
    or you can search for it in the Gallery under "GPS Guided Robot"
    The Arduino code can be downloaded from Github Here
    github.com/mkconer/GPSRobot
    You will also need to download and install several libraries referred to in the code and the Videos and Instructable
    This builds upon a Bluetooth Robot that I made in a previous RUclips Video
    You can find the Instructable for it here.
    www.instructables.com/id/Buil...
  • РазвлеченияРазвлечения

Комментарии • 31

  • @ichigo2012hollowmask
    @ichigo2012hollowmask 2 года назад +1

    I cannot like this video enough times. Without this video, I would not be able to calibrate my magnetometer. I was able to get very accurate heading and degree rotations, thanks so much.

  • @EZtech
    @EZtech  4 года назад +2

    The Compass I use is the HMC5883L which is also labeled the GY-271 or GY-273 these are becoming harder to find in the US, but are are still available from China. If you are not getting any data from the Compass it may be that it is a newer model compass and not compatible with the HMC5883L compass Library

    • @theeternals8223
      @theeternals8223 4 года назад

      How your goona feed the address or else instruct the car to go to the particular place

    • @limitless2.011
      @limitless2.011 3 года назад +1

      @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.

    • @limitless2.011
      @limitless2.011 3 года назад +1

      @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.

  • @fredbarnes196
    @fredbarnes196 7 месяцев назад

    Can you run the calibration and the compass programs at the same time so that you can pass the calibration offsets as parameters to the compass program instead of hard coding them in?

  • @SawbanHash
    @SawbanHash 5 лет назад

    Hi, I did the calibration but its by like off 40 degrees. I really need some help here

  • @TheDutchGamingBE
    @TheDutchGamingBE 4 года назад +1

    Hello, is the process the same if you'd swap out the Arduino Uno for an Arduino MEGA ? Thanks in advance

    • @batuhanyerinde937
      @batuhanyerinde937 4 года назад +1

      It's the same. You should only change the cable connection.

  • @limitless2.011
    @limitless2.011 3 года назад +1

    @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.

  • @daviddiaz3875
    @daviddiaz3875 5 лет назад +1

    Hello, I´m trying to do this project but when I connect the magnetometer it doesn´t show any data, I have already checked the connections and they seem to be fine, do you what could it be?

    • @Benz93x
      @Benz93x 4 года назад

      @@anelemlambo497 would it matter? you could change it in the code and use that calibration code instead?

    • @ishansehgal526
      @ishansehgal526 Год назад

      @@Benz93x kindly explain it

  • @TheSalman70
    @TheSalman70 6 лет назад

    hello, I have metal robot chassis will it be a problem for a compass?

    • @EZtech
      @EZtech  6 лет назад +1

      Hasan salman As long as the mast is tall enough it should be fine, make sure the mast is not metal and don't use screws or any metals to secure the compass to the mast.

    • @TheSalman70
      @TheSalman70 6 лет назад

      nice.thanks for the quick reply. you are helping a lot.

    • @limitless2.011
      @limitless2.011 3 года назад +1

      @@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.

  • @daisyfernandez7870
    @daisyfernandez7870 6 лет назад

    Hello! i did the calibration process and it gave me (11,59) but recently i calibrate again and it gave me (0,58) i wanted to confirm those values but the values that i got didnt match.

    • @EZtech
      @EZtech  6 лет назад +1

      Daisy Fernández This is one of the most frustrating parts of the whole build as I mentioned in the Instructable. Make sure to that there is nothing metal near the compass. When calibrating be sure to place the robot on a flat even surface, I usually place it on a piece of paper on a table and rotate slowly. Also, be sure to move it as far away from your computer as possible or any other electronic devices, especially speakers (they have magnets). The offset numbers may not be exactly the same every time but they should be fairly close, sometimes I will take an average of the numbers. Hope this helps.

    • @daisyfernandez7870
      @daisyfernandez7870 6 лет назад

      EZtech it could be the bad calibration of the sensor the reason why the robot is not going to the right place?
      I Keep making the calibration process and i get almost the same values for the Y, but the values for the X are super random, i will change the base where i put the sensor and attached to it. I had never worked with something so sensitive, it's kind of annoying but at the same time is amazing.
      Thanks Sir for answering !!

    • @EZtech
      @EZtech  6 лет назад

      Daisy Fernández I'm wondering if the compass is mounted in the right direction. When you press the Compass "Set Heading" button is the heading correct? In other words if the Robot is facing directly North then the heading should read near 0 or near 360 degrees. Conversely if the robot is pointed South the heading should read approximately 180 degrees. Also, check your GPS location. Press the GPS location button and see that it is giving you the correct longitude and latitude coordinates.

    • @daisyfernandez7870
      @daisyfernandez7870 6 лет назад

      EZtech i checked and everything is fine, the degrees and gps info but it keeps going to one direction, if i set the points, it turns around and it always heading to 259 degrees 🤔🤔

    • @daisyfernandez7870
      @daisyfernandez7870 6 лет назад +1

      EZtech it's wooorking !!!!!! 😁😁😁😁

  • @andhavarapulokesh9003
    @andhavarapulokesh9003 6 месяцев назад

    i am not able to see any output in serial monitor when i upload HMC5883L_calibrate file. can you help me with this. Zip folder also not shown in examples.
    i got this Could not find a valid HMC5883L sensor, check wiring!.

    • @PhamucDuy-go6vj
      @PhamucDuy-go6vj 3 месяца назад

      Have you fixed it

    • @chideraagbasiere7868
      @chideraagbasiere7868 26 дней назад

      May be late now, but for posterity still. About the custom library not found in examples, search for the name of the example he used "HMC5883l calibrate" in your system files. You'll see the file in the .ino format, an executable script. Launch it from there and it opens the Arduino IDE with the entire code inside.
      About not seeing any output, I didn't see too, but somebody in the comment says you should just use the offset he used for his main code...ie, copy his main code that way after calibrating your compass manually.
      If you have tangible information, I could use some help.

    • @andhavarapulokesh9003
      @andhavarapulokesh9003 26 дней назад

      @@PhamucDuy-go6vj no sir actually i calibrated the compass, installed the apk file provided in the folder, my car is moving on the same place only even tried in the open place. when i set the waypoints and go to waypoints. what things need to change in the code can you suggest