Arduino

MAKE A DONATION TO ROBOPROJECT.IT

On this web site you have the opportunity to take advantage of content released under the GNU / GPL v3 License.
As you know some electronic components used in my projects have a significant cost, so if you feel like giving me the opportunity to continue to invest on these projects, you can make a donation via PayPal! 

Your donation will be used ONLY for the purpose of improving actual or future robotic projects and this website!

THANK YOU!

 

MAKE A DONATION
 Free registration to download the Source Code of the projectsJOIN NOW 

Power (USB / Barrel Jack)

Every Arduino board needs a way to be connected to a power source. The Arduino UNO can be powered from a USB cable coming from your computer or a wall power supply that is terminated in a barrel jack. In the picture the USB connection is labeled (1) and the barrel jack is labeled (2).

The USB connection is also how you will load code onto your Arduino board. 

 

Pins (5V, 3.3V, GND, Analog, Digital, PWM, AREF)
The pins on your Arduino are the places where you connect wires to construct a circuit. They usually have black plastic ‘headers’ that allow you to just plug a wire right into the board. The Arduino has several different kinds of pins, each of which is labeled on the board and used for different functions.

  • GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, any of which can be used to ground your circuit.
  • 5V (4) & 3.3V (5): the 5V pin supplies 5 volts of power, and the 3.3V pin supplies 3.3 volts of power. Most of the simple components used with the Arduino run happily off of 5 or 3.3 volts.

**NOTE: Do NOT use a power supply greater than 20 Volts as you will overpower (and thereby destroy) your Arduino. The recommended voltage for most Arduino models is between 6 and 12 Volts.

The Arduino development environment contains a text editor for writing code, a message area, a text console, a toolbar with buttons for common functions, and a series of menus. It connects to the Arduino hardware to upload programs and communicate with them.

Software written using Arduino are called sketches.

 

 Verify / Compile: checks your code for errors

 Upload: compiles your code and uploads it to Arduino Board

Thanks to Visual Micro pug-in you can code and work with Arduino on Microsoft Visual Studio. The main advantages are the following:

  • A great IDE to work with every models of Arduino boards
  • Advanced autocomplete functions
  • Advanced real-time debugging

As you probably know, with the Arduino IDE you need to initialize Serial Communication and print on the Serial Monitor the variables to watch what happends inside the Arduino.
With Visual Micro you don't need to write extra code anymore! You only need to press F9 on selected line and you have set a breakpoint. With right-click you can personalize the breackpoint with funtions like "Location", "Condition", "Hit Count", "Filter", "When Hit" and so on.

EXAMPLE
I have 6 LEDs and 2 for-cycles that switch on and off my LEDs. I want to know which values take the temporary variables of my cycles.


With Visual Studio IDE + Visual Micro
VisualMicro_LED_debug_2

 

  1. Who's Online
  2. Weblinks

We have 33 guests and no members online