Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas

18 projetos para arduino, Manuais, Projetos, Pesquisas de Linguagem de Programação

muitos projetos fáceis mais de grande aprendizado

Tipologia: Manuais, Projetos, Pesquisas

2021

Compartilhado em 31/01/2021

eron-chagas
eron-chagas 🇧🇷

2 documentos

1 / 107

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe 18 projetos para arduino e outras Manuais, Projetos, Pesquisas em PDF para Linguagem de Programação, somente na Docsity!

Visit http://RandomNerdTutorials.com for the latest projects!

Do you have any questions? Click here to contact Rui

  • Disclaimer Table of Contents
  • Copyright Notice
  • Introduction
  • Connect with Rui
  • Parts required
  • Introducing the Arduino
  • Ultrasonic Sensor with LEDs and buzzer
  • Arduino Poor Man’s Oscilloscope
  • Control LEDs with IR Remote Control
  • Control Servo with Visual Basic
  • Control DC Motor via Bluetooth..................................
  • Temperature Displayed on 4 Digit 7 segment
  • LED Cube 3x3x3 with Arduino
  • Control 2 DC Motors via Bluetooth
  • How to Use App Inventor with Arduino
  • Webserver with an Arduino + Ethernet Shield
  • Complete Guide for Ultrasonic Sensor HC-SR04
  • Datalogger with Temperature Sensor and Photoresistor
  • Teensy/Arduino - Memory Game
  • Android App that Sends a Message to Your Arduino
  • Control your Arduino with Voice Commands

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Disclaimer

This eBook has been written for information purposes only. Every effort has been made to make this eBook as complete and accurate as possible.

The purpose of this eBook is to educate. The author (Rui Santos) does not warrant that the information contained in this eBook is fully complete and shall not be responsible for any errors or omissions. The author (Rui Santos) shall have neither liability nor responsibility to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by this eBook.

Throughout this eBook you will find some Amazon links and some of them are affiliate links. This means the author (Rui Santos) earns a small commission from each purchase with that link. That has no additional cost to you , but helps paying for the expenses of purchasing new components for the projects presented in this eBook.

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Copyright Notice

You cannot redistribute this eBook.

This eBook contains code examples which you can use on your own projects, excepted where otherwise noted.

This eBook is only available for free download at:

 http://randomnerdtutorials.com/download

Please send an email to the author (Rui Santos - hello@ruisantos.me), if you have found this eBook anywhere else.

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Connect with Rui

If at any point while you are reading you have any questions, please don’t hesitate to contact me. Here are some ways to stay in touch. Choose your preferred way and click one of those links below!

Through social media, I usually share once a day a cool project I’ve found on the web or simply what I’m currently working on.

