How to Build a GPS Guided Robot - Part 6 - The Code

  Рет қаралды 14,021

EZtech

EZtech

Күн бұрын

Пікірлер: 91
@long4723
@long4723 3 жыл бұрын
i dont know error, please help me 'class HMC5883L' has no member named 'begin' // Compass Wire.begin(); // Join I2C bus used for the HMC5883L compass compass.begin(); // initialize the compass (HMC5883L) compass.setRange(HMC5883L_RANGE_1_3GA); // Set measurement range compass.setMeasurementMode(HMC5883L_CONTINOUS); // Set measurement mode compass.setDataRate(HMC5883L_DATARATE_30HZ); // Set data rate compass.setSamples(HMC5883L_SAMPLES_8); // Set number of samples averaged compass.setOffset(0,0);
@bogdanmihai82
@bogdanmihai82 4 жыл бұрын
Thank you so much for this series, it's verry helpfull.
@3dprintingwithdanny31
@3dprintingwithdanny31 4 жыл бұрын
I’m using arduino uno on a rc car and I’m basically wanting a return to home function. instead of using Bluetooth is there a way I can set an array with cords like (30.0000,-80.0000) that will guide itself to from what ever cords the rc car is at to the cords Ive set in an array. I have a compass and using neo-6m gps module with Hobbyking 10a esc, ultrasonic sensor and arduino uno. I’ll be happy to share my code I have for autonomous collision avoiding rc car if you would like. Just looking for an upgrade. Also thanks for your code, you made it very easy to understand!
@simoncyber2049
@simoncyber2049 3 жыл бұрын
Can you share the code ?
@soumitradey8208
@soumitradey8208 5 жыл бұрын
Excellent project
@EZtech
@EZtech 5 жыл бұрын
Thanks
@limitless2.011
@limitless2.011 4 жыл бұрын
@@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@paulsharon4174
@paulsharon4174 Жыл бұрын
@@EZtech I have an error, ' manual ' was not declared on this scope. Tell me how to solve this error?
@paulsharon4174
@paulsharon4174 Жыл бұрын
@EZtech I got an error , 'manual' was not declared in this scope. I selected the port and board. But I can't solve this error. Please say how to solve this?
@jevedasa4
@jevedasa4 4 жыл бұрын
Thank you i will try that i will let you know
@adityajadhav3115
@adityajadhav3115 9 ай бұрын
@Eztech How are you running multiple sketches in a single sketch? Please help as I am new to this.
@Benz93x
@Benz93x 4 жыл бұрын
I honestly do not understand how I am getting errors in the bluetooth code, compass etc without touching anything in the code? Main code says 'startup' was not declared in this scope........ Why?
@Mrackal1
@Mrackal1 6 жыл бұрын
Love the series of videos, how can I change this code to work with IR remote and receiver instead of the Bluetooth module?
@explainplease2286
@explainplease2286 6 жыл бұрын
Sir..plz tell me...is given code is really working??
@simoncyber2049
@simoncyber2049 3 жыл бұрын
The code isn't working, to many errors
@kilorenmai541
@kilorenmai541 4 жыл бұрын
hello I would replace motor by a rf 433mhf arduino module how I should take thank's in advance
@MrNams
@MrNams 3 жыл бұрын
I have one doubt, can't we use ardupilot?it already has mission planning?well stable code.
@bharateeshananth3808
@bharateeshananth3808 Жыл бұрын
Which sketch to finally upload to the arduino mega? There are so many sletches here. Please help.
@saranyav-r3p
@saranyav-r3p Жыл бұрын
how the destination gps location is obtained by robot? i read the code multiple times and couldnt find the details. My doubt is , in the set waypoint array the gps location of robot is saved. but how did thatmake sense because the destination data should be obtained from the android device right?
@MANTechnoChannel
@MANTechnoChannel 4 жыл бұрын
sir..i can do build coding and MIT apps base on you guied from you video 1-6.tq so much..but.now i have problem how to do set waypoint..please help me sir..tq
@leolansangan2505
@leolansangan2505 2 ай бұрын
i want to use two L298N what are code files need modify?
@limitless2.011
@limitless2.011 4 жыл бұрын
@EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@Alex-mm5zj
@Alex-mm5zj 3 жыл бұрын
did you solve the problem?
@Alex-mm5zj
@Alex-mm5zj 3 жыл бұрын
i have the same issue, and the problem seems to be at compass, if i comment the line for comapss the bluetooth app is working, what kind of compass are you using?
@simoncyber2049
@simoncyber2049 3 жыл бұрын
Yeah I have same problem here
@simoncyber2049
@simoncyber2049 3 жыл бұрын
Can you share your code ?
@nooknorth268
@nooknorth268 2 жыл бұрын
@@simoncyber2049 Hi, just picked up your comment, I have two bots working ok from a couple of years ago, tried to build a new set which like you would not run. Just changed the compass mast from the old one and guess what, it works! all are GY-273, must be the compass itself. Will order another and hope.
@delacruznicoleanne7869
@delacruznicoleanne7869 8 ай бұрын
I'm having a problem with the app itself. The control for movement like forward, reverse, left, and right are not working. The other buttons such as connect bt and disconnect works just fine. I hope someone can help
@electromind4183
@electromind4183 2 жыл бұрын
While I am compiling the code is showing Serial1 is not defined in the scope
@valii2427
@valii2427 2 жыл бұрын
Has anyone encountered this issue? when I press the gps info button it shows me that my location is 5000+ km away from the robot. Any solution?
@akbarmaulana1197
@akbarmaulana1197 3 жыл бұрын
'class HMC5883L' has no member named 'begin' what must i do? please help
@shivamdeshmukh3612
@shivamdeshmukh3612 Жыл бұрын
Can we use Arduino Uno instead of mega
@sethupati7013
@sethupati7013 3 жыл бұрын
Please tell how to set waypoints
@chuanweifoo8343
@chuanweifoo8343 4 жыл бұрын
what is the world is that getGPS and getCompass coming from? i cant seem to see those functions in the libraries what am i missing?
@mj-m94
@mj-m94 4 жыл бұрын
They are defined as void in GPS_Compass.ino
@pradeeshnavin10
@pradeeshnavin10 Жыл бұрын
We want to upload all the code
@temeashascott
@temeashascott 3 жыл бұрын
@EZtech. I get errors when uploading the code in audrino. Is that normal?
@EZtech
@EZtech 3 жыл бұрын
No it's not normal, make sure you selected the Arduino Mega board in the IDE, and installed all the necessary Libraries?
@rejasnambiar362
@rejasnambiar362 Жыл бұрын
Hello, Nice video, but there is an issue with me , compass settings is not been shown, How to install the i2cdev in Arduino uno it is showing error while installing the i2cdev in ide , In the app notification windows noting is been showed up after Pressing Set heading , Please give solution to this
@EZtech
@EZtech Жыл бұрын
You really can't use the arduino uno. You really need need to use the mega; otherwise, the wiring and programming would need to be modified.
@rejasnambiar362
@rejasnambiar362 Жыл бұрын
Ok thanks for the reply , I also tried with Arduino mega
@rejasnambiar362
@rejasnambiar362 Жыл бұрын
With same , I only removed the ping sensor , rest all are same , without I2C can I do ? Is wire.h is sufficient, If I press the button "Forward" or "Reverse" in the app will the car going to move ?, In my case the car is not moving, mega has been used
@simoncyber2049
@simoncyber2049 3 жыл бұрын
Anyone have updated the code ? Please share it
@ferasbukhari6643
@ferasbukhari6643 5 жыл бұрын
can i use it with arduino uno using only 2 motor with L298n driver ???
@EZtech
@EZtech 5 жыл бұрын
You could use the L298n, but you would need to change alot of the wiring and the code. The Arduino Mega is a must. It's much easier to build it as is and make modifications later.
@ferasbukhari6643
@ferasbukhari6643 5 жыл бұрын
@@EZtech thanks
@navadeep025
@navadeep025 4 жыл бұрын
did you do with UNO?
@juliocesavaz
@juliocesavaz 4 жыл бұрын
feras, did it work for you? I'm also trying to modify the code to use the L298n, but it doesn't work. Could you share your code? Thank you.
@limitless2.011
@limitless2.011 4 жыл бұрын
@@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@wailmaghazi854
@wailmaghazi854 4 жыл бұрын
Dear sir, i assembled the robot exactly as your instructions , i uploaded the code and everything but nothing works with the app, i connected the bluetooth and everything but nothing in the controls working what could be the issue?
@Alex-mm5zj
@Alex-mm5zj 3 жыл бұрын
did you solve this problem?
@valii2427
@valii2427 2 жыл бұрын
did you solve?
@daisyfernandez7870
@daisyfernandez7870 6 жыл бұрын
Can i have the link to download the I2Cdev library? I already have one but not sure if is the right one, I'm trying to compile but gives me an error "the folder doesn't have a valid library", also I'm using an arduino nano.
@EZtech
@EZtech 6 жыл бұрын
Daisy Fernández It will not work with the nano, it doesn't have enough serial ports. Select the Arduino mega and try compiling again.
@daisyfernandez7870
@daisyfernandez7870 6 жыл бұрын
EZtech it doesn't work "fatal error: I2Cdev.h: No such file or directory #include Invalid library"
@EZtech
@EZtech 6 жыл бұрын
Daisy Fernández Try commenting out the include statement with I2C in it and recompile the code, I am trying to remember if this library was needed at all. If for some reason it doesn't work here is a link to the library... github.com/jrowberg/i2cdevlib
@daisyfernandez7870
@daisyfernandez7870 6 жыл бұрын
EZtech didn't work out, gives me the same error but with the HMC5883L library. I downloaded the library from the link and nothing 🤔 i tried to copy the library's inside of the arduino libraries folder but it didn't work out, have you ever had this kind of problem?
@EZtech
@EZtech 6 жыл бұрын
Daisy Fernández The hmc5883l library that is listed inside the Arduino ide auto install library is the wrong one. You will need to manually delete any hmc5883l libraries that are not the one I refer to; otherwise, you will get compile errors. Be sure to delete any other compass libraries.
@811ash
@811ash 6 жыл бұрын
The car receives GPS Signal however it doesn't follow the GPS no matter how much I try :/ What could be off?
@soumitradey8208
@soumitradey8208 5 жыл бұрын
Have you completed this ? Thanks
@navadeep025
@navadeep025 4 жыл бұрын
How did you upload all those pieces of code ? only 1 code can be uploaded at a time right?
@navadeep025
@navadeep025 4 жыл бұрын
how to upload all those codes to arduino? only 1 is allowed a t a time.
@bharateeshananth3808
@bharateeshananth3808 Жыл бұрын
Hey, I too have the same question. Did u find how to do this?
@mrrajirajeevan1403
@mrrajirajeevan1403 2 жыл бұрын
i had issue GPS_Guided_Robot:100:3: error: 'Serial1' was not declared in this scope Serial1.begin(9600); // Serial 1 is for Bluetooth communication - DO NOT MODIFY - JY-MCU HC-06 v1.40
@mrrajirajeevan1403
@mrrajirajeevan1403 2 жыл бұрын
how can i correct this issue
@Amit-ih8mn
@Amit-ih8mn 5 жыл бұрын
i have an error. it says " Startup was not declared in this scope" . what should i do?
@EZtech
@EZtech 5 жыл бұрын
Did you select the Arduino Mega as your board? This will not work with the Uno or other boards
@navadeep025
@navadeep025 4 жыл бұрын
How did you upload all those pieces of code ? only 1 code can be uploaded at a time right?
@limitless2.011
@limitless2.011 4 жыл бұрын
@@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@jeveda1217
@jeveda1217 4 жыл бұрын
hello i was surfing the web and i found this project and is very interesting. i got all the parts necessary, but when i download the arduino code it get stuck on ''''''Startup' was not declared in this scope,,,,,, i even tried on the new arduino web editor can you please help thanks ps. i saw this at instructables.com/
@EZtech
@EZtech 4 жыл бұрын
Are you sure you selected the Arduino Mega in the Arduino IDE under Tools/ Board? Also make sure you have all the program downloaded, you should see several tabs...Startup, Steering, Bluetooth, etc. Copy all the files from GitHub and place them in a single folder.
@navadeep025
@navadeep025 4 жыл бұрын
How did you upload all those pieces of code ? only 1 code can be uploaded at a time right?
@limitless2.011
@limitless2.011 4 жыл бұрын
@@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@nooknorth268
@nooknorth268 2 жыл бұрын
@@limitless2.011 Just found a possible solution, On first page of program select out all "compass" items. reload and try bluetooth controller. Found the compass chip was blocking the run. (been trying to find the fault for a year!).
@prathameshthube4130
@prathameshthube4130 5 жыл бұрын
Can I use this in arduino uno
@EZtech
@EZtech 5 жыл бұрын
No, not really
@limitless2.011
@limitless2.011 4 жыл бұрын
@@EZtech @EZtech I need your help. I have done everything step by step. I have made the circuit, and calibrated the compass, and uploaded the code. And did everything which you told in this video. But the problem is that, I never got any output whenever I press any button in the app. Even the connection is proper and code is properly uploaded, also compass has been calibrated perfectly but nothing works with the app, whenever I press any button.
@alfredogallardo5917
@alfredogallardo5917 6 жыл бұрын
I try to run your code but it tells me Serial1 not declared in this scope... and i dont know what to dooo, Someone can help me ??
@EZtech
@EZtech 6 жыл бұрын
Alfredo Gallardo Are you using the Arduino mega? The code needs more than one serial port. Also, make sure you are selecting the Arduino Mega when compiling the code in the Arduino IDE.
@alfredogallardo5917
@alfredogallardo5917 6 жыл бұрын
@@EZtech yeap, im using Arduino mega, selecting it in the sketch and the right port tooo, i dont know what its wrong. Im running the program with all the windows like you are doing in the video, please help me :C and thankyou for your answer
@EZtech
@EZtech 6 жыл бұрын
Alfredo Gallardo Try commenting out the line of code... // #include I'm trying to remember if the software serial library is even needed. The GPS uses hardware serial for speed. Try commenting it out and see what happens.
@alfredogallardo5917
@alfredogallardo5917 6 жыл бұрын
@@EZtech I do not know if you could try and compile the program, and send the program to alfredo0107.gallardo@gmail.com, it would help me a lot and thank you again for answering me.
@soumitradey8208
@soumitradey8208 5 жыл бұрын
@@alfredogallardo5917 hiii! This is a great project. Need help. Am getting QMC5883 Magnetometer as HMC library doest not work. Although I used the QMC 5883 calibration but data is very unstable! Any help thanks a lot
10Hz U-blox binary GPS data in 66 lines of code (arduino)
39:17
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 2,7 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 45 МЛН
Build an Arduino EEPROM programmer
57:30
Ben Eater
Рет қаралды 1,6 МЛН
GPS Module with Arduino- Ublox NEO-6M
14:03
BINARYUPDATES
Рет қаралды 397 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,2 МЛН
DIY Arduino Car That Remembers the Path | Path memorizing robot
16:02
THE ELECTRONIC GUY
Рет қаралды 46 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,3 МЛН
Make an Autonomous "Follow Me" Cooler - Part 2
10:16
Hacker Shack
Рет қаралды 148 М.
Hacker unlocks Cryptography secrets (hashing, encryption and more)
1:33:24
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,5 МЛН
Когда она редактирует свои фотки
0:46
Время горячей озвучки
Рет қаралды 3,4 МЛН
Когда ты на диете 😁😁😁
0:11
Башкирская Домохозяйка
Рет қаралды 1,1 МЛН
Экономный дед #shorts #юмор #кино #фильмы
0:20
Мир Сватов
Рет қаралды 4,9 МЛН
Пришёл к барыге
1:00
видосик
Рет қаралды 794 М.
💙Мастера Маскировки в Деле
0:46
ViralMoments
Рет қаралды 11 МЛН