What is Arduino IDE?
The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other open-source software. This software can be used with any Arduino board
What is a sketch in Arduino?
There are two special functions that are a part of every Arduino sketch: setup() and loop() . The setup() is called once, when the sketch
starts. It's a good place to do setup tasks like setting pin modes or
initializing libraries. The loop() function is called over and over and
is heart of most sketches.
DOWNLOAD ARDUINO IDE :
1. WINDOWS :- Download
2. OTHERS :- OPEN
Install the USB drivers
If you are using a USB Arduino, you will need to install the drivers for the FTDI chip on the board. These can be found in the
On Windows, you will need to unzip
On the Mac, mount the
CONNECT THE BOARD TO PC
If you're using a serial board, power the board with an external power supply (6 to 25 volts DC, with the core of the connector positive). Connect the board to a serial port on your computer.
On the USB boards, the power source is selected by the jumper between the USB and power plugs. To power the board from the USB port (good for controlling low power devices like LEDs), place the jumper on the two pins closest to the USB plug. To power the board from an external power supply (needed for motors and other high current devices), place the jumper on the two pins closest to the power plug. Either way, connect the board to a USB port on your computer. On Windows, the Add New Hardware wizard will open; tell it you want to specify the location to search for drivers and point to the folder containing the USB drivers you unzipped in the previous step.
The power LED should go on.
UPLOADING SKETCH
Open the LED blink example sketch: File > Sketchbook > Examples > led_blink.
If you are using a USB Arduino, you will need to install the drivers for the FTDI chip on the board. These can be found in the
drivers
directory of the Arduino distribution.
On Windows, you will need to unzip
FTDI USB Drivers.zip
. Then, when you plug in the Arduino board, point the Windows Add Hardware wizard to the FTDI USB Drivers
directory.
On the Mac, mount the
FTDIUSBSerialDriver_v2_1_6.dmg
(on PPC machines) or the FTDIUSBSerialDriver_v2_2_6_Intel.dmg
(on Intel machines) disk image and run the included FTDIUSBSerialDriver.pkg
. CONNECT THE BOARD TO PC
If you're using a serial board, power the board with an external power supply (6 to 25 volts DC, with the core of the connector positive). Connect the board to a serial port on your computer.
On the USB boards, the power source is selected by the jumper between the USB and power plugs. To power the board from the USB port (good for controlling low power devices like LEDs), place the jumper on the two pins closest to the USB plug. To power the board from an external power supply (needed for motors and other high current devices), place the jumper on the two pins closest to the power plug. Either way, connect the board to a USB port on your computer. On Windows, the Add New Hardware wizard will open; tell it you want to specify the location to search for drivers and point to the folder containing the USB drivers you unzipped in the previous step.
The power LED should go on.
UPLOADING SKETCH
Open the LED blink example sketch: File > Sketchbook > Examples > led_blink.
Select the serial device of the Arduino board from the Tools | Serial Port menu. On Windows, this should be COM1
or COM2
for a serial Arduino board, or COM3
, COM4
, or COM5
for a USB board. On the Mac, this should be something like /dev/cu.usbserial-1B1
for a USB board, or something like /dev/cu.USA19QW1b1P1.1
if using a Keyspan adapter with a serial board (other USB-to-serial adapters use different names).
Push the reset button on the board then click the Upload button in the IDE. Wait a few seconds. If successful, the message "Done uploading." will appear in the status bar.
A few seconds after the upload finishes, you should see the amber (yellow) LED on the board start to blink.
IF YOU HAVE ANY DOUBTS OR PROBLEMS FEEL FREE TO COMMENT DOWN
No comments:
Post a Comment