Maslow Home Maslow Community Garden Newsletter

Arduino IDE basics

Arduino IDE basics for beginning use

  1. loading code (make sure you unzip the archive first then open the code. Clicking in will not allow the system to find all the files when trying to compile
  2. Compiling code (“verify” checkbox upper left) - this will generate a hex file in a temporary folder
  3. Flashing firmware (Right arrow in upper left) - this will generate a hex file and then attempt to send it to the selected port (see step 4)
  4. Connecting a device:
  • tools -> port -> select the com or tty or description that represents your device. you know it is the right one if you unplug your device and that descriptor will disappear and then reappear when plugged back in as you click into the menu with it plugged in or not plugged in.

  • mega
    ** - in tools -> boards -> Arduino AVR boards -> Arduino Mega or Mega2560


    ** - in tools -> processor -> ATmega2560

  • due (optional video)
    ** in tools -> boards -> board manager install SAM AVR boards


    ** in tools -> boards -> Arduino Arm -> Arduino Due (programming port)

  1. using the serial monitor - tools -> serial monitor
    If port is not available or the wrong port is selected, it will show this at the bottom:
    image
    NOTE: Close the serial monitor window if you attempt to use groundcontrol or webcontrol because they cannot share access to the device. Only one program can have the device open at a time. Likewise, shut down webcontrol or groundcontrol if attempting to flash the device or try the serial monitor as it will not connect if the port is already open.
  • ensure you have the correct communication speed (baud rate) at the lower right of the window: 38400 for the due or 57600 for the mega.
3 Likes