Electronics & Microcontrollers

Total Page:16

File Type:pdf, Size:1020Kb

Electronics & Microcontrollers MICROCONTROLLERS & ARDUINO Tanya Vasilevitsky Tatyana [email protected] Motivation Bridge the gap between real (analog) world and computer (digital) Process raw electrical data into computer logic Process computer logic to electrical signals Microcontroller • A small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. • designed for embedded applications (remote controls , appliances, power tools…) • Interrupts - real time response to events in the embedded system. • Two ATMega microcontrollers PIC 18F8720 microcontroller i n an 80-pin TQFP package. Microcontroller • 1971 - Gary Boone and Michael Cochran succeeded in creating the first microcontroller, TMS1000. Contained: ROM, R/W memory, processor and clock on single chip • 1976 - Intel develops Intel 8048 with massive success • 1993 – EEPROM introduced (Replacing EPROM & PROM) & Atmel introduces first microcontroller with flash memory • Today – 32bit Microcontrollers as cheap as 1$ Intel 1702A EPROM Single-board microcontroller • A microcontroller built onto a single printed circuit board (PCB) • Provides all necessary HW: microprocessor, I/O circuits, clock generator, RAM Cheap, especially for development Emphasis on IO (digital/analog) The Make Controller Kit with an Atmel AT91SAM7X256 (ARM) microcontroller. Dwengo Arduino Open source HW & Software company from Italy Started in 2005 as a project for students at the Interaction Design Institute in Ivrea, Italy Initial team Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca Martino, and David Mellis A family of microcontroller boards Atmel microcontrollers & microprocessors https://www.arduino.cc/ Arduino Boards Arduino Uno Arduino Mega Arduino pro Arduino pro mini Arduino micro Arduino Uno Arduino mega Arduino pro mini Arduino pro Arduino micro Arduino Boards Arduino Zero Arduino Due • Arduino Zero (with debugger!) • Arduino Due • Arduino Yun • LilyPad Arduino Yun Shields • Ethernet shield • GSM shield • WIFI shield Other Boards • Raspberry Pi – Single board computer, dev. In UK Raspberry parnk • Intel Edison- dual core CPU, single core microcontroller, wifi & blutetooth… • Intel Galileo – based on intl 32 bit pentium class SoC, arduino uno shields compatible Arduino Uno • based on the ATmega328P • 14 digital input/output pins (6 PWM) • 6 analog Input • 16 MHz quartz crystal • USB connection • Power jack • an ICSP header • Reset button Arduino Vs Raspberri Pi Demo • Arduino IDE • Selecting board type • Selecting com port • Setup & Loop • pinMode • digitalWrite • analogWrite • delay Ex1 • PWM – Pulse width modulation • Light a led using PWM and video it – you will experience aliasing. • Use the Aliasing to flash your ID • & record it. Have something to indicate time units • Be creative! • Submission- Email to Amit on behalf of team containing ID’s and a video with your solution. Arduino Workshop kit • 1 Arduino Uno R3 Board • 1 USB cable • 1 Straight single line pinhead connectors 2,54 40x1 • 1 Breadboard, 840 tie points • 1 Set of 70 breadboard jumper wires • 5 10K Ohm Resstors 1/4W • 5 2.2K Ohm Resistor 1/4 W • 10 220 Ohm Resistors 1/4W • 5 330K Ohm Resistors 1/4W • 5 100nF capacitor polyester • 5 10nF capacitor polyester • 3 100uF electrolytic capacitor 25Vdc • 1 4,7K Ohm Thermistor • 1 70..100K Ohm LDR VT90N2 • 3 5mm RED LED • 1 5mm GREEN LED • 1 5mm YELLOW LED • 1 10Kohm linear potentiometer, pcb terminals • 2 BC547 Transistor in TO92 Package • 1 Piezo buzzer • 5 PCB Pushbutton, 12x12mm size • 2 4N35 Optocoupler DIL-6 package • 2 Tilt sensor • 1 Diode 1n4007 • 1 MOS Irf540 Arduino Starter kit Kits- Sensors • Sparkfun sensors list • Tkkrlab sensor list Examples: • Magnometer • Reed switch (magnetic field) • Gyro • Force Sensitive Resistor • Piezzo Vibration Sensor Arduino IDE • https://www.arduino.cc/en/Main/Software • Open source, code available on GitHub https://github.com/arduino/Arduino/.
Recommended publications
  • Schedule 14A Employee Slides Supertex Sunnyvale
    UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington, D.C. 20549 SCHEDULE 14A Proxy Statement Pursuant to Section 14(a) of the Securities Exchange Act of 1934 Filed by the Registrant Filed by a Party other than the Registrant Check the appropriate box: Preliminary Proxy Statement Confidential, for Use of the Commission Only (as permitted by Rule 14a-6(e)(2)) Definitive Proxy Statement Definitive Additional Materials Soliciting Material Pursuant to §240.14a-12 Supertex, Inc. (Name of Registrant as Specified In Its Charter) Microchip Technology Incorporated (Name of Person(s) Filing Proxy Statement, if other than the Registrant) Payment of Filing Fee (Check the appropriate box): No fee required. Fee computed on table below per Exchange Act Rules 14a-6(i)(1) and 0-11. (1) Title of each class of securities to which transaction applies: (2) Aggregate number of securities to which transaction applies: (3) Per unit price or other underlying value of transaction computed pursuant to Exchange Act Rule 0-11 (set forth the amount on which the filing fee is calculated and state how it was determined): (4) Proposed maximum aggregate value of transaction: (5) Total fee paid: Fee paid previously with preliminary materials. Check box if any part of the fee is offset as provided by Exchange Act Rule 0-11(a)(2) and identify the filing for which the offsetting fee was paid previously. Identify the previous filing by registration statement number, or the Form or Schedule and the date of its filing. (1) Amount Previously Paid: (2) Form, Schedule or Registration Statement No.: (3) Filing Party: (4) Date Filed: Filed by Microchip Technology Incorporated Pursuant to Rule 14a-12 of the Securities Exchange Act of 1934 Subject Company: Supertex, Inc.
    [Show full text]
  • FEZ Cerbuino Bee - GHI Electronics
    FEZ Cerbuino Bee - GHI Electronics FEZ Cerbuino Bee 2 Description FEZ Cerbuino is for developers wanting a low-cost Arduino-comaptible Gadgeteer-compatible mainboard. This 100% open-source (OSHW) offer includes an on-board power connector, voltage regulators, MicroSD connector, USB host and USB Client connectors. Ready to plug-and-play using the included USB cable. The power of .NET Gadgeteer platform sockets is found on FEZ Cerbuino. These 3 gadgeteer-compatible sockets allow developers to seamlessly connect almost any of the Gadgeteer modules. The Xbee socket automatically brings all sorts of wireless options to the table, including WiFi and Zigbee. Key Features: 3 .NET Gadgeteer compatible sockets that include these types: Y, A, I, K, O, P, S, U. Arduino Compatible headers (some signals are shared with Gadgeteer sockets) Xbee Adapter for ZigBee or WiFi XBee modules. Configurable on-board LED. Software/Hardware features includes but not limited to: .NET Micro Framework 4.2 (supporting C# and Visual Basic) with FEZ Cerberus firmware 168Mhz 32bit processor with floating point 1MB FLASH, over 300K for user's code FEZ Cerbuino Bee - GHI Electronics 192KB RAM, 112KB for user's heap Full TCP/IP Stack with HTTP, TCP, UDP, DHCP Ethernet support with Ethernet ENC28 module. USB host USB Device SPI I2C 2 UART CAN 9 Analog Inputs. 2 Analog Output 4-bit microSD interface 6 PWM OneWire interface Built-in Real Time Clock (Needs 32Khz crystal) RLPLite allowing users to load native code (C/Assembly) for real-time requirements. FAT File System Dimensions: W 8cm x L 5.5cm Power Through USB port or an external DC 6-9V power supply (connecting both is safe).
    [Show full text]
  • Arduino Serial Communication Protocol
    Arduino Serial Communication Protocol conjunctlyCankered Leifafter never Michal overraking Balkanising so mixedly,immeasurably quite flipping.or mislike Hamlin any codes sailplane irresolutely. enthusiastically? Undiversified Kennedy redates no cavatinas escapes Once you want to arduino serial communication protocol and All computers trying out one simple method is common language that represents the serial devices by step is this hardware port on the for. Metal oxide field is also means use serial protocol and smtp are commenting using only of the expected baud rate, decodes the wiring and learn! How serial communication peripheral devices communicate are dozens of bytes that are capable of the new. One of tartar for data timing requirements you should appear. Ttl camera this time, that can be acknowledged. How far and computer system communicate with. Due boards have usb converter or create your raspberry pi or xbee radio receiver can imagine sending repeatedly until a flexible. Bu çalışmamızı gerçekleştirirken bağlı bulunduğumuz kykwifi nin standartları gereği çalışmamıza pek uygun olmamaktadır çünkü wifi. But using an arduino ide serial port on board may have. Arduino platform of control a table above shows that you learned how long distance between both. Uart must operate on? Perfect communication protocol into serial hardware serial. Well known options which we have. Debug messages using arduino via a raspberry pi board allowing you can read and modules from packets. In different size calculator with most notably modbus variant that need. Jetson nano wifi shield my arduino boards to do we will initiate a protocol is a serial protocols to refer to a checksum calculation, initiate a mouse.
    [Show full text]
  • Arduino Sensor Beginners Guide
    Arduino Sensor Beginners Guide So you want to learn arduino. Good for you. Arduino is an easy to use, cheap, versatile and powerful tool that can be used to make some very effective sensors. This guide is meant to give you the basics of getting started with Arduino, and provide you with some basic code that will work with many sensors. The Materials To begin, you will need 1. An ARDUINO: I personally use an ARDUINO UNO V2, but there are many different types available. For our purposes they should all work the same so if you already have one, great. 2. A breadboard: Breadboards are named after cutting boards that early circuit enthusiasts used to hold their sensors. A breadboard is used as a place to hold your sensors, resistors and wires, and also serves as an easy way to connect things together. Breadboards come in all shapes and sizes. I would recommend something like this. This will cost you about 5 dollars online. 3. Wire: Wires are essential to Arduino. They are what allow you to actually connect your Arduino to stuff. Most small, hobby wire will work. All you need to make sure is that it is small enough to easily fit into the pins on your Arduino and breadboard. 4. A Sensor: Sensors come in all shapes and sizes. Most of the guides I have written use sensors similar to these, but don’t feel restricted to these ones. Many of them work pretty much the same way. Using Your Breadboard Different breadboards are set up in different ways.
    [Show full text]
  • Arduino Part 1
    Topics: Microcontrollers Programming Basics: structure and variables Arduino Digital Output Analog to Digital Conversion + Architecture Von- Neumann Classification en fonction de l’organisation de la mémoire : Architecture Harvard Classification des CISC microprocesseurs Classification en fonction de type RISC d’instruction : VLIW + Architectures : Von Neumann versus Harvard 3 + Harvard architecture address data memory data PC CPU address program memory data 4 +Harvard Architecture Example Block Diagram of the PIC16C8X The Von Neumann Architecture Von Neumann Architecture Designing Computers • All computers more or less based on the same basic design, the Von Neumann Architecture! • Model for designing and building computers, based on the following three characteristics: 1) The computer consists of four main sub-systems: The Von • Memory • ALU (Arithmetic/Logic Neumann Unit) Architecture • Control Unit • Input/Output System (I/O) 2) Program is stored in memory during execution. 3) Program instructions are executed sequentially. The Von Neumann Architecture Bus Processor (CPU) Memory Input-Output Control Unit ALU Communicate Store data and program with "outside world", Execute program e.g. Do arithmetic/logic operations • Screen requested by program • Keyboard • Storage devices • ... • Memory, also called RAM (Random Access Memory), – Consists of many memory cells (storage units) of a fixed size. Each cell has an address associated with it: 0, 1, … – All accesses to memory are to a Memory specified address. A cell is the minimum unit of access (fetch/store a complete cell). Subsystem – The time it takes to fetch/store a cell is the same for all cells. • When the computer is running, both – Program – Data (variables) are stored in the memory.
    [Show full text]
  • A Review on Role of Arduino Uno Used in Dual Axis Solar Tracker Rushikesh S.Rakhonde, Pranay R.Lakde, Suraj K.Badwaik, Akshay B.Ronghe, Dipak P
    Rushikesh S. Rakhonde, 2021, 9:1 ISSN (Online): 2348-4098 ISSN (Print): 2395-4752 A Review on Role of Arduino Uno Used in Dual Axis Solar Tracker Rushikesh S.Rakhonde, Pranay R.Lakde, Suraj K.Badwaik, Akshay B.Ronghe, Dipak P. Sonule, Asst. Prof. C. J. Shende Department of Mechanical Engg, DESCOET, Dhamangaon (Rly), Maharashtra, India Abstract- The Arduino Uno is an open-source microcontroller board based on the Microchip ATmega328P microcontroller and developed by Arduino.cc. The board is equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion boards (shields) and other circuits. The board has 14 digital I/O pins (six capable of PWM output), 6 analog I/O pins, and is programmable with the Arduino IDE (Integrated Development Environment), via a type B USB cable. It can be powered by the USB cable or by an external 9-voltThe battery,Arduino thoughproject itwas accepts started voltages at the betweenInteraction 7 and 20 volts. It is similar to the Arduino Nano and Leonardo. The word "uno" means "one" in Italian and was chosen to mark the initial release of Arduino Software. The Uno board is the first in a series of USB- based Arduino boards; it and version 1.0 of the Arduino IDE were the reference versions of Arduino, which have now evolved to newer releases. The ATmega328 on the board comes pre programmed with a boot loader that allows uploading new code to it without the use of an external hardware programmer. Keywords: - Arduino, Expansion Board, USB Cable, Arduino IDE, Microcontroller Board.
    [Show full text]
  • Arduino Uno - R3 (Original - Made in Italy)
    Arduino Uno - R3 (Original - Made in Italy) The UNO is the best board to get started with electronics and coding. If this is your first experience tinkering with the platform, the UNO is the most robust board you can start playing with. The UNO is the most used and documented board of the whole Arduino family. Arduino Uno is a microcontroller board based on the ATmega328P (datasheet). 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 worring too much about doing something wrong, worst case scenario you can replace the chip for a few dollars and start over again. "Uno" means one in Italian and was chosen to mark the release of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the reference versions of Arduino, now evolved to newer releases. The Uno board is the first in a series of USB Arduino boards, and the reference model for the Arduino platform; for an extensive list of current, past or outdated boards see the Arduino index of boards. Technical Specifications: Microcontroller ATmega328P Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limit) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) PWM Digital I/O Pins 6 Analog Input Pins 6 DC Current per I/O Pin 20 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328P) EEPROM 1 KB (ATmega328P) Clock Speed 16 MHz LED_BUILTIN 13 Length 68.6 mm Width 53.4 mm Weight 25 g Schematic : Programming The Arduino Uno can be programmed with the (Arduino Software (IDE)).
    [Show full text]
  • Project Documentation
    Project Documentation Project Title: e-Glove Team Members: Harshit Rathore, Shubham Agrawal & Elle Atma Vidya Prakash Team Mentors: Rohit Agarwal & Divya Prakash Basic aim: To make a glove embedded with various sensors to detect hand and finger gestures, and implement those in many things, like playing games, giving presentations and many more. Motivation: We were having a look at previous year projects done under the electronics club, we saw many game controllers. So we thought of a game controller that can work for all the latest games, is full featured, and gaming looks more realistic using that. Inspired by things like Microsoft© Kinect™, Sony© Play Station™ motion controller, and many more such controllers available in the market, we came up with this idea. Theory: Sensors 1. Accelerometer: An accelerometer is a device that measures acceleration. When it is kept horizontal at rest, it measures 9.8 N/Kg downward. Whenever there is a tilt, a small component is left at the downward face, which can be detected. 2. Flex Sensor: The flex sensor is basically a variable resistor that reacts to bends. It changes its resistance when flexed so we can measure that change. The bend is only detected in one direction. TO read the data from the sensor, we need a fixed resistor (not changing) that we can use for that comparison (We are using a 33K resistor). This is called a voltage divider and divides the 5v between the flex sensor and the resistor. Microcontroller A microcontroller is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals.
    [Show full text]
  • Microcontrollers for IOT Prototyping – Part 2 V
    Microcontrollers for IOT Prototyping – Part 2 V. Oree, EEE Dept, UoM 1 Introduction • The Internet of Things is considered by many to be the 4th Industrial Revolution. • But unlike the first three, it is not a new technology. It is a new way of integrating existing technologies. As a result, it will not require a new kind of engineer. • Instead, to implement IoT, anyone hoping to embed IoT‐enabled capabilities in applications should gain a general understanding of the technologies. • Our intent is not to describe every conceivable aspect of the IoT or its enabling technologies but, rather, to provide an easy reference in your exploration of IoT solutions and plan potential implementations. 2 Introduction INTERNET OF THINGS 3 Sensor Selection Choosing a sensor (for example, a temperature sensor) for an IOT application may seem like a straightforward decision. However, selecting the right sensor involves taking many factors into account: Cost Supplier: How trustworthy is this seller? (Look at reviews from other buyers) Accuracy & Precision Availability: Some components can only be in large quantities. Measurement Range: What ranges will it work for? Power Consumption: Will it work with the power source I have? Sensor Selection Example: Temperature Sensor Texas Instruments LMT84LP Atmel AT30TSE754A‐S8M‐T Sparkfun DS18B20 Texas Instruments LM35DZ Cost: $0.91 Cost: $0.53 Cost: $9.95 Cost: $1.86 Accuracy: +/‐ 0.4°C Accuracy: +/‐ 2°C Accuracy: +/‐ 0.5°C Accuracy: +/‐ 1.5°C Range: ‐50°C to 150°C Range: ‐55°C to 125°C Range: ‐55°C to 125°C Range: 0°C to 100°C Voltage: 1.5V – 5.5V Voltage: 1.7V –5.5V Voltage: 3.0V –5.5V Voltage: 4V – 30V Availability: >10 Availability: >4000 Availability: >5 Availability: >10 5 IoT Development boards • IoT development boards enable makers to prototype their ideas.
    [Show full text]
  • A Short Note: Using Arduino Nano As a Substitute for Arduino UNO David R
    A Short Note: Using Arduino Nano as a substitute for Arduino UNO David R. Brooks, © 2018, 2020 For first-time and casual Arduino users, the most popular board option is the Arduino UNO. This board can be powered with a USB A-B cable when communicating between an Arduino board and the integrated development environment (IDE) that allows you to create and upload sketches, or once sketches are uploaded, by 7-12 V from some other DC voltage source, through an on-board 2.1 mm power jack to an on-board voltage regulator, when a sketch is already in place. There are many shields that fit on the UNO headers to add additional capabilities to the board – for example the Adafruit datalogging shield that includes both a date/time clock (set from your computer clock) and a microSD card module for logging data from sensors. There are alternatives to the Arduino UNO. The Arduino Nano is a small board that has the capabilities of a UNO in a much smaller and less expensive package, with a mini-B USB connector. These are available from allelectonics.com (ARD-20, $8.95) and other several other online sources, sometimes for less than $4 each. Arduino UNOs and compatibles are available at various prices from a variety of sources, some under $15. The only Nano I have tried, which is not an “official” Arduino product, is the one from allelectronics.com, so I can’t guarantee performance of any of the others. UPDATE: Because the NANO from allelectronics.com, and I assume other inexpensive online versions, is not an official version, it may be an older version that will not work with the default ATmega328P choice under the “Processor” menu.
    [Show full text]
  • Micro Manufacturing Beverage System
    2019 Group 11 Eric Velez Lance Adler Ryan Burns Parke Novak Micro Manufacturing Beverage System Senior Design 2 Documentation 1 Table of Contents 1.0 Executive Summary................................................................................................................ 1 2.0 Project Description ................................................................................................................. 2 2.1 Motivation and Goals .......................................................................................................... 2 2.2 Objectives ............................................................................................................................ 2 2.4 Hardware Diagram .............................................................................................................. 3 2.5 Software Diagram ................................................................................................................ 4 3.0 Research and Background Information ............................................................................... 5 3.1 Similar Projects and Products ........................................................................................... 5 3.1.1 Drink Wizard .................................................................................................................. 5 3.1.2 Under the Sun Drink Mixer .......................................................................................... 6 3.1.3 Smartender ...................................................................................................................
    [Show full text]
  • Preview Arduino Tutorial (PDF Version)
    About the Tutorial Arduino is a prototype platform (open-source) based on an easy-to-use hardware and software. It consists of a circuit board, which can be programed (referred to as a microcontroller) and a ready-made software called Arduino IDE (Integrated Development Environment), which is used to write and upload the computer code to the physical board. Arduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package. Audience This tutorial is intended for enthusiastic students or hobbyists. With Arduino, one can get to know the basics of micro-controllers and sensors very quickly and can start building prototype with very little investment. Prerequisites Before you start proceeding with this tutorial, we assume that you are already familiar with the basics of C and C++. If you are not well aware of these concepts, then we will suggest you go through our short tutorials on C and C++. A basic understanding of microcontrollers and electronics is also expected. Copyright & Disclaimer Copyright 2016 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
    [Show full text]