tect-corner-img

Problems with Arduino Uno on macOS and Its Solutions

An Arduino is an open-source hardware and software company engaged in hardware development boards and software that are easy to use and can be used to design and build electronic devices and projects. The Arduino is based on the AVR microcontroller family of Atmel. It can be programmed by using the STK- 500 protocol of Atmel. The STK-500 protocol was originally designed for a serial rs-232 connection but now a USB to serial converter is used to provide a direct connection with the PC. To clone Arduino, a CH340 is used.

Mostly, people use the official integrated development environment (IDE) for the Arduino. The Arduino IDE software is written in Java and works on various platforms like Linux, Windows, and Mac operating systems. It enables one to write a code by highlighting the syntax which makes it easier to code and also allows one to upload the code with a simple click.

Steps to upload a program on Arduino Uno using a system with macOS:

STEP 1: Open the led blink example.

  • Start the Arduino IDE software
  • Go to file
  • Examples -> 01. Basics -> Blink

led blink example

The Arduino IDE will open up a window containing the example code:

led blink code

STEP 2: Connect the Board to configure it.

  • Go to Tools
  • Board

Select the correct board which you are connecting to your computer.

select-arduino-uno

STEP 3: Selecting the Serial handle.

Select the correct serial port to which the Arduino is connected.

select-serial-port

STEP 4: Program the Arduino Board.

Now, we are ready to upload the code to the board. Press the upload button in the editor (arrow pointing towards the right). After this button is pressed, the console window shows the compiling process and finally uploads the code.

program-arduino-board

 

STEP 4: Ready with output
You are finished uploading the code and the inbuilt LED on the board starts blinking.

blink-arduino-uno-led

 

Problems with Arduino and troubleshooting them: –

1. Check the USB cable is plugged in properly.
Check if the USB cable is attached properly and should not be loose. So, please check if it is connected properly and also press it in more if required.

usb-cable

2. Use an alternative USB cable to connect the Arduino Board
Some USB cables are only meant for charging and do not support or allow serial communications. So, some people might have to change the cable to avoid such uploading errors.

alternative-usb-cable

3. Try unplugging all the board pins
There may be cases where if you unplug the pins from the board and then upload the code without connecting them. You can attach the pins back into the board again after you upload the code.

unplug-arduino-pins

4. Resetting the board
To reset the board, you have to press the red push button next to the USB port of the Arduino board when connected to the system. The LED on the board will blink when you reset it. If the board fails to reset, we might need to burn the bootloader to the board.

reset the board

5. Selecting the right board

Check you have selected the Arduino board you are utilizing. To do that:

  • Click the Tools menu in the Arduino IDE
  • Select Board on the Tools menu
  • Then select the Arduino board you are utilizing

 

select-board

6. Selecting the correct port, you are utilizing

You need to ensure that the correct port is selected to upload programs.

  • Click Tools to open that menu.
  • Select Ports to open the submenu below.
  • Then select the correct COM port for your Arduino board.

 

correct-arduino-port

When Arduino is not detected even when connected to the computer

Sometimes the computer will not detect an Arduino board (probably SMD) even when connected properly through a USB cable. This problem might occur in SMD-type boards because of the difference in the USB to serial converter chip. This is called CH340 USB to serial converter chip.

To make it detectable in such cases, you have to install a CH340 driver manually. Following are the steps:

  • Install the CH340 driver using the following links: https://sparks.gogo.co.nz/ch340.html
    http://www.wch.cn/downloads/CH341SER_ZIP.html
  • After Installation, run the following command in the terminal: sudo nvram boot-args=”kext-dev-mode=1″
  • Please restart your system to update the settings

Related Article: List of Arduino UNO Related Errors in Windows and Possible Solutions

Author Bio

author-image

Akshay Tambe works as a Project Guide at Moonpreneur and holds nearly four years of expertise in core electronics and coding with prestigious companies. He has a wealth of information on several robotic platforms and stem-related areas. He has created STEM resources for instructors and students. Also, he has given technical presentations to domestic and international students.

Category