Posts

Errors while uploading a sketch in Arduino Programming

Image
Errors while uploading a sketch in Arduino Programming  When there is an error the IDE will print relevant information in the console. Learn how to resolve common errors. Check this first These checks will resolve the most common errors: Check your board and port selections:   In the top menu bar, make sure the correct board is selected in  Tools > Board , and that you’ve selected the right port in  Tools > Port . Try disconnecting and reconnecting your board if you’re unsure which port is being used (close and reopen the Port menu to refresh the list). For more information, see  Select the right port and board . Check your sketch for errors:  Click the   Verify  button to compile your sketch without uploading it. If you still get an error, see  Compilation errors when uploading . Check your connections:  Your board needs to be connected with a data USB cable (charge-only cables will not work). Make sure the cable is f...

Syntax and Variables

Image
  Syntax and Variables Syntax: One of the slightly frustrating elements of C is its formatting requirements (this also makes it very powerful). If you remember the following you should be alright. // single line comment:  It is often useful to write notes to yourself as you go along about what each line of code does. To do this type two forward slashes and everything until the end of the line will be ignored by your program. {} (curly brackets) : Used to define when a block of code starts and ends (used in functions as well as loops). /**/ Multi-line comment:  If you have a lot to say you can span several lines as a comment. Everything between these two symbols will be ignored in your program. ;(semicolon): Each line of code must be ended with a semicolon (a missing semicolon is often the reason for a program refusing to compile). VARIABLES A program is nothing more than instructions to move numbers around in an intelligent way. Variables are used to do the moving. boolea...

Arduino Programming In Brief

Image
Arduino Programming In Brief: The Arduino is programmed in the C language. This is a quick little primer targeted at people who have a little bit of programing experience and just need a briefing on the basics of C and the Arduino IDE. If you find the concepts a bit daunting, don't worry, you can start going through the circuits and pick up most of it along the way. For a more in-depth intro, the Arduino.cc website is a great resource.   Structure Each Arduino program (often called a sketch) has two required functions (also called routines). Void Setup(){}  All the code between the two curly brackets will be run once when your Arduino program first runs. Void Loop(){}  This function is run after setup has finished. After it has run once it will be run again, and again, until power is removed.

C Programming: A step towards Career

Image
C Programming: A step towards Career For young learners, programming helps to gain problem-solving skills i.e. to solve a problem in a logical as well as creative way. Coding also enhances thinking ability and enables one to think logically, strategically and analytically. It has a great future for Engineering and Software development, Game development. Coding is important to learn because it teaches you skills such as critical thinking, problem solving and creativity. Coding is also a skill that is valued in the workforce. 1)Introduction to C Programming: C is a general-purpose programming language that is extremely popular, simple, and flexible to use. It is a structured programming language that is machine-independent and extensively used to write various applications, Operating Systems like Windows, and many other complex programs like Oracle database, Git, Python interpreter, and more. C programming language is a machine-independent programming language that is mainly used...

What is Arduino UNO?

Image
  The Arduino UNO is a standard board of Arduino. Here UNO means 'one' in Italian. It was named as UNO to label the first release of Arduino Software. It was also the first USB board released by Arduino. It is considered as the powerful board used in various projects. Arduino.cc developed the Arduino UNO board. Arduino UNO is based on an ATmega328P  microcontroller . It is easy to use compared to other boards, such as the Arduino Mega board, etc. The board consists of digital and analog Input/Output pins (I/O), shields, and other circuits. The Arduino UNO includes 6 analog pin inputs, 14 digital pins, a  USB  connector, a power jack, and an ICSP (In-Circuit Serial Programming) header. It is programmed based on IDE, which stands for Integrated Development Environment. It can run on both online and offline platforms.