Arduino GPS speedometer

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Sketch: www.iforce2d.ne...
    Video about UBX settings: • UBX binary protocol, e...

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

  • @johnekberg2884
    @johnekberg2884 7 ปีที่แล้ว +8

    Hi!
    I just wanted to thank you, great video and a very nice sketch! Im builing my own Speedometer for my motorcycle and this video has really given me a great start!
    I used a Ublox module called VK2828U7G5LF TTL which i bought from banggood, worked right out of the box.

    • @shabadabadoo4326
      @shabadabadoo4326 5 ปีที่แล้ว

      I don't suppose you documented the process and end result somewhere?

    • @petermccool9396
      @petermccool9396 5 ปีที่แล้ว

      That would be interesting to see your project. I'm currently working on the same project but using STM32F103 blue pill.

  • @havoc987
    @havoc987 5 ปีที่แล้ว +4

    wow, for 2016 this is a really good video, best one I could find. I am trying to make a good speedo for a go kart (made from a shopping cart) lol

    • @lucamanno4948
      @lucamanno4948 5 ปีที่แล้ว

      exactly the same thing bro haha

  • @MicroRCFiend
    @MicroRCFiend 8 ปีที่แล้ว +2

    Realtime readout of the mph while flying is well cool. I'm just glad you're using your powers for good...

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

    Thanks! I plan on using this to make a small stick on module for my motorcycle helmet. A semi-transparent mirror will sit at a 45 degree angle between the lcd and my eye so I can have a heads up display mounted to my helmet.

    • @saulhunton5102
      @saulhunton5102 5 ปีที่แล้ว

      Were you able to complete the project? It's exactly what I'm trying to accomplish!!! ^-^

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

    Big thank you from me too. Your insights into the hardware and datasheet helped me get going with the uBlox protocol much faster.
    For the record my setup is: V.KEL VK2828U7G5LF (UBX-MK8030-KY chip), Wemos D1 ESP8266, and the display library U8g2.
    I enjoyed calibrating the car speedometer on every bit as much as you did!

  • @jameslamb4573
    @jameslamb4573 8 ปีที่แล้ว +7

    I like it.
    You may like to retain your max speed function and display it in a corner of the screen???
    Of course, you're only a hop, a step, and a jump away from building a fully featured OSD. In all seriousness, putting the altitude on the display would be quite useful if you were viewing it real-time. Given the nature of the drone control laws appearing left, right, and centre around the world, a "simple", cheap(ish), and accurate altimeter would be a boon.
    My main interest stems from restoring a 50 year old car, I'm planning on discreetly adding more accurate instruments, one multifunction display really, to complement the standard setup. Adding SD card functionality to record a trip's/flight's details will be the next on my list.

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

    Thanks for posting this and the code! I am using it as a basis for an Arduino Nano controlled GPS OLED Speedometer that also controls some WS2812 LED light strips(different patterns based on speed). I needed to optimize the code a lil to get everything running smoothly(I also switched to a SPI OLED). Let me know if you want to see the updated code.

    • @johnrees44..G4EIJ
      @johnrees44..G4EIJ 4 ปีที่แล้ว

      Rich...I would be really interested to see the code you refer to if that's possibleThank you...John...Bristol..UK

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

      hello! where can i see your code? thanks

  • @tgnidebnu
    @tgnidebnu 7 ปีที่แล้ว +6

    I love this speedometer! It seems very fast!
    Thanks for uploading and sharing!

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

    If you added a logger feature (or used a ready made logger) you could overlay eg. a track and display speed over video image. Something like this could be neat for videos to publish.
    I would rather use the same battery as the quad. Carrying two batteries is some extra weight for no reason. (A cheap step-down would do fine in case the arduino linear reg heats up too much on higher cell count).

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

      +hoggif Or just connect the gps to cleanflight and have blackbox log all the things anyway

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

    I love this channel so much

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

    I like it. Put it in OSD and everyone will want. Although your dashboard was groovy too.

  • @Burak-pl1jl
    @Burak-pl1jl 6 ปีที่แล้ว

    Hi,
    Thank you for explaining it even with its errors and then with the fixed version.
    By the way, where you live looks quite peaceful. :)
    Cheers!

  • @OUTLAW199317
    @OUTLAW199317 7 ปีที่แล้ว +13

    Ha didnt realize it was km/hr when i saw him taking the corner at 100...

  • @CyberdriveAutomotive
    @CyberdriveAutomotive 3 ปีที่แล้ว +1

    I've looked through the U8glib documentation and can't seem to find anything about reversing the screen image
    I'm attempting to create a heads up display for my car using this design but can't figure out how to get the screen to reverse itself
    Any idea how to accomplish this?
    Thanks!

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

    Muy Bueno, y hasta quizas con un poco mas de codigo hasta se podria ver la altura a la que esta volando.! Very Nice

  • @jaakkawinterroadofficial
    @jaakkawinterroadofficial 6 ปีที่แล้ว +1

    Amazing 60fps video i liked!

  • @jimkryzak811
    @jimkryzak811 4 ปีที่แล้ว +2

    I've tried building this. I'm using the Arduino Uno. I've used your sketch, which I've also found in the Arduino Project handbook by Mark Geddes. The left most spinner animates when running, but not the spinner to the right of it. The Speed displays as 0, and satellites 0. I think this is indicating that the Ublox Neo 6M GPS data is not being read. The red LED on the Ublox is flashing - indicating that it is receiving a signal. I've double and triple checked the wiring connections. I have also found another sketch that only reads the Ublox - running this sketch, I can see that the GPS unit works ok and sends data. I've updated all libraries and am using the latest 1.8.12 Arduino IDE.
    Has anything changed since you wrote the code in 2016? How can I get this working? Any suggestions would be greatly appreciated.

    • @alirazif9375
      @alirazif9375 4 ปีที่แล้ว +1

      i have the same issue

    • @kassendek4777
      @kassendek4777 3 ปีที่แล้ว +1

      I also have the same problem. I am using a GOOUUU neo6m0001

    • @michaelbrannelly2316
      @michaelbrannelly2316 3 ปีที่แล้ว +1

      @@kassendek4777 U need at ,east Neo7M 6m doesn't support PVT

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

    car speedos read 5% over or around there according to my local car mech, but he also said all cars are different

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

    i can only imagine what your neighbor would have thought if they had looked out there window and seen you running around like a crazy person in you yard. :D

  • @danieleconserva279
    @danieleconserva279 ปีที่แล้ว

    It seems to be bang on. The car always marks 4 or more kph. Real test is against a phone with google maps.
    When i do a 100 on g maps, the car says 104.

  • @jeffbluejets2626
    @jeffbluejets2626 5 ปีที่แล้ว

    Been looking for ways to send speed and fuel level in a scale Rivierra model rc boat via nrf24L01 high power transceivers to an Oled display mounted on my rc transmitter.
    Initially thought maybe use a similar arrangement as you used in your cheapass tester unit.
    For extracting the GPS data thought along the lines of using an Omnibus F4 controller as you used in your sea test with monitors etc. and then saw this video.
    I can see where all of this is rather a muddle at present but thought you may have some link to build something like this.
    ps..also have a BN220 gps.

  • @malcox1
    @malcox1 5 ปีที่แล้ว +2

    When I made a GPS speedo in my car, I noticed that when I came to a stop from say 30 mph, it took 3 ish seconds to return to zero. I am wondering if the GPS units have an averaging process for the speed?

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

      yes they do but each device is different.

  • @tamarathompson9418
    @tamarathompson9418 5 ปีที่แล้ว

    Legend . I have one of these modules and looking for a use for it

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

    Hello, nice job!. Did you try with a bigger 1.3 OLED display ? I suppose you are limited by the arduino pro mini memory, since I've seen bigger characters on the 0.96 was a problem. What arduino do you suggest for a compact solution if I want to use a 1.3 in display?. thanks a lot

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

    I'm not even sure you still check these comments. However I am trying to get this to work. Right now I have the far left spinner that spins and the middle spinner is stationary.
    gps- gt-u7 ublox-7
    Display - 1.3 OLED
    Arduino nano

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

      No action on the middle spinner means either the GPS is not sending any messages or your program cannot make sense of the data being received. You might be better served to start with this: th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html
      Yeah it's not very exciting, but the first thing to do is confirm that the GPS you have will actually work with this method of handling the incoming data using a much simpler example, and you'll know about the u-center utility which is quite handy for various other uses as well.
      There are some differences between versions of the firmware on these GPS modules, some of the early ones don't have the NAV_PVT message at all. Even when the NAV_PVT message is supported, there is sometimes a difference between the size of the message (usually this differs between 7 and 8 modules). You can use u-center to check which messages your particular module has available, and to check the size of them too. The most common problem I have seen so far is that you need to add a few dummy bytes at the end of the NAV_PVT struct so that it is the correct length, but typically that is required for 8-series modules, not 7-series:
      byte dummy[6];
      So if you are more interested in being given a fish instead of learning to fish, as the saying goes, you could try that right off the bat, it might work :) But since your module is a 7-series, I think it's more likely that it just doesn't have the NAV_PVT message this sketch is set up to use. See the video above and the other one linked to in the description about other messages you can use.

  • @LhDiy
    @LhDiy 5 ปีที่แล้ว

    I have finally a working speedometer thanks to this video.
    I've changed the speed font to fur42n and so it is bigger than to choose setScale2x2 code.google.com/archive/p/u8glib/wikis/fontsize.wiki

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

    Hello Sir. Could you make a video on how to use arduino with gps to turn on or off a relay based on speed detected. I'll like to have a gps control relay to turn some lights on in my car when current speed is 10mph. Thank you.

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

    cant see the sketch, what kind of gps module you used? and what library for it? Thank you

  • @unalfaruk
    @unalfaruk 7 ปีที่แล้ว +3

    Hi! Thanks for video!
    I have a question, I want to do a speedometer using GPS. URL of your GPS broken and I found a GPS which named GY-NEO6MV2. Can I do using this module?

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

      Yes, it should work. These days for a reasonable price you can get a M8N module which is much better.

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

      OK, thanks for the advice and replying :)

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

      iforce2d not to bother u, would it be possible to add a link for a good gps I can use? Thank you

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

      Sorry, I missed this comment somehow. The M8N is a really good GPS and reasonably priced, I have used many of them in various projects: goo.gl/nmo3Ny

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

    Hi, what was the equipment that you used?
    Did you go any further, I would like to add a trip counter, so I know when I am getting close to running out of fuel. As my fuel level gauge is not accurate. How much do the parts cost about? Is the code available? Thanks,

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

    Nice stuff. I love your videos, they're all very helpful. I've tried your code using M8N GPS receiver. Unfortunately, no packet detected. I was suspecting the neo M8N binary setup to be different so I've manually setup the receiver using UCenter but still no packet detected. Everything looks ok in Ucenter Packet view. Baudrate is ok. Do you have an idea?

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

      +gabe FPV I had to modify it a bit to get it to work with my M8N, here's what I ended up using: s3-ap-southeast-2.amazonaws.com/alhazan-au/UBX_GPS_NAV_PVT.ino

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

      +alhazan that's a very timely bit of help, thanks. I just got a M8N a few days ago and beat my head against a wall for hours trying to get it working with my sketches. I knew the packet size was different but didn't pay attention to what the U1[6] was meaning in the protocol description.
      +gabe FPV fwiw you should be able to replace the last few lines in the NAV_PVT struct definition (just after the pDOP member) as follows.
      Before:
      short reserved2; // Reserved
      unsigned long reserved3; // Reserved
      After:
      unsigned char reserved2[6]; // Reserved
      long headVeh; // Heading of vehicle (2-D)
      unsigned char reserved3[4]; // Reserved
      I guess what we really should be doing is using the 'len' member of the incoming data to get the packet length right in the first place, instead of just having a hardcoded packet length. Then the sketch would handle both the 7 and 8 series without changes.

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

      +iforce2d +alhazan Thank you both! Works like a charm. :)

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

    Car is not telling the real value, I have noticed that with Google maps speedometer. Basically, especially if it is a European car, the speedometer is forbidden to show values lower than the actual one and to achieve that, the manufacturers pump the values on the speedometer. It is usually around +4 km/h and has 110% upper bound of the real value. The odometer is apparently not fooled by this and it shows the real km value.

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

    Excellent and thank you.

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

    interesting. I would like to add an alarm buzzer to exceeding the speed 50 70 90 130 km. He has already done it?

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

    It's so damn helpful
    That's mate

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

    good work

  • @ajacobs100
    @ajacobs100 5 ปีที่แล้ว +2

    lovely project. i'm getting a drone.

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

    This is so awesome!! I tried TinyGPS but I’m so dumb in programming, tried to modify your script and no luck ) Could you please tell what I have to change to output 4 lines: lat, lon, number of sats and HDOP? Keeping your spinners, if possible. Thank you so much!!!!!

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

    When verifying, I'm getting the following error: "ino:153:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    char* spinner = "/-\\|";"
    Only the first spinner on my OLED is spinning and there's no movement from the others or with speed itself. I'm using a 128x32 i2c instead of the one you are using.
    Any ideas?

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

      Same problem! :(

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

      ​@@tgnidebnu You happen to solve this "only one spinner" problem? Have the same problem.

  • @neophytealpha
    @neophytealpha 5 ปีที่แล้ว

    What if you want to just use a LED display and only want to display speed in MPH?

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

    I need this. WIth giving me a short beep at 60km/h , two short beeps at 70km/h and 2 sec long beep at 80km/h.
    Why? Because I always go above the limit because 50 and 80, or 70 and 100 km/h look exactly the same to me. So beeps would be nice to notify me when I am above the limit.

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

    This video is a life saver for my project. Thanks! Thumb up! :)
    Have you ever tried to change the baud rate with this module? It's funny that with 10Hz and 9.600 baud rate I get the correct ground speed, while with 115.200 baud rate it fluctuates terrible. Do you know what could cause that? Thanks!

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

      try 38400

  • @jfabulas
    @jfabulas 5 ปีที่แล้ว

    Hello! Instead of display the speed on a screen, is it possible to plug an OSD and transmit the speed and others telemetry datas by the video? Thanks buddy

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

    nice work ! about 4km less than the car's so not bad could work on my application! I would like to ask you which GPS module are you using ? would for example a arduino gps neo 7m work ?

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

      yes, I think that's what I was using here

  • @Craigrobbo2k7
    @Craigrobbo2k7 5 ปีที่แล้ว

    Iforce, Is it possible to add a Odometer on this so it can be ued in automotive applications?

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

    Hello, have you tried bigger fonts from u8glib library ?
    'u8g_font_courB24' is only 20 pixels height and for example 'u8g_font_fub30' is 30 pixels height. Some fonts are also in compact version with digits only.

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

      +janko muzykant I see. I thought this was the largest so I didn't look further. Given that I finally got it working though, I think I'll stick with this one, since making the text larger is what was causing the problem :)

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

    awsome. please make a video on fingerprint sensor and rfid combined lock. that would be awsome if u make it.
    thank you in advance

  • @sonhiya
    @sonhiya 5 ปีที่แล้ว

    can you told me what are the name of the parts used in this video?

  • @deanhedin1615
    @deanhedin1615 ปีที่แล้ว

    Great Video. Having a problem. I'm using a Pro Micro. On the Pro Micro "Serial" is the USB serial connection to the PC. The GPS is on Tx0 Rx0 which is and instance of "Serial1" . I've changed your sketch accordingly and I scoped out that the data is being sent/received to the GPS.
    But the Spinner for the GPS update never spins. Display update is fine. GPS module looks exactly like yours.
    I worry that my version of the GPS module is somehow different than yours and somehow the packet formating/decoding is different.
    I'll debug further...

    • @deanhedin1615
      @deanhedin1615 ปีที่แล้ว

      Couldn't get your stuff to work...went back to TinyGPS++. Sorry.
      This is the data that came back from GPS with yours stuff...then froze
      B5620501020006010F38
      B5620501020006010F38
      B5620501020006010F38
      B5620501020006010F38
      B5620501020006010F38
      B5620501020006010F38
      B56205B562050102000608163F

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

      These lines look like the module is acknowledging the CFG-MSG and CFG-RATE instructions, which seems fine.
      B562 header
      0501 message type (ack-ack)
      0200 payload length (2 bytes)
      06 clsID of acknowledged message
      01 msgID of acknowledged message
      0F38 checksum
      The final line is partially corrupted, there should not be multiple B562 so close together.
      If you are starting out with this video being your first usage of the UBX stuff, you might like to get a better foundation from these other videos:
      th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html
      th-cam.com/video/ylxwOg2pXrc/w-d-xo.html
      In particular see the pinned comment of the latter video. There are slightly different sized NAV-PVT message firmwares out there. For this particular sketch you also need to ensure that NAV-PVT is the only message being sent. Other message types (especially those of a shorter size) will cause the header of the NAV-PVT to be skipped, even if it is being output. My code disables the 6 most common NMEA messages that are often enabled by default, but your module may be outputting more, especially if you have already used it with other applications like Ardupilot. It might be easier to just use u-center to set up and save the message output configuration, then your sketch will not be required to do any setup when it starts. It will be much easier to see in u-center what it's doing and to check there is only NAV-PVT being output.

    • @deanhedin1615
      @deanhedin1615 ปีที่แล้ว

      @@iforce2d Thanks for responding. I saw your other videos and I am aware of the PVT message. But keep in mind I have the same gps unit you are using and I used your provided sketch.
      I ended up going with the NeoGPS library which was not so bad as far as memory footprint goes. My big issue was that the ug8lib library was too big. So I found and alternate that works for my 128x32 oled and I am good to go. I may return to explore your stuff later if I run into memory constraints. FWIW I am building a gps speedometer to convert an old British car Smith's speedometer. I think the way forward is to go with a small ESP32. They are just as cheap as the Pro micr/minis and you get so much more of everything. Don't you think?

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

      You might have the same type of module, but that doesn't mean it's running the same version firmware.

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

    Awesome!

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

    im new to arduino and have a project in mind where i can make a light come on when it detects deceleration and iv managed to make a code to get it to work how i want it, but come across a problem. when im going down hill it will make the light come on. do you know how i can fix this

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

      If you're only using lat/lon values from the GPS then I'm not really sure why going downhill would even be detected. There is a velD value which measures vertical speed, make sure you're not using that by mistake. And if all you care about is speed and not direction, you could just use the groundspeed value.

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

    +iforce2d hi, I am planing to make a HUD windshield with arduino and Ublox - NEO6MV2 GPS Module by using 3x7 segment display. Speedometer is the only thing which I need.. What do you think is it possible to make it like this? And also I want to make a mirror effect because the speed should be on windshield.

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

      +Tomas Naujalis I don't see why the arduino+GPS part of it shouldn't be possible, basically that's what I just did in this video. If you are talking about the display, brightness, reflecting, mirrors etc I really don't know. I have a feeling it will be difficult to see in daylight.

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

    what i want to do is i want it to start timing when i get to 50kmh and stop when i get to 150kmh how can i do this?

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

    wow!!! I want to do a speedo for my car, which is the part number or model of the GPS? congratulations, is a good project and it works wonderful.

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

      goo.gl/9XzOVX
      Looks like it's sold out. This one is slightly better, but has long wires on it, not good for putting on a quadcopter, but maybe ok for in your car goo.gl/kF6Ucr

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

      Thank you very much :)

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

    i learn this video and do it myself,but how i zoom the font?i want more larger font in speed display,tks!

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

      The U8GLIB has larger fonts you can select in the screen section, but if you go too large you may run out of RAM in your arduino. Look in the library files for the U8GLIB to see what font names to use.

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

    Hi, how many time for the GPS signal being avaible for?

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

      I don't understand the question. You can use GPS as long as you want to, it doesn't cost anything. If you're asking how long does it take to acquire a lock, usually about 5 minutes for a 'cold start' (not used for a long time). Typically within 30 seconds for a warm start. This is outdoors of course.

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

    Hi
    iforce2d. Would i need a particular ublox gps or will this code work for most modules? 6, 7, 8 series?
    Thanks

    • @tjones99
      @tjones99 4 ปีที่แล้ว +1

      His code works with NEO-7M directly I believe. Code changes needed to use NEO-6M (I just used a NEO-6M) and I think maybe just a small structure change to use an M8N module.

  • @888tonco
    @888tonco 3 ปีที่แล้ว

    is it possible to record and save the traveled distance with it?

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

      Easiest way would probably be to use an openlog module, which takes UART input and writes to SD card.

  • @jacklaliberte6576
    @jacklaliberte6576 4 ปีที่แล้ว +1

    what is the gps module specifically called im doing a science fair project on your video and i need to know

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

      I believe the module he was using was the UBLOX Neo-7M module. I happen to have a UBLOX Neo-6M module hanging around that I used but had to do major re-write to work with NEO-6M because of the different UBX messages it outputs (no NAV-PVT message that he uses).

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

      @@tjones99 Can I get a copy of the changes that you made for the UBLOX Neo-6m as I'm using that model. I've finally got the OLED SH106 with the 'new' U8g2lib. I've cut down the refresh rate to 5hz, now having to investigate NMEA code. Any help appreciated

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

      @@chuckwilcox6997 Happy to share everything I have done, how do you want me to send it to you.

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

      @@tjones99 Hi Terry, Thank you for your offer. The only way I can think of without releasing my email details here, is possibly for you to post something on your youtube channel, even if its a couple of screenshots, I'll retype the info from pictures. Unless you have a different idea? Great Home picture on your TH-cam, regards Chuck from Australia

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

      @@tjones99 Thanks

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

    Hi, I like, very good job. :)

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

    Hello Sir, i'm newbie, how can i replace the input pin and the screen output pin? I use Leonardo board. Tks.

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

      This screen uses I2C, so you'll need to use the SCL and SDA pins. For leonardo I think this layout: duino4projects.com/wp-content/uploads/2013/04/Ardunio_leonardo_pinout.jpg

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

    which gps module have you used ?

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

    hello friend can i use Ublox NEO-M6N gps module?

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

    Hey! Thanks a lot for the video. It's very useful to me.
    I've downloaded your sample and flashed it to an Arduino Nano with the same display you have, and an Ublox NEO-M8N.
    It seems that there is some kind of problem with the checksum. The "processGPS()" function never returns true, so it never updates the data. If I bypass the checksum control, it works, but sometimes I get weird values though.
    Any ideas of what could be the problem?

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

      Ok, I think I found the source of the problem, but I still can't make it work. It seems like the M8 has a different UBX-NAV-PVT message:
      www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_(UBX-13003221)_Public.pdf
      I modified the structure according to the datasheet by following your steps, but the checksum still returns false.
      This is the new structure: pastebin.com/u5MjgLk7
      Am I missing something? Do I have to modify anything other than that in your example?
      Thanks!

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

      I don't see any discrepancy between the pdf document and the struct you have. Perhaps the module you have is not running the firmware version of that document, I think the firmware can be flashed and changed similar to arduino etc. fwiw I had NAV-PVT working with a neo7M in the sketch for this project (the few struct members right at the end are slightly different to yours):
      th-cam.com/video/Lphe8Vih5VY/w-d-xo.html
      If you disable all messages except for NAV-PVT and simply println the bytes to the serial monitor, you should be able to see the packet start markers (the two bytes μb) and from that you'll know how long the packet is. These might help:
      th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html
      th-cam.com/video/ylxwOg2pXrc/w-d-xo.html

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

      Thanks a lot! I'll take a look at that.
      I've subscribed to your channel because I like your videos a lot. Keep up the good work!

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

      I finally found it!
      The problem was that the "reserved1" field is actually 6 bytes long. So I added "reserved1", "reserved2" and so on. Now it works!
      Another thing I found is that my module has version 2.01 on it, and when I tried to update it, I got an error about the flash memory. Doing a little research I found out that my module is not original and it does not even have a flash memory, so no way to update it.
      Thanks for your help and I hope this helps someone with the same problems.

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

      Oh yeah, so there was a discrepancy between your code and the pdf, I missed it too :) Glad you got it working.

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

    thank you!!!!

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

    Hi, how are you?
    Please, can you help me?... I need how to do the speedometer, i know than your code work's.--- but i dont have a OLED display... i just have a 16X2 LCD.... please give me a hand

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

      I have no idea. Never used one of those and I don't have one.... I'm sure there will be plenty of documentation and examples on the internet somewhere.

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

      Well yeah, but in my case the only examples just say about gps data.... And i don't need all data.... Just long and lat maybe.... And the most important... Speed... In real time.... I'm a racing driver.. I have a kart 125 cc and this is a personal proyect... Because i need to know my performance.... Record in a ad car's and after see that information in my laptop.... I'm a mechanical engineer.... This product are really in know for me

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

      _lh3.googleusercontent.com/hLoJJIrF3uRAWFlKaYTnmPK_PT9KSAmVUmdOaLmMMQAlHDB9DDYIEKatFtW_6rc5Q0jSh-4axJw_

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

      That's great, but I still have no idea. Are you expecting me to do research for a LCD screen that I don't own, and will probably never use? Try typing in the model of that LCD into google... with 'arduino' etc

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

      That link gives me error 404

  • @arifborhani7867
    @arifborhani7867 5 ปีที่แล้ว

    I'VE been used same coding to make this project, but the speed not working well. Can you help me?

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

      No, not with that level of detail.

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

    why on my satellite numbers stay on 0?

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

    which camera did u use for the recording of the speed that orange one ?

  • @23tomi23
    @23tomi23 5 ปีที่แล้ว

    Hello, which gps model version did you use in this video and will the code work for www.flyingtech.co.uk/electronics/mini-ublox-neo-m8n-gps-cleanflight-betaflight-inav

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

      Terry Jones
      1 second ago
      I believe the difference is the structure for the M8N module is larger than the NEO-7M . If you look at the docs for the NEO-7M (www.u-blox.com/sites/default/files/products/documents/u-blox7-V14_ReceiverDescriptionProtocolSpec_%28GPS.G7-SW-12001%29_Public.pdf) and the M8N (www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_(UBX-13003221)_Public.pdf) and specifically compare the structure for NAV-PVT you will see that NEO-7M is 84 bytes and M8N is 92 bytes. Adding more reserved at the end of the NAV_PVT structure in his code should solve the issue..

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

    podris compartir el sketch y conexiones? gracias

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

    I was looking to build the same thing to display my speed on my 1/8 buggy which has a FPV camera. I was using my smart to do this ...lol

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

      If you want the speed displayed on the FPV screen properly, (along with a lot more information as well) you could use a flight controller like we use for planes/drones. Eg. omnibus f4 pro, has OSD onboard. Would give you something like this result: th-cam.com/video/dIvC4ZB88h0/w-d-xo.html

  • @seblebarge
    @seblebarge 5 ปีที่แล้ว

    Hello,
    I'd like to use it with 10Hz. Baudrate seems to be 9600, how to change baudrate to 115200 for exemple ?
    Thanks.

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

      th-cam.com/video/ylxwOg2pXrc/w-d-xo.html
      9600 is plenty for 10Hz though. Especially if you're gonna attempt software serial, nothing to be gained by making the connection faster.

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

      oops... changing the baud rate might not be possible by the method shown in that video. Could be useful to watch anyway though...

    • @seblebarge
      @seblebarge 5 ปีที่แล้ว

      @@iforce2d I would like to use your code with 7 segments display...
      Can you explain lines I have to change please ?
      Regards.

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

      @@seblebarge Thats a big change, not just a couple of lines of code. This uses an I2C OLED display and the OLED library. In theory you could use something like the Adafruit 7 segment (www.adafruit.com/product/879) and their library but you are doing some pretty significant changes.

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

    Hi. My gps module GY-NEO6MV2 didn't work.Do you have any idea why ?

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

      No. This might help: th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html

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

    Awsome work but I tried to imagine you running through your backyard, me watching you as an uninvolved person... xDDD
    Car speedpos are always reading a bit more, its around 5-8% I believe, they have to.

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

    I just wanted to get it on my GY-NEO6MV2, it really is too bad to understand and translate this work. I would like to know if you can make our lives easier by leaving a library ready for GY-NEO6MV2. with the same characteristics of this work. great

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

      th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html

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

      Thank you very much for your attention, thank you in advance.

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

    Hi...i loved the video...
    And I'm making one...
    But i only have NEO 6M GPS module..
    So it's not working..
    What do i need to change in the code...plz help.

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

      These videos should help:
      th-cam.com/video/TwhCX0c8Xe0/w-d-xo.html
      th-cam.com/video/ylxwOg2pXrc/w-d-xo.html

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

      iforce2d
      Hey...i tried...but i think I'm bit confused...
      If you can modify your code to NEO 6M
      It would be great full..Can you help?
      My email is...
      pushpitha.munasinghe@gmail.com

  • @gabrielsteiner1749
    @gabrielsteiner1749 5 ปีที่แล้ว

    how would i flip/mirror the image on the display?

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

      No idea sorry.

    • @gabrielsteiner1749
      @gabrielsteiner1749 5 ปีที่แล้ว

      is it possible?
      please i really need it

  • @fanciestmoss826
    @fanciestmoss826 5 ปีที่แล้ว

    how do I change it to miles per hour(MPH)?

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

      www.google.com/search?q=kph+to+mph

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

    serves a GPS module NEO-6M ?

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

      The NAV_PVT message is only available from 7 series onward. You can use other messages to get the same information though. The UBX settings video linked to in the description might be helpful.

  • @Rova832
    @Rova832 ปีที่แล้ว

    great video! I learned alot.
    but can you reuplad the scetch? i cant get it.

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

      You can find all my sketches here
      www.iforce2d.net/sketches
      But TH-cam likes to screw up links, so I will type that again without the punctuation:
      www dot iforce2d dot net slash sketches

    • @Rova832
      @Rova832 ปีที่แล้ว

      @@iforce2d thx

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

    I try but i get this
    GPS_Speedometer:166: error: 'updateScreen' was not declared in this scope-
    can you help me?

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

      try moving the updateScreen function to be before the loop function.
      Or you could add a forward declaration for it
      en.wikipedia.org/wiki/Forward_declaration

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

    I have searched the module's name il your other videos description, but I haven't found it :/

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

      +Walkofsoul here are the things I'm using in this video:
      arduino pro mini: goo.gl/dICDYm
      GPS module: goo.gl/EhTvHT
      OLED screen: goo.gl/NhBCAY

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

      Thank you ! By the way I use your nrf24l01 algorithm for my quadcopter and it works perfectly !

  • @MrPoire-xy6xf
    @MrPoire-xy6xf 6 ปีที่แล้ว

    Can you give me the link on the gps Pls thank nice video

  • @John-pr2jg
    @John-pr2jg 8 ปีที่แล้ว

    Would the code work with any Gps module?

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

      No, it needs to be a u-blox module. Most of the commonly available ones are u-blox.

  • @structural-repairs
    @structural-repairs 5 ปีที่แล้ว

    Thanks for the vid. Please can I buy one of these off of you?

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

    Hello bro,my gps not run,spiner gps update not runing, please help me

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

    Any chance you can share the source code for this?

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

      ??? link is in the description...

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

    Hi , I have tried your code with a nano and a 6n gps module and for the life of me I can not get it to work. Whats the secret???

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

      That's very vague, try asking a better question :)

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

    Hi, I built it with a neo m8n and I am experiencing a very weird delay (5 or 6secs). Does someone know the reason for that? And where did you get your neo7 from?

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

      I had a similar problem when working on the 'sbusmixer' not long ago (although it was about 2 sec delay), but I can't remember what the cause was or how I fixed it. If I remember I'll let you know. I got the neo7 from Banggood about ten years ago, they've pretty much been superseded by m8n which is a better performing module for the same price.

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

      @@iforce2d thank you :) I couldn't find anything on the internet and I thought that it might be caused by my gps module.

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

      @@iforce2d Did you remember it yet? Otherwise I might go for the arduino or ublox forums, because I really have no clue why this is happening.

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

      @@iforce2d i found the issue. The baudrate of 9600 is too low

    • @marosuperstar
      @marosuperstar ปีที่แล้ว

      @@guyus5469 I have the same problem and the same module, could you share the sketch?

  • @fastw3748
    @fastw3748 5 ปีที่แล้ว

    My gps module cant find any gps

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

    Hi.Does it work on arduino uno ?
    Thank you.

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

      Yes, uno and pro-mini have the same processor.

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

      Ok, thank you. And regarding odometer. Is it possible in this sketch ?

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

      distance = speed x time

  • @INVINET
    @INVINET 5 ปีที่แล้ว

    Parts List? :D

  • @fastw3748
    @fastw3748 5 ปีที่แล้ว

    Can you send me library

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

    Just me having problems watching this clip? It stops rapidly after 13:17.

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

      +MrBushman yeah me too, in Chrome. It's ok in Firefox... no idea why.

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

      +iforce2d Seems to be a HTML5 videoplayer cache problem. Works with Flash player on IE. Just need to find where the HTML5 player cache is and empty it. :)

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

    greatshow! but how to change font in this sketch?(also the font size) thanks!!!

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

      github.com/olikraus/u8glib/wiki

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

      Thanks! void draw() {
      //u8g.setScale2x2(); don't do this!
      u8g.setFont(u8g_font_courB24);
      u8g.drawStr( 36, 45, speedBuf); When I changed Font to others ,The speed stuck in 20km/h(seem like offline) why?

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

      I think the larger fonts require more memory. I have often seen my program stop working just because of a font size change.

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

      But “CourB24”Font data size is10502 . “fur42n”just need 2170 T-T Why....

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

      I think you're asking the wrong person :) But at a guess, I would say that the "size" you are talking about is for the points to describe the text, not the size of the on-screen memory required to display it. These are not the same thing.
      For example, I could tell you to draw a line from points (0,10) to (10,10). It takes me four numbers to describe the line to you, and the on-screen memory used is 10 pixels.
      If I said instead draw from (0,10) to (50,10) that's still four numbers to describe but now 40 pixels on-screen. Just a guess...

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

    I'm really interested in making one of these but I have no experience with Arduino. Do you have a parts list you could recommend to me so I can build one to install in to a car? Thank you!

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

      Arduino pro mini: goo.gl/xin02G
      OLED screen: goo.gl/YcXosi
      GPS module: goo.gl/9gxc6J
      You will also need an FTDI adapter to upload the program to the arduino: goo.gl/RbfWpc

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

      If I wanted to use a better GPS chip like the Adafruit ultimate GPS, would it be possible? Again, I have absolutely no experience with this...

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

      Any ublox chip from the 7 series onward should work with my code, which I think would exclude the adafruit one since it appears to be non-ublox. I'm not so sure the adafruit one is better anyway. It has some potentially nice features like a connection for an external antenna, but the m8n I linked to does such a good position fix I think it would be hard to beat. It also has a compass if you ever want to use it for GPS features on your quadcopter :)

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

      Cool. I'll look in to getting the one you linked! I'll also let you know if I run in to any issues. Thanks for the quick replies.

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

      How would you recommend configuring it to be powered by a car?

  • @cristestolvads1602
    @cristestolvads1602 4 ปีที่แล้ว +1

    GPS driver's!!

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

    OSD? Nah, what’s that?

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

      On-screen display

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

    Hi ! Can you help me with this problem ? I post a video drive.google.com/open?id=0ByPT1E7FC_MdTVh4X1d0V2hHVHM
    I connect it using arduino uno and it is not responding.