Hello ! I'm a engineering student and ı have to make a project with arduino. I have a very limited knowledge about C language and every time ı try to research ı only find C# project's tutorials.
Can anyone help me please ?
Is there a specific reason you want to use C?
The reason I ask is because, even though C is supported, the Arduino programming language is based on C++ and most of the libraries are also written in C++. So you will have an easier time using C++ than you will using C.
There is no Such thing as Arduino Programming Language. It is just standard C/C++ with some built in functions and a wrapper round the compiler.
C# is from Microsoft and it is known as "I can't believe its not Java".
There are countless books and websites all about programming an Arduino, I find it difficult to believe you are having a problem finding something.
Try putting these words into a search engine
Arduino Programming.
Yeah , unfortunetly my teacher wants this project's code with C.
I've had lots of fun programming UNOs using only knowledge about C. Sometimes C## came in play but example code fixed the startup declarations. Have faith!
Can you share with me these sites please ?
Keep searching thank you !
You might want to clarify that with your teacher. Debugging even the simplest Arduino code generally involves using Serial.print. So even for "hello world" you would be using C++.
12 posts were split to a new topic: Is it the Arduino Language?
I dont know why he is doing this really.
It's a class assignment. These are often pointless as the teacher tries to get some programming experience into the students, and sets pointless assignments in the hope that the student will have to work and not just look up an existing project. You can spot these a mile off,
honestly? Are your googling skills so very poor?
Try this
https://microcontrollerslab.com/arduino-programming-tutorial-beginners/
Whow.... Never thought that would allow me to claim using C##....
That's OK, because it doesn't
Is this a Swedish keyboard thing?
In my experience, it's often because the person teaching is really a maths or physics teacher who has been "volunteered" to teach the class and they're only two chapters ahead of the students (if that).
The C++ language is part of the "Arduino Package" that differentiates it from another random microcontroller. (Although there are C++ compilers for other microcontrollers too.)
But, note that it's not standard C++. ANSI/ISO standard C++ (and standard C) expect a keyboard, a display, disc storage, etc. So, if you pick-up a basic-beginning C++ book most of the examples won't work. And there's nothing built-into standard C++ for reading/writing an I/O pin or turning-on an LED, etc.
Whatever you're building, I recommend choosing one of the standard home automation protocols. X-10 has been around many years and it's getting "outdated". Z-Wave is popular and a couple of years ago I upgraded from X-10 and I chose Z-Wave because there is more "stuff" for it. But for the future, it looks like all of the big tech companies are going to standardize on Zigbee.
There a couple of reasons for building something that's compatible with a standard - It's almost impossible to make certain things like a dimmer switch or switched-outlet that fits into a standard outlet box, works manually or automatically/remotely, works off the existing power, doesn't require re-wiring your house, and looks good. And if you can build it, you can't build it as cheaply as you can buy it.
Secondly, if you want to expand your system by adding something "easy" like a dimmer switch, you can order and install it in a couple of days instead of taking weeks to design, build, and troubleshoot the thing.
In some way I guess. It was typed from a Swedish keyboard...
Oh. According to wildbill it looked like that...
AS an engineering student, you are aware that ALL projects begin with the fundamentals and build from there. So you need to do the same. Begin to learn C from the beginning. Don't begin with some magical castle building in the sky. Learn but writing the simplest C program then you will begin to understand the fundamentals. Do you not have access to any books relating to C? Does your library no longer have books? Ask your professor to loan you his books.