Robotics and Arduino (Arduino UNO)

Embed Size (px)

Citation preview

Robotics and Arduino

Robotics and Arduino

Robotics and Arduino

Robotics is the branch of mechanical engineering, electrical engineering and computer science that deals with the design, construction, operation, and application of robots, as well as computer systems for their control, sensory feedback, and information processing.

Arduino is a software company, project, and user community that designs andmanufactures computer open-source hardware, open-source software, and microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices

Robotics and Arduino

A microcontroller is a small computer (SoC) on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of Ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM

Robotics and Arduino

What is inside a microcontroller?

Robotics and Arduino

The high-performance Atmel picoPower 8-bit AVR RISC-based microcontroller combines 32KB ISP flash memory with read-while-write capabilities, 1024B EEPROM, 2KB SRAM, 23 general purpose I/O lines, 32 general purpose working registers, three flexible timer/counters with compare modes, internal and external interrupts, serial programmable USART, a byte-oriented 2-wire serial interface, SPI serial port, a 6-channel 10-bit A/D converter (8-channels in TQFP and QFN/MLF packages), programmable watchdog timer with internal oscillator, and five software selectable power saving modes. The device operates between 1.8-5.5 volts.

By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.

Atmel ATmega328P

Robotics and Arduino

Atmel ATmega328P

Robotics and Arduino

The Uno is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.. You can tinker with your UNO without worrying too much about doing something wrong, worst case scenario you can replace the chip for a few dollars and start over again.

Arduino Uno Board

Robotics and Arduino

Arduino Uno Board

Robotics and Arduino

Arduino Uno Board Hello World

1. Install Arduino IDE + drivers

Robotics and Arduino

Arduino Uno Board Hello World

2. Parts Required

Robotics and Arduino

Arduino Uno Board Hello World

3. Code

// LED blink Flasherint ledPin = 10;void setup() { pinMode(ledPin, OUTPUT);}void loop() { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000);}

Robotics and Arduino

Arduino Uno Board Hello World

4. Hardware

Robotics and Arduino

Thanks for watching!

Dragos IonitaSoftware Engineerhttps://ro.linkedin.com/in/dragos-ionita-8ab20756