I'm stuck in my Project.

I worry about my project. I bought parts like 5 days ago and from this time i have done nothing besides connecting, soldering motors, etc. This is my first project. My parts:
-Romeo V2.2 board
-4WD chassis platform with 4 DC motors - made from transparent plastic
-Mini Bread Board Self Adhesive
-20 jumper wires
-hc-sr04 sensor // becamuse i wanted to make a robot that
-servo micro sg90
I wanted to make a obstacle avoiding robot that have hc-sr04 sensor which is mounted on the servo that rotates. I’m confused and can’t find EXAMPLES CODES/ ANOTHER PROJECTS/ SOME BASIC TUTORIALS TO THIS BOARD. On the board are so many pins, switches and all diffrent outputs.
I watched this sites:

How To Build A Robot 2 - Lesson 2: Build a Basic Arduino Robot - DFRobot - it seems like bull’s eye for me. It have the same board and code for testing motors… But things aren’t so pretty. I can’t UPLOAD the code to this board. I use ARDUINO IDE program and when i try to verify this code, it shows me comunicate that #include <DFmotor.h> is not supported to “leonardo board” (becamuse you have to select board in this program).

https://www.dfrobot.com/wiki/index.php/Romeo_V2-All_in_one_Controller_(R3)_(SKU:DFR0225)#PWM_Control_Mode - cool site. It shows ALMOST all things and describes it that are on ROMEO board. ALMOST, becamuse i can’t find example codes of using this sides buttons for example.

On the beginning i want to make this motors run. But while they are connected to the board. Then i want to look for a code to a servo sensor and ultrasound sensor. I’m really confused, this is my FIRST project.
If you got here, and have read my message, than I want to thank you. Have a good day programmers!

I found this video - https://www.youtube.com/watch?v=87TKCV07cjM. That's exactly what i want to build. This guy shared the code. But errors show up when i want to verify it....

TruePatrick: I'm really confused, this is my FIRST project.

Perhaps you would do well to work through some of the simpler examples for that board, or perhaps even get an UNO and work through some of the simple stuff on that first. It would greatly help to get a little knowledge under your hat before you try to tackle something more complicated.

When you learned to swim, you didn't start by trying to cross the English Channel did you? When you learned to drive you didn't start by running the Indy 500 did you? This is the same, start simple and learn. Crawl before you walk and walk before you run. Once you get started learning in this world of microcontrollers, you'll be surprised at how fast you can pick it up. But you gotta start from the beginning or it is all just going to be a big ball of confusion.

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

pert:
When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Arduino:1.8.3 (Windows 10), Płytka:"Arduino Leonardo"

C:\Users\Dell\Desktop\RoverCommander-master\MotorController\MotorController.ino:1:22: fatal error: DFMobile.h: No such file or directory

#include <DFMobile.h>

                     ^

compilation terminated.

exit status 1
Błąd kompilacji dla płytki Arduino Leonardo.

Ten raport powinien zawierać więcej informacji jeśli w 
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"

There’s some polish letters.

Delta_G:
Perhaps you would do well to work through some of the simpler examples for that board, or perhaps even get an UNO and work through some of the simple stuff on that first. It would greatly help to get a little knowledge under your hat before you try to tackle something more complicated.

This board is compatible to Leonardo, which is similiar to UNO. I mean, i don’t have to sell it and instead buy UNO. I can use it as an Uno since this simple programs will also run this board. Am i right?

TruePatrick: This board is compatible to Leonardo, which is similiar to UNO. I mean, i don't have to sell it and instead buy UNO. I can use it as an Uno since this simple programs will also run this board. Am i right?

Most of the simple tutorials are written for UNO. Most all of them will run on the Leonardo, but you may have to make some minor changes or tweaks to them. If you're starting from zero here then that may cause you some headache.

You can get an UNO for just a couple of dollars. No reason to sell the Leo.

TruePatrick:
C:\Users\Dell\Desktop\RoverCommander-master\MotorController\MotorController.ino:1:22: fatal error: DFMobile.h: No such file or directory

#include <DFMobile.h>

^

I can’t imagine an error message being any more self explanatory. Have you downloaded the DFMobile library? Do you have the DFMobile.h file on your computer? Where?

