1 / 13

Arduino Tutorial

Arduino Tutorial. Chapter 1 Eng. Hazem W. Marar. What is Arduino ?. Arduino is an open-source single-board microcontroller using Atmel AVR processor and an on-board I/O support.

more
Download Presentation

Arduino Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Arduino Tutorial Chapter 1 Eng. Hazem W. Marar

  2. What is Arduino? • Arduino is an open-source single-board microcontroller using Atmel AVR processor and an on-board I/O support. • The Arduinointegrated development environment (IDE) is a cross-platform application written in Java, and is derived from the IDE for the Processing programming language

  3. Arduino Board

  4. Getting Started

  5. Assigning Ports • Using the pinMode statement: • pinMode (pin_number, State) • digitalWrite|analogWrite(Pin_number, Value); • digitalRead|analogRead(Pin_number);

  6. Your First Program • Turning an LED On/Off

  7. Using an Input Signal • A simple push button input signal

  8. Using an Input Signal • Push button toggling an LED

  9. Bounce Effect • Solution ?

  10. Controlling an LED using PWM • Usually, PWM ports are marked with a Tilde symbol. • Values can range from 0 up to 1023 for analog and 0 up to 255 for PWM. • Use the “analogwrite(pin_number, Value);” statement.

  11. PWM Values

  12. Serial Port Introduction • Simple serial communication with digital data

  13. Serial Port Introduction • Simple serial communication with analog data • Recall Potentiometers and voltage dividers

More Related