Register your child for In-person Robotics Workshop on 2nd March at LCA, Livermore. Reserve a Seat today!

tect-corner-img

Arduino IDE and Troubleshooting

Arduino IDE is an open-source integrated development environment (IDE) used for programming Arduino boards. It is available for Windows and Mac operating systems.

Note:- Chromebook is not recommended.

It is recommended to install the Arduino 1.8 Legacy by using the following links: – 

Windows ( 8 and above ) 

https://www.microsoft.com/store/apps/9nblggh4rsd8?ocid=badge

MAC

Minimum Requirement: – 

OS X 10.9 to OS X 10.15
OS X 11.0(Big Sur) and above

https://downloads.arduino.cc/arduino-1.8.19-macosx.zip

Windows:

*If you encounter any issues while using the Arduino IDE, here are some troubleshooting steps you can take:

  1. Check the COM Port: Make sure that the correct COM Port is selected under the Tools menu. You can find the COM Port by going to the Device Manager and looking under the Ports (COM & LPT) section.
    1. Open Device Manager, and expand the Ports (COM & LPT) list.
    2. Note the number on the USB Serial Port.
  2. Reinstall the Drivers: If the COM Port is not showing up or is greyed out, try reinstalling the drivers for your board. You can find the drivers on this link: – https://sparks.gogo.co.nz/assets/_site_/downloads/CH34x_Install_Windows_v3_4.zipThe CH340 chip is used by many Arduino-compatible boards to provide USB connectivity, you may need to install a driver, but don’t panic, it’s easier than falling off a log, and much less painful.
    1. Download the Windows CH340 Driver.
    2. Unzip the file.
    3. Run the installer which you unzipped.
    4. In the Arduino IDE when the CH340 is connected you will see a COM Port in the Tools > Serial Port menu, the COM number for your device may vary depending on your system.
  3. Disable Firewall: If you are having trouble uploading your code to the board, try disabling your firewall temporarily.
    1. Windows 11 firewall:
      1. Right-click the Windows icon on the taskbar.
      2. Click Settings.
      3. Click Privacy & security.
      4. Click Windows Security.
      5. Click Open Windows Security.
      6. Click Firewall & network protection.
      7. Click Public network.
      8. In the Microsoft Defender Firewall section, click the toggle to turn it off.
      9. When the toggle is switched off, you’ll see this message in the Microsoft Defender Firewall section: Public firewall is off.
      10.  Your Windows 11 firewall is now off.
    2. Disable the Firewall in Windows 10 and 8. The steps for turning off the Windows Firewall in Windows 8 and 10 are the same.
      1. Open Control Panel.
      2. Select System and Security.
      3. Choose Windows Firewall.Depending on how your computer is set up, it might instead be called Windows Defender Firewall. If so, treat every instance of “Windows Firewall” below as if it read “Windows Defender Firewall.”
      4. Select Turn Windows Firewall on or off on the left side of the screen.
      5. Select the bubble next to Turn off Windows Firewall 
        1. Note:- You can disable the Windows Firewall for private networks only, just for public networks, or for both. To disable it for both network types, you have to make sure to select Turn off Windows Firewall in both the private and the public section.
      6. Select OK to save the changes.

       

      Now that the firewall is disabled, repeat whatever steps caused your problem to see if disabling this option has fixed the issue.

Mac :

*If you encounter any issues while using the Arduino IDE, here are some troubleshooting steps you can take:

  1. Check the USB Connection: Make sure that the board is connected to the USB port and that the USB cable is not loose.
  2. Install the Drivers: Most Arduino boards do not require drivers on a Mac, but if you are using an older board, you may need to install the ch30driver.

    Use following link to download

    https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver/raw/master/CH34x_Install_V1.5.pkg

    Step 1: Download the driver from the Website and extract the file to the local installation directory.

    Step 2: To install the driver in pkg format, tap the driver file → Continue→ Install

    To install the pkg format driver on OS X 11.0 and later: Open “LaunchPad”→“CH34xVCPDriver”→Install

    Or 

    To install the dmg driver, tap the dmg file and drag “CH34xVCPDriver” to enter the application folder in the operating system.

    Step 3. If you see this message appear.

    Step 4. please forward to “System Preferences”->“Security & Privacy”->“General” page, below the title “Allow apps downloaded from:”  The CH340 USB driver extension is blocked by Mac. Allow CH340 USB driver from Mac Security & Privacy.

  3. Check the COM Port: Make sure that the correct COM Port is selected under the Tools menu. If it’s not visible there then Check-in the System report. By opening System Report -> Hardware ->USB. On the right is USB Device Tree. If the USB device is working properly, you will find a device whose “Vendor ID” is [0x1a86].

    Or You can check on the Terminal by entering the following commands:- 

    Open “Terminal” program under the Applications-Utilities folder.

        • For MAC OSX v10. 9 and above, use the following command:

    cd /Library/Extensions

        • For MAC OSX v10.8 and below, use the following command:

    cd /System/Library/Extensions

        • To check if the CH340 driver is in the correct path, use the following command to show the contents of the folder

    ls

        • Now check for the CH340 driver files use the following command

    ls | grep usb

      • If you found the above files in the path, we’ll start by deleting them to prepare for installing the new drivers. Run the following commands to delete the drivers.

    sudo rm -rf /Library/Extensions/usb.kext

    sudo rm -rf /Library/Extensions/usbserial.kext

    Now it’s time to install the new driver. Please check step 1 in Installation.

  4. Reset the Board: Try resetting the board by pressing the reset button on the board or by disconnecting and reconnecting the USB cable.