Тёмный

Arduino GPS speedometer 

iforce2d
Подписаться 76 тыс.
Просмотров 86 тыс.
50% 1

Sketch: www.iforce2d.ne...
Video about UBX settings: • UBX binary protocol, e...

Развлечения

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 249   
@havoc987
@havoc987 5 лет назад
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
@johnekberg2884
@johnekberg2884 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.
@MicroRCFiend
@MicroRCFiend 8 лет назад
Realtime readout of the mph while flying is well cool. I'm just glad you're using your powers for good...
@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!
@tgnidebnu
@tgnidebnu 7 лет назад
I love this speedometer! It seems very fast! Thanks for uploading and sharing!
@valentinern7229
@valentinern7229 5 лет назад
ferme là
@ishigamiyu1991
@ishigamiyu1991 Год назад
I love this channel so much
@rubiconnn
@rubiconnn 7 лет назад
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!!! ^-^
@RichPlakas
@RichPlakas 8 лет назад
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
@jaakkawinterroadofficial
@jaakkawinterroadofficial 6 лет назад
Amazing 60fps video i liked!
@squarepeer
@squarepeer 8 лет назад
I like it. Put it in OSD and everyone will want. Although your dashboard was groovy too.
@OUTLAW199317
@OUTLAW199317 7 лет назад
Ha didnt realize it was km/hr when i saw him taking the corner at 100...
@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!
@jameslamb4573
@jameslamb4573 8 лет назад
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.
@freddiesnijman
@freddiesnijman 8 лет назад
"You may like to retain your max speed function and display it in a corner of the screen???" I have just done so successfully.
@hoggif
@hoggif 8 лет назад
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
@BeginnersTech314
@BeginnersTech314 8 лет назад
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
@diegodurand6159
@diegodurand6159 7 лет назад
Muy Bueno, y hasta quizas con un poco mas de codigo hasta se podria ver la altura a la que esta volando.! Very Nice
@tamarathompson9418
@tamarathompson9418 5 лет назад
Legend . I have one of these modules and looking for a use for it
@danieleconserva279
@danieleconserva279 2 года назад
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.
@tzq33tdq
@tzq33tdq 8 лет назад
car speedos read 5% over or around there according to my local car mech, but he also said all cars are different
@CyberdriveAutomotive
@CyberdriveAutomotive 3 года назад
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!
@DynoRC
@DynoRC 2 года назад
It's so damn helpful That's mate
@freddiesnijman
@freddiesnijman 8 лет назад
Excellent and thank you.
@jimkryzak811
@jimkryzak811 4 года назад
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 года назад
i have the same issue
@kassendek4777
@kassendek4777 4 года назад
I also have the same problem. I am using a GOOUUU neo6m0001
@michaelbrannelly2316
@michaelbrannelly2316 3 года назад
@@kassendek4777 U need at ,east Neo7M 6m doesn't support PVT
@ShirishJadav162
@ShirishJadav162 3 года назад
good work
@ajacobs100
@ajacobs100 5 лет назад
lovely project. i'm getting a drone.
@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.
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.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.
@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.
@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
@bartplondon
@bartplondon 3 года назад
Awesome!
@malcox1
@malcox1 5 лет назад
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.
@onclefly8450
@onclefly8450 8 лет назад
Hi, I like, very good job. :)
@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?
@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.
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ylxwOg2pXrc.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.
@stanhsiao6892
@stanhsiao6892 3 года назад
cant see the sketch, what kind of gps module you used? and what library for it? Thank you
@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!!!!!
@bolivarlinux
@bolivarlinux 3 года назад
podris compartir el sketch y conexiones? gracias
@dmitrigorchev7532
@dmitrigorchev7532 4 года назад
thank you!!!!
@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.
@neophytealpha
@neophytealpha 5 лет назад
What if you want to just use a LED display and only want to display speed in MPH?
@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
@gabefpv3624
@gabefpv3624 8 лет назад
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 лет назад
+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. :)
@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
@unalfaruk
@unalfaruk 7 лет назад
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 лет назад
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
@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
@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 лет назад
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 :)
@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
@asrulasraff2457
@asrulasraff2457 3 года назад
why on my satellite numbers stay on 0?
@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 года назад
yes, I think that's what I was using here
@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.
@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,
@mikeryder9982
@mikeryder9982 7 лет назад
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 лет назад
Same problem! :(
@Mustsed
@Mustsed 3 года назад
​@@tgnidebnu You happen to solve this "only one spinner" problem? Have the same problem.
@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 :)
@Craigrobbo2k7
@Craigrobbo2k7 5 лет назад
Iforce, Is it possible to add a Odometer on this so it can be ued in automotive applications?
@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.
@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?
@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.
@Rova832
@Rova832 Год назад
great video! I learned alot. but can you reuplad the scetch? i cant get it.
@iforce2d
@iforce2d Год назад
You can find all my sketches here www.iforce2d.net/sketches But RU-vid 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
@888tonco
@888tonco 3 года назад
is it possible to record and save the traveled distance with it?
@iforce2d
@iforce2d 3 года назад
Easiest way would probably be to use an openlog module, which takes UART input and writes to SD card.
@jacklaliberte6576
@jacklaliberte6576 4 года назад
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 RU-vid, regards Chuck from Australia
@chuckwilcox6997
@chuckwilcox6997 4 года назад
@@tjones99 Thanks
@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.
@sonhiya
@sonhiya 5 лет назад
can you told me what are the name of the parts used in this video?
@manjulakumara5772
@manjulakumara5772 7 лет назад
hello friend can i use Ublox NEO-M6N gps module?
@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.
@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 !
@RSMAQ
@RSMAQ 7 лет назад
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 лет назад
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
@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
@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 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.html
@guboss360
@guboss360 6 лет назад
Thank you very much for your attention, thank you in advance.
@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): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Lphe8Vih5VY.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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ylxwOg2pXrc.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 лет назад
Oh yeah, so there was a discrepancy between your code and the pdf, I missed it too :) Glad you got it working.
@structural-repairs
@structural-repairs 5 лет назад
Thanks for the vid. Please can I buy one of these off of you?
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ylxwOg2pXrc.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
@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
@MrPoire-xy6xf
@MrPoire-xy6xf 6 лет назад
Can you give me the link on the gps Pls thank nice video
@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 года назад
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.
@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 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ylxwOg2pXrc.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.
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dIvC4ZB88h0.html
@aryanmahindra8707
@aryanmahindra8707 4 года назад
which gps module have you used ?
@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 лет назад
+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.
@aaronmartin8846
@aaronmartin8846 3 года назад
Any chance you can share the source code for this?
@iforce2d
@iforce2d 3 года назад
??? link is in the description...
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TwhCX0c8Xe0.html
@ardabilpatra602
@ardabilpatra602 7 лет назад
Hello bro,my gps not run,spiner gps update not runing, please help me
@fanciestmoss826
@fanciestmoss826 5 лет назад
how do I change it to miles per hour(MPH)?
@iforce2d
@iforce2d 5 лет назад
www.google.com/search?q=kph+to+mph
@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 лет назад
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
@INVINET
@INVINET 5 лет назад
Parts List? :D
@cristestolvads1602
@cristestolvads1602 4 года назад
GPS driver's!!
@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. :)
@gabrielsteiner1749
@gabrielsteiner1749 6 лет назад
how would i flip/mirror the image on the display?
@iforce2d
@iforce2d 6 лет назад
No idea sorry.
@gabrielsteiner1749
@gabrielsteiner1749 6 лет назад
is it possible? please i really need it
@sathyakumar2523
@sathyakumar2523 8 лет назад
which camera did u use for the recording of the speed that orange one ?
@iforce2d
@iforce2d 8 лет назад
Yeah, Runcam2
@sathyakumar2523
@sathyakumar2523 8 лет назад
thank you :)
@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..
@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.
@lukasitox
@lukasitox 8 лет назад
serves a GPS module NEO-6M ?
@iforce2d
@iforce2d 8 лет назад
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.
@fastw3748
@fastw3748 5 лет назад
Can you send me library
@MCervi42
@MCervi42 3 года назад
OSD? Nah, what’s that?
@iforce2d
@iforce2d 3 года назад
On-screen display
@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?
@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
@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...
@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.
Далее
Arduino GPS speed logger
14:25
Просмотров 14 тыс.
Living life on the edge 😳 #wrc
00:17
Просмотров 5 млн
DIY GPS Speedmeter
8:40
Просмотров 4,7 тыс.
DIY Laser Image Projector (100ft+ Range!)
20:08
Просмотров 326 тыс.
Weeny solder bot (LinuxCNC on A4 paper size)
58:03
Просмотров 98 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
Непонятка 🤣
0:24
Просмотров 4,4 млн