Arduino GPS speed logger

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น •

  • @hoggif
    @hoggif 8 ปีที่แล้ว +1

    Some simple filtering is probably needed to get rid of single jumps that you always get with poor gps signal.
    You could eg. take 5 samples, discard the extremes and take the average of the 3 mid values. You can add a condition like min 4-5 satellites to discard anything with very poor value (and/or require some value for HDOP).

  • @Rustaceann
    @Rustaceann 6 ปีที่แล้ว

    I have also had this problem with these screens. I remedied this by drawing a small black box over only the area that will be updated instead of redrawing the whole screen.
    This allowed me to show sensor data from in multiple places on the screen that would update many times per second as well has have moving graphics and animations.
    1. Create a static text field: "GPS: "
    2. Change "updateScreen()" to something like:
    display.drawRect(x,x,x,x, BLACK);
    display.setCursor( just after static line "GPS: ")
    displayln(gpsVariableData)
    3. Repeat as necessary for each variable as necessary and you can still call them simultaneously from updateScreen() and it will be many times faster than redrawing the whole screen.

  • @muh1h1
    @muh1h1 8 ปีที่แล้ว +1

    Top questions asked by strangers going by:
    1) how far can it go?
    2) how high can it go?
    3) does it have a camera?
    4) what did all of this cost?
    5) how long can it fly with one battery?
    6) how fast can it go?

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว +1

      +muh1h1 oh yeah, does it have a camera, that's gotta be my number three

  • @roidroid
    @roidroid 8 ปีที่แล้ว

    i guess that gives a rough answer to the "how far can it go?" question too. If a battery lasts about 10mins you'd get around 10 to 20km of range (autopilot permitting)

  • @SailorJohn34
    @SailorJohn34 7 ปีที่แล้ว

    awesome that you put a direct link to the zip file. Thank You. Trying this soon.

  • @Les_Grossman
    @Les_Grossman 7 ปีที่แล้ว

    Cool little device- thanks for sharing! Looking at your footage- you might want to tune your PIDs though?

  • @carloshernanduquesanchez703
    @carloshernanduquesanchez703 2 ปีที่แล้ว

    hello
    i'm trying to do this project but i don't have any gps signal, the arduino at this moment only gives me a height value but it doesn't mark any speed or satellites.... i'm using a beitian bn220 gps..... which can be failing? Thank you

    • @pitersmieja8395
      @pitersmieja8395 2 ปีที่แล้ว

      I have only had success with the NEO modules that are designed for the ubx software. I made the same mistake in the past trying to use the bn220 and it never worked

  • @lsdave
    @lsdave 8 ปีที่แล้ว

    Could you use nested interrupts and set the gps to a higher priority than the screen?

  • @yaseenalrifaie4255
    @yaseenalrifaie4255 3 ปีที่แล้ว

    is it possible to detach the screen and make it wirelessly?

  • @davidroul7374
    @davidroul7374 3 ปีที่แล้ว

    Hello, and thanks for the awesome work. I have troubles in finding GPS neo-M8N modules with flash memry so you can update firmware. You pointed a Bangood link in the header of the video, but it is broken. Can you share us a link to recommended sellers ? thanks again

    • @iforce2d
      @iforce2d  3 ปีที่แล้ว

      These days I usually use a BN-220 module, they work well and are pretty cheap.
      www.banggood.com/search/bn-220.html

  • @mmbodnar
    @mmbodnar 7 ปีที่แล้ว

    Hi, thanks for the video.
    As a beginner amateur Arduino programmer.... I am trying to figure out how to log the 1 Hz binary messages to SD card for viewing or processing later. Have you done this? all the tutorials are how to log the parsed NMEA data but would like the raw binary for efficiency.

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      Pretty sure the write function will write bytes to a file....
      www.arduino.cc/en/Reference/FileWrite

  • @Pourya49
    @Pourya49 6 ปีที่แล้ว

    Hi, I'm going to build this gps but I want to know how mush accurate is this?

  • @anomoly40
    @anomoly40 2 ปีที่แล้ว

    So, I tried to follow the link to the sketch but it looks like the link is broken.

    • @iforce2d
      @iforce2d  2 ปีที่แล้ว

      Yeah, TH-cam likes to mangle those links sometimes. Even when I paste it here again it might not work.
      You'll have to copy and paste the URL into your browser address bar, just up to the 'sketches' part is enough to see a list of all sketches related to my videos.

  • @4737_AldinoPutraAndeaz
    @4737_AldinoPutraAndeaz ปีที่แล้ว

    hello @iforce2d . i want to build this speed logger and shall buy Arduino promini, gps neo 7m, and lcd oled 128x63. but your link for wiring and the code is broken. could you provide me the wiring and code please ?

  • @wdave6944
    @wdave6944 8 ปีที่แล้ว

    Though not of me, the most asked questions I hear are "Hey, you come here often?" followed by "What's your sign?" ... I gotta find a better place to hang out ;)
    sorry;)

    • @roidroid
      @roidroid 8 ปีที่แล้ว

      Get this one a lot: "Why are you flying a quadcoptor in my dance club?" and "Didn't i tell you i'd call the police if i saw you here again?!"

  • @jankomuzykant1844
    @jankomuzykant1844 8 ปีที่แล้ว

    I think You should anyway try interrupts for receiving GPS packets without loseing data, especially on 10 Hz.
    For graphic LCD - u8g library.
    The same screen (also I2C, mini pro 16 MHz) is enough fast for simple graphics animation then there is something wrong (slow) with I2C in this sketch.

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว +1

      +janko muzykant interrupts is a good idea. Yeah I do not remember this screen being so slow in the past when I used it before. I have occasionally played with the I2C speed in the arduino Wire library, but right now I have it set back to the default so that should not be the problem.

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว +1

      +janko muzykant I've been trying the u8g library lately, it's pretty nice. I also realized that the slow update is caused by the software serial connection of the GPS. The interrupts of the incoming data are taking up a lot of time. I switched to using the hardware UART and it runs nicely.

    • @jankomuzykant1844
      @jankomuzykant1844 8 ปีที่แล้ว

      +iforce2d Software serial is nice for fast, not very time rigorous diagnostic but in this case (10Hz GPS update rate) hardware UART works perfect.
      Glad to know, keep going :)

  • @gertjansaarberg11
    @gertjansaarberg11 7 ปีที่แล้ว

    Witch GPS are you using. The link is not working aneymore.
    I like to build one.
    gert-jan

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว +1

      This one looks very similar (also a 7M) goo.gl/lBD3OC
      But that's out of stock too right now, and these days you can get an M8N module for around $20 so not much point to get a 7M. I use this one on my quads whenever I can, they perform very well: goo.gl/mLtazm Haha again out of stock on BG. Just look around for "M8N".

  • @dirkpienaar8521
    @dirkpienaar8521 6 ปีที่แล้ว

    Hello Thank you this helped me a loot I do want ask if you can help me more I have looked at the other vids but can get the awnser
    I want to record the max altitude also but cant seem to figure it out please can you help
    I am using your code in this project

  • @Just-A-Guy-Learning
    @Just-A-Guy-Learning 5 ปีที่แล้ว

    i get a height incorrect error when flashing

    • @chrisroddick3899
      @chrisroddick3899 4 ปีที่แล้ว

      I deleted those 3 lines of code then flashed .

  • @themiklesshow2706
    @themiklesshow2706 8 ปีที่แล้ว +1

    Hello. What GPS module do you use?

  • @stewartrv
    @stewartrv 8 ปีที่แล้ว

    GPS Link is broke, can you update the link or tell us what the module details are pls.?

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว

      Any ublox module will do, try to get a 7 or 8 series one, eg. neo-7m or m8n.

    • @Soeren_Hetzer
      @Soeren_Hetzer 8 ปีที่แล้ว

      I have got the neo 6m and it does not work. Is it the wrong antenna for the script or should it also work?

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว

      The NAV_PVT message is only available on 7 or above.

    • @Soeren_Hetzer
      @Soeren_Hetzer 8 ปีที่แล้ว

      Thx

    • @Soeren_Hetzer
      @Soeren_Hetzer 7 ปีที่แล้ว

      I have got an neo m8n and it still dosen`t work, do i have to change something in the script or should it normally work as it is?

  • @claudiufarcas
    @claudiufarcas 8 ปีที่แล้ว

    1) is this a drone?
    2) how much does it cost?
    3) how far can it fly?
    etc.. ;)

  • @RyuuzakiJulio
    @RyuuzakiJulio 8 ปีที่แล้ว

    you said I²C is slow. is ISP or RX-TX faster?

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว

      +Julio Ryuuzaki I think it may have been more that the software serial was slow. After this I tried the u8g library for this screen which improved the speed too. In general I2C is much faster than UART (RX/TX)

    • @RyuuzakiJulio
      @RyuuzakiJulio 8 ปีที่แล้ว

      +iforce2d I had been using several OLED screens like yours. Some with the Arduino Pro Mini like you and also with the 100Mhz Mbed platform. Thinking more MHz would give me more speed. But in reality the speed of communication is the problem. If the controllers would directly control the screen it would be faster but it will use many cables, the problem is the screen is controlled by a controller that needs to be operated with "commands" sent trough I2C, UART or SPI.

  •  8 ปีที่แล้ว

    anyways whats that in mph? as kmh is crap measurement i need mph lol?

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว +1

      +Jay Mee there are whole other countries out there Forrest...

    • @ReubenHorner
      @ReubenHorner 8 ปีที่แล้ว

      +Jay Mee I thought everyone sorta knew that 60 mph = 100km/h. Also who needs google when you have youtube comments

    •  8 ปีที่แล้ว

      yer some countries use khm and others use mph it should be same world wide ppl need to forget kph, and same goes for temperature c is better than f unless c goies into the minus then f is ok for that reason :D

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว

      +Jay Mee you are joking right?

    •  8 ปีที่แล้ว

      mph makes more sense! even things that should use fps or knots are sometimes represented in mph as that's the best scale to understand! everyone recognizes what a mile is as 1 mile bridges here and there a 1000 meters is no good lol i hate having to convert it in my head it gives me head ache!

  • @icebluscorpion
    @icebluscorpion 2 ปีที่แล้ว

    You should structure your code as OOP Object Oriented Programming and move away from procedural coding. Because that a very large code to refresh procedurally. In the time that you refresh the screen the GPS had sent 50 times the information. That's the reason why you get a multiple/division of 10. It gets every 5 sec in sinchrony and the rest of it will not match, because everything under 5 seconds is not a multiple of then.

    • @iforce2d
      @iforce2d  2 ปีที่แล้ว

      The microcontroller doesn't care if the code is OOP or not, if anything it will just run a little slower with OOP. The screen is slow because data is transferred via I2C, and OOP will not help that.

  • @gertjansaarberg11
    @gertjansaarberg11 7 ปีที่แล้ว

    is it possibe to use a other gps ?
    regards

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      This requires a ublox GPS, that does UBX protocol.

    • @gertjansaarberg11
      @gertjansaarberg11 7 ปีที่แล้ว

      to use a other gps with the tiny gps plus libary i have to complete make a other code ?
      gj

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      Yes. This code requires a ublox GPS, that does UBX protocol.

    • @gertjansaarberg11
      @gertjansaarberg11 7 ปีที่แล้ว

      Thanks.
      Can you mark the section who had to be changed?
      gj

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      Well, basically the whole thing. You could look into the TinyGPS library, which handles NMEA messages.

  • @SailorJohn34
    @SailorJohn34 7 ปีที่แล้ว

    Flying FPV?

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      yes, of course :)

  • @jahroen
    @jahroen 6 ปีที่แล้ว

    hello thank you for making this vid.
    i,m geeting a error when i try to upload the skecht
    i dont know what to do , i am a noob when it comes to programing
    Arduino: 1.6.9 (Windows 7), Board: "Arduino Nano, ATmega328"
    GPS_MaxSpeedDisplay:20: error: #error ("Height incorrect, please fix Adafruit_SSD1306.h!");
    #error("Height incorrect, please fix Adafruit_SSD1306.h!");

    • @iforce2d
      @iforce2d  6 ปีที่แล้ว

      maybe you just need to get the Adafruit SSD1306 library
      github.com/adafruit/Adafruit_SSD1306
      www.arduino.cc/en/Guide/Libraries

    • @jahroen
      @jahroen 6 ปีที่แล้ว

      Sorry i forgot to say i have downloaded that library via arduino software, but if the other is different then try that to

    • @jahroen
      @jahroen 6 ปีที่แล้ว

      thank you i got it to work ,
      but no data coming in from the gps its not getting a lock

  •  8 ปีที่แล้ว

    kilometers not killer meters!

    • @iforce2d
      @iforce2d  8 ปีที่แล้ว +1

      +Jay Mee killergrams?

  • @Soeren_Hetzer
    @Soeren_Hetzer 7 ปีที่แล้ว

    Hello, i am building your speed logger, but in my case for skiing. I have a problem were I think you might can help me. I have bought this GPS module drotek.com/shop/en/drotek-parts/613-ublox-neo-m8n-gps-hmc5983-compass-xl.html but it doesn't want to work. I changed it to 10Hz. do you know were the problem is or how i can get it to work ? Thanks and sorry for my bad english.

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      no, how could I possibly know.... (tip: saying just "doesn't work" is a completely useless description)

    • @Soeren_Hetzer
      @Soeren_Hetzer 7 ปีที่แล้ว

      Ok sorry the monitor is showing everything but it doesen't find the Gps signal even wenn i am out and wait several minutes.

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      Connect the GPS module to the u-center app and check what's happening. th-cam.com/video/TwhCX0c8Xe0/w-d-xo.htmlm48s

    • @Soeren_Hetzer
      @Soeren_Hetzer 7 ปีที่แล้ว

      I have done that and changed the rate to 10hz and it also works and finds some satellites. But one it's hooked up to the arduino it couldent find them. Do i have to change anything else than just the Hz ?

    • @Soeren_Hetzer
      @Soeren_Hetzer 3 ปีที่แล้ว

      @@alaskahudson unfortunately I gave up

  • @ReubenHorner
    @ReubenHorner 8 ปีที่แล้ว

    So on 4s many magics will happen i guess

  • @gertjansaarberg11
    @gertjansaarberg11 7 ปีที่แล้ว

    i understand i will order a new gps.
    thanks

    • @iforce2d
      @iforce2d  7 ปีที่แล้ว

      See if you can get a M8N one, they perform really well and you can do all this UBX stuff with them.

    • @gertjansaarberg11
      @gertjansaarberg11 7 ปีที่แล้ว

      only the 7 m is availble