software

How to download and install arduino on macos from scratch? Step by step guide

The integrated programming environment Arduino is a very versatile tool, so you can download it to a computer operating system MacOS. If you want to know how to do it, we invite you to continue reading. 

We will teach you a complete guide to download and install the Arduino IDE in a quick and practical way. This will prevent you from making mistakes and having to redo all the steps all over again.

But that is not all you will find in this post, we will also present you a list with the best projects with Arduino that you can do yourself from your MacOS.  Let’s get started!

Learn step by step how to download and install the Arduino IDE on MacOS

To download and install the Arduino IDE on your computer with MacOS operating system you will have to follow this step by step: 

Go to the official Arduino page

The first thing you will have to do is access the URL address with your browser https://www.arduino.cc/en/Main/Software  . Then you must click on the Software tab and finally on Download . This will allow you to see the Download the Arduino IDE tool . For more ease from InternetPasoaPaso we leave you below a direct link for downloading.

Download Arduino IDE for MacOS

Download the IDE

In this step you will have to click on Download the Arduino IDE and then select the option located to the right of the Mac OS X 10.10 or newer screen . Next, you must choose if you want to support the Arduino software, in this case you will have to click on the CONTRIBUTE AND DOWNLOAD option . You can also download the program without having to pay anything. To do this you will have to press ONLY DOWNLOAD .

Install the program

After a few seconds a folder will open in which you must choose the destination where you want to host the program on your Mac . You are going to click on Save and then run the installer. For this last step you will have to unzip the arduino-1.8.13-macosx.zip file and begin the installation process as instructed by the wizard. You should not forget that you will have to tell the operating system that the origin of the program is trustworthy .

Set the Arduino board type and port

Once you have installed the program, it is necessary to set the parameters to tell the software which port it is connected to and the Arduino board . For this, it will be necessary to open the program and go to the Tools tab and click on Board . This will allow you to select the type of Arduino you own. Then plug the board into a USB port on your Mac and go back to the Tools tab . Click on the Port tool and choose the port you connected the board to.

List of the best Arduino projects that you can do yourself from a MacOS

Below, you can find the best Arduino projects that you can do yourself from a Mac computer:

Air quality sensor

This project can be done on your MacOS computer through the Arduino IDE . It is a sensor that measures air quality to determine the level of pollution in an environment. Although it is a trial project, it will help you avoid environments with smoke, cigarette smoke and other pollutants. For this you will need an Arduino MKR WiFi 1010 board and an Arduino MKR RGB shield .

Then you must enter these programming codes:

#include <ArduinoGraphics.h>

#include <Arduino_MKRRGB.h>

#include <WiFiNINA.h>

#include <ArduinoHttpClient.h>

#include <Arduino_JSON.h>

int max_level [] = {12, 35, 55, 150, 250, 500};

String labels [] = {"Good", "Moderate", "USG", "Unhealthy", "V Unhealthy", "Hazardous"};

int color [] [3] = {{0, 255, 0}, {255, 255, 0}, {255, 128, 0}, {255, 0, 0}, {128, 0, 128}, { 128.0.0}};

long timer = 0;

char ssid [] = SECRET_SSID;

char pass [] = SECRET_PASS;

String sensor_id = SECRET_SENSOR_ID;

int status = WL_IDLE_STATUS;

char server [] = "www.purpleair.com";

WiFiClient wifi;

HttpClient client = HttpClient (wifi, server, 80);

void setup () {

begin (9600);

while (status! = WL_CONNECTED) {

print ("Attempting to connect to Network named:");

println (ssid);

status = WiFi.begin (ssid, pass);

}

begin ();

brightness (2);

textScrollSpeed ​​(50);

}

void loop () {

getAirQuality ();

delay (20000);

}

void getAirQuality () {

println ("Requesting data from PurpleAir");

get ('/ json? show =' + sensor_id);

int statusCode = client.responseStatusCode ();

String response = client.responseBody ();

int level = 5;

if (statusCode == 200) {

int PM2_5 = atoi (myObject ["results"] [0] ["PM2_5Value"]);

for (int i = 0; i <6; i ++) {

if (PM2_5 <= max_level [i]) {

level = i;

break;

}

}

println (PM2_5);

println (labels [level]);

timer = millis ();

beginText (MATRIX.width () - 1, 0, color [level] [0], color [level] [1], color [level] [2]); // X, Y, then R, G, B

print (PM2_5);

print ("");

println (labels [level]);

endText (SCROLL_LEFT);

beginDraw ();

stroke (color [level] [0], color [level] [1], color [level] [2]);

rect (0, 0, MATRIX.width (), MATRIX.height ());

endDraw ();

}

}

Talking robot

You can do this fun project from your Mac computer. You can create a robot and configure it to speak in the language you want, in the example we leave you you can find different alternatives to modify the words you want it to say. You will need an Arduino Nano R3 board, an SG90 servo motor, a TF module, and an infrared range sensor.

Then you must enter the codes:

#include "ServoTimer2.h"

#include "SD.h"

#define SD_ChipSelectPin 10

#include "TMRpcm.h"

#include "SPI.h"

TMRpcm tmrpcm;

ServoTimer2 head;

ServoTimer2 lhand;

ServoTimer2 rhand;

int in1 = 6;

int in2 = 7;

int in3 = 8;

void setup ()

{

attach (2);

attach (3);

attach (4);

speakerPin = 9;

begin (9600);

if (! SD.begin (SD_ChipSelectPin))

{

println ("SD FAIL");

return;

}

}

void loop ()

{

if (! (digitalRead (in3)))

{

play ("welcome.wav");

write (2500);

delay (2000);

write (1200);

delay (9000);

}

if (! (digitalRead (in1)))

{

play ("dont.wav");

write (300);

write (2000);

delay (3000);

}

if (! (digitalRead (in2)))

{

play ("dont.wav");

write (2000);

write (1000);

delay (3000);

}

else

{

write (300);

write (1700);

write (1500);

}

}

Led tower

In this project you will need an Arduino Micro board, the necessary amount of LEDs and a kit of integrated circuits to create the tower. The design you want to give to the tower will depend on you, in the example we show you is a hexagonal tower of about 20 centimeters.

The codes that you will need to enter on your Mac are:

int pinsCount = 10;

int pins [] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 16};

empty setting () {

for (int i = 0; i <pinsCount; i = i + 1) {

pinMode (pins [i], OUTPUT);

}

}

empty loop () {

for (int i = 0; i <pinsCount; i = i + 1) {

digitalWrite (pins [i], HIGH);

delay (50);

digitalWrite (pins [i], LOW);

}

for (int i = pinsCount - 1; i> 0; i = i - 1) {

digitalWrite (pins [i], HIGH);

delay (50);

digitalWrite (pins [i], LOW);

}

{

digitalWrite (2, LOW);

digitalWrite (3, LOW);

digitalWrite (4, LOW);

digitalWrite (5, LOW);

digitalWrite (6, LOW);

digitalWrite (7, LOW);

digitalWrite (8, LOW);

digitalWrite (9, LOW);

digitalWrite (10, LOW);

digitalWrite (16, LOW);

delay (1000);

digital write (2, HIGH);

digital writing (3, HIGH);

digital writing (4, HIGH);

digital writing (5, HIGH);

digital writing (6, HIGH);

digital writing (7, HIGH);

digital writing (8, HIGH);

digitalWrite (9, STOP);

digitalWrite (10, HIGH);

digital writing (16, HIGH);

delay (1000);

}

}

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button