Visit my website (http://RandomNerdTutorials.com)

Subscribe on YouTube (https://www.youtube.com/user/RandomNerdTutorials)

Like on facebook (https://www.facebook.com/RandomNerdTutorials)

Follow me on Twitter (https://twitter.com/RuiSantosdotme)

Fork me on GitHub (https://github.com/RuiSantosdotme)

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Parts required

I thought it would be helpful to create a parts required topic. Since it makes much easier to show most of the components/tools used throughout this eBook and where you can get them.

Buy your parts through Random Nerd Tutorials Amazon Store!

Visit my Amazon Store ( http://astore.amazon.com/wwwrandomnerd- 20 ) All parts displayed on Random Nerd Tutorials Amazon store are sold by Amazon or other third-party sellers, not by Rui.

Figure Part Where to buy

Arduino Uno Ultimate Starter Kit - Includes 72 page Instruction Book

Click to see on Amazon (http://amzn.to/1BNsQX6)

Arduino UNO R3 board with ATmega328P

Click to see on Amazon (http://amzn.to/YMjlZg)

Breadboard 400-point Click to see on Amazon (http://amzn.to/1nlJNhR)

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Capacitor Kit (33 Value 645 Piece)

Click to see on Amazon (http://amzn.to/1tCRHaL)

Micro small servo motor RC Robot Helicopter (2 Pcs TowerPro SG90 9G)

Click to see on Amazon (http://amzn.to/1ppjEn0)

MultiMeter - Extech MN35 Digital Mini

Click to see on Amazon (http://amzn.to/1wkiRbI)

Soldering Station Variable Power Between 5-40W, a 1.5mm Pointed Tip

Click to see on Amazon (http://amzn.to/1ppjSdX)

Rigol DS1102E 100MHz Digital Oscilloscope, Dual Analog Channels, 1 GSa/s Sampling, USB Storage

Click to see on Amazon (http://amzn.to/1tCSp7Q)

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Introducing the Arduino

The Arduino is a small development board with a brain (also known as a microcontroller) that you can program. It interacts with the real world through LEDs, sensors, motors, LCDs, buzzers, etc...

If you type on your search engine the query “Arduino projects”, you will find tons of amazing Projects.

What’s an Arduino?

Arduino is essentially a tiny computer that can connect to electrical circuits. The Arduino Uno is powered by an ATmega328P chip, it is the biggest chip on the board as you can see on the picture below. That’s where you store your programs.

Arduino UNO R3 board with ATmega328P – (Click to see on Amazon http://amzn.to/YMjlZg )

The top row of the Arduino has 14 digital pins, labeled 0-13. These pins can act as either inputs or outputs. You can connect them to your circuits to turn them on or off. You can also read buttons – see if a button is either pressed or not.

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Downloading the Arduino IDE

You can load new programs onto the main chip - ATmega328p - via USB using the Arduino IDE. Visit the link below to download the latest Arduino IDE:

 http://arduino.cc/en/Main/Software

I won’t go into much detail how to install this software, since the official Arduino website does a great job explaining how to do it any of the three operating systems (Windows, Mac and Linux).

In the end, you should see a similar window on your computer.

Uploading an Arduino Sketch

Connect your Arduino UNO to your computer via USB.

For this example you will be uploading the most basic example that the Arduino has. Which is blinking an on-board LED or digital pin 13.

Open your Arduino IDE.

Go to File > Examples > 01.Basics > Blink

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

By default your Arduino IDE comes pre-configured for the Arduino UNO. Left-click the “ Upload ” button and wait a few seconds until a “ Done uploading. ” message appears.

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Ultrasonic Sensor with LEDs and

buzzer

View Project on Random Nerd Tutorials Click^ here Watch on YouTube Click here View code on GitHub Click here

Introduction

In this project you have an ultrasonic sensor that measures the distance and the LEDs bar graph will light up according to your distance from the sensor. As you get closer to the sensor the buzzer beeps in a different way.

This circuit can work as a parking sensor!

Parts Required

 1x Arduino (Click to see on Amazon)  1x 74HC595 8 Bit Shift Register  1x Breadboard  8x LEDs (for example: 3x red, 3x yellow, 2x green)  9x 220 Ohm Resistors  1x Buzzer  1x Ultrasonic Sensor (for example: HC-SR04)  Jumper Wires

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Schematics

Upload the Code below

View code on GitHub

* created by Rui Santos, http://randomnerdtutorials.com

* Ultrasonic Sensor with LED's bar graph and buzzer

int tonePin = 4; //Tone - Red Jumper

int trigPin = 9; //Trig - violet Jumper

int echoPin = 10; //Echo - yellow Jumper

int clockPin = 11; //IC Pin 11 - white Jumper

int latchPin = 12; //IC Pin 12 - Blue Jumper

int dataPin = 13; //IC Pin 14 - Green Jumper

byte possible_patterns[9] = {

B00000000,

B00000001,

B00000011,

B00000111,

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

else if (proximity >= 3 && proximity <= 4){

tone(tonePin, 200000, 200);

else if (proximity >= 5 && proximity <= 6){

tone(tonePin,5000, 200);

else if (proximity >= 7 && proximity <= 8){

tone(tonePin, 1000, 200);

shiftOut(dataPin, clockPin, MSBFIRST,

possible_patterns[proximity]);

digitalWrite(latchPin, HIGH);

delay(600);

noTone(tonePin);

Watch the video demonstration

Watch on YouTube: http://youtu.be/7ZPc__5tL3c

Visit http://RandomNerdTutorials.com for the latest projects! Do you have any questions? Click here to contact Rui

Arduino Poor Man’s Oscilloscope

View Project on Random Nerd Tutorials Click^ here Watch on YouTube Click here View Arduino code on GitHub Click here View Processing code on GitHub Click here

Introduction

In this project you will create a cheap oscilloscope with an Arduino and a few lines of code! I've found this project on the internet a few months ago, so I don’t know exactly who wrote this code (I think it was Sofian Audry according to the processing code).

Let's start!

First, download Processing software. It's free Click here to download. You don't need to install anything; it runs just like the Arduino IDE.

Upload this code to your Arduino

View Arduino code on GitHub

Complete project details:

http://randomnerdtutorials.com/arduino-poor-mans-

oscilloscope/

#define ANALOG_IN 0

void setup() {

Serial.begin(9600);

//Serial.begin(115200);

void loop() {

int val = analogRead(ANALOG_IN);