Ir al contenido principal

Arduino


Hemos estado haciendo algunas pruebas con el "ARDUINO STARTER KIT"


Vídeo. Cómo usar una protoboard y conectar un led.
Fuente:vt en linea


Massimo Banzi es coinventor de Arduino, un diminuto microcontrolador de código abierto, fácil de usar, que ha inspirado a miles de personas en todo el mundo para fabricar los objetos más geniales que puedan imaginar, desde juguetes hasta equipo de satélite. Ya que, como él dice: «No se necesita el permiso de nadie para fabricar algo grandioso». Ver vídeo al final de este artículo.

What is Arduino?

Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.


ARDUINO 1.6.12
The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other open-source software.
This software can be used with any Arduino board.
Refer to the Getting Started page for Installation instructions.



La nave espacial


Materiales:
  • Arduino UNO
  • Cables
  • Cable USB a mini USB
  • Dos leds rojoy uno verde
  • Breadboard (tabla de prototipo)
  • Tres resistencias de 220 Omhios
  • Una resistencia de 10 KiloOhmios
  • Ordenador con software Arduino, para alimentar a la tarjeta controladora y cargar el programa
  • Botón de cuatro patas
  • Pinza para doblar y pinchar las resistencias
  • Polímetro
 Código de colores de la resistencias

Esquema de conexión físico
Esquema del circuito  

 Código empleado


Para saber más del código Arduino visita link


 Fotos y vídeos en casa de esta pequeña experiencia.



Arduino UNO y circuito

Tabla de prototipado con los tres leds, resistencias y cables

Detalle del Arduino





Con mi gran amigo César Océn.








Fuente consultada:
https://www.arduino.cc/en/ArduinoStarterKit/Prj02

Tutoriales en vídeo:
 Código facilito. Manuel. (México). URL. https://codigofacilito.com/videos/que_es_arduino_introduccion

 Extraído de Arduino
1. Basics
  • Analog Read Serial: Read a potentiometer, print its state out to the Arduino Serial Monitor.
  • Bare Minimum: The bare minimum of code needed to start an Arduino sketch.
  • Blink: Turn an LED on and off.
  • Digital Read Serial: Read a switch, print the state out to the Arduino Serial Monitor.
  • Fade: Demonstrates the use of analog output to fade an LED.
  • Read Analog Voltage: Reads an analog input and prints the voltage to the Serial Monitor.
2. Digital
3. Analog
  • Analog In Out Serial: Read an analog input pin, map the result, and then use that data to dim or brighten an LED.
  • Analog Input: Use a potentiometer to control the blinking of an LED.
  • Analog Write Mega: Fade 12 LEDs on and off, one by one, using an Arduino Mega board.
  • Calibration: Define a maximum and minimum for expected analog sensor values.
  • Fading: Use an analog output (PWM pin) to fade an LED.
  • Smoothing: Smooth multiple readings of an analog input.
4. Communication
These examples include code that allows the Arduino to talk to Processing sketches running on the computer. For more information or to download Processing, see processing.org. There are also Max/MSP patches that can communicate with each Arduino sketch as well. For more on Max/MSP see Cycling 74.
  • ASCIITable: Demonstrates Arduino's advanced serial output functions.
  • Dimmer: Move the mouse to change the brightness of an LED.
  • Graph: Send data to the computer and graph it in Processing.
  • Midi: Send MIDI note messages serially.
  • Multi Serial Mega: Use two of the serial ports available on the Arduino Mega.
  • Physical Pixel: Turn a LED on and off by sending data to your Arduino from Processing or Max/MSP.
  • Read ASCII String: Parse a comma-separated string of integers to fade an LED.
  • Serial Call Response: Send multiple variables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII: Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
  • Serial Event: Demonstrates the use of SerialEvent().
  • Virtual Color Mixer: Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
5. Control Structures
  • Arrays: A variation on the For Loop example that demonstrates how to use an array.
  • For Loop Iteration: Control multiple LEDs with a for loop and.
  • If Statement Conditional: Use an ‘if statement’ to change the output conditions based on changing the input conditions.
  • Switch Case: How to choose between a discrete number of values.
  • Switch Case 2: A second switch-case example, showing how to take different actions based on the characters received in the serial port.
  • While Statement Conditional: How to use a while loop to calibrate a sensor while a button is being read.
6. Sensors
  • ADXL3xx: Read an ADXL3xx accelerometer.
  • Knock: Detect knocks with a piezo element.
  • Memsic2125: Two-axis accelerometer.
  • Ping: Detect objects with an ultrasonic range finder.
7. Display
8. Strings
9. USB
The Keyboard and Mouse examples are unique to the Leonardo, Micro and Due. They demonstrate the use of libraries that are unique to the board.
KEYBOARD
MOUSE
10. Starterkit & BasicKit
Tutorials for the Examples of the StarterKit are available in the Project Book included in the kit, if you purchase a BasicKit you will be able to access the projects online on Project Ignite.
11. Arduino ISP
Arduino ISP turns your Arduino into an in-circuit programmer to re-program AtMega chips. Useful when you need to re-load the bootloader on an Arduino, if you're going from Arduino to an AtMega on a breadboard , or if you're making your own Arduino-compatible circuit on a breadboard.

Comentarios