I guess you sort of tried for code tags but you weren’t successful. You need to use the button on the toolbar, not type </>. If the toolbar isn’t shown in your browser for some reason you can manually add the code tags by wrapping your code in the following markup:

[nobbc][code][/code][/nobbc]

Delta_G: I can't imagine an error message being any more self explanatory. Have you downloaded the DFMobile library? Do you have the DFMobile.h file on your computer? Where?

I downloaded this form: https://github.com/DFRobot/DFRobot_utility. And have this in my arduino/libraries

TruePatrick: I downloaded this form: https://github.com/DFRobot/DFRobot_utility. And have this in my arduino/libraries

I just looked at that repo on github and I don't see anything there called DFMobile.h.

pert:
I guess you sort of tried for code tags but you weren’t successful. You need to use the button on the toolbar, not type </>. If the toolbar isn’t shown in your browser for some reason you can manually add the code tags by wrapping your code in the following markup:

I edited this one more time :smiley: What a shame on me

Delta_G:
I just looked at that repo on github and I don’t see anything there called DFMobile.h.

If it is not correct then i need to find this library one more time. BTW i will try to sell my Romeo V2 and instead buy Uno and motor shield for it. If not then i will keep it and learn on this board working on some basics programs.

Why do you need to sell that board to buy an UNO? You can get a pack of 10 UNO clones for the change in your pocket.

Okay. I give up for now. I will buy an UNO clone and try more simple projects. I’ve lost 5 days on that romeo. I’m sad and confused. Maybe at the end of the holiday i will get knowledge to finish this obstacles avoiding robot. Thanks everyone.

Don't be sad. Writing code isn't something you can learn overnight. It's like learning math, and you tried to jump straight into a calculus book without learning to add and subtract first.

Delta_G: Don't be sad. Writing code isn't something you can learn overnight.

Yes it is true. But I'm angry on myself that i started to interest in arduino, etc. so late. I'm on 3-rd year in high school on IT profile.I was learning HTML, PHP, now in 3-rd grade i will study C#, and trough my holidays i want to get to know C++.

Yes it is true. But I'm angry on myself that i started to interest in arduino, etc. so late. I'm on 3-rd year in high school

Late? Golly, I only very recently started learning the whole arduino thing and I'm 50. It's not the age, it's the effort. Don't stress out over it. Put it down for a bit and think about it, then come back.

tinman13kup:
Late? Golly, I only very recently started learning the whole arduino thing and I’m 50. It’s not the age, it’s the effort. Don’t stress out over it. Put it down for a bit and think about it, then come back.

Maybe i’m not late doing this. I think diffrent when i look at all of my friends that do nothing. In the future i want to study mechatronics, and arduino programming is a good thing to start with. Thank you Sir.

Hi,

Can you tell us your electronics, programming, Arduino, hardware experience?

If you have never programed Arduino before you need to do some elementary codes.

A robot of the type you want to build is not just a plug and play type of project.

Just using someones code can work, but you need a good understanding of how the C++ works in Arduino, specifically input and output techniques and code structure.

It may sound a large effort, but smaller projects and code, will help in the future.

Tom... :)

I don't have any experience. I just started, and now i know that my project isn't that simple. I need get to know some basics first. I use polish site and their course in arduino - http://forbot.pl/blog/artykuly/programowanie/kurs-arduino-3-uart-komunikacja-z-pc-zmienne-id3836. I will slowly analize this and learn. I have 3 C++ books that I'm going to learn from as well.

Hi,

TruePatrick: I don't have any experience. I just started, and now i know that my project isn't that simple. I need get to know some basics first. I use polish site and their course in arduino - http://forbot.pl/blog/artykuly/programowanie/kurs-arduino-3-uart-komunikacja-z-pc-zmienne-id3836. I will slowly analize this and learn. I have 3 C++ books that I'm going to learn from as well.

Okay mate, good that you have seeked out some sources to learn from. Is there anybody at the High School , teacher or students that have any programming experience or would like to learn with you? A Science or Physics or Maths subject is good for programming. Even program the arduino to do maths equations. I haven't tried it on the Arduino, but many many years ago, my first Basic programs were in High School, and we did the Solution to Quadratic Equation. As well as using iterative methods. Tom... :)