Engineering and Coding with Arduino

Total Page:16

File Type:pdf, Size:1020Kb

Engineering and Coding with Arduino M Engineering and Coding with Arduino A Beginner’s Guide A PUBLICATION OF MAKECRATE TABLE OF CONTENTS Introduction 1 Microcontrollers 2 Getting Started 3 Some Beginner Projects 4 Additional Resources Introduction This guide is designed to introduce beginning makers to using microcontrollers like the Arduino platform to learn basic coding by utilizing engaging, hands-on projects with real world applica- tions as a foundation for introducing fundamental coding concepts. In this guide, you’ll get: • an introduction to microcontrollers and Arduino in particular • an overview of the skills you can learn when building and coding with microcon- trollers • guidance on getting started with microcontrollers • three beginner projects including illustrated circuit diagrams and code Chapter One Microcontrollers M WHAT IS A MICROCONTROLLER? • A microcontroller is a small, single-chip computer used to connect to and control another device. A typical microcontroller consists of some or all of these parts: • Central processing unit (CPU): The CPU is the brains of the microcontroller. Its job is to find the instructions in memory and decode them to make them usable by the microcontroller. • Memory: the microcontroller instructions as well as variables and their changing values get stored in memory and accessed by the CPU when needed. • Ports: Microcontrollers generally have both input and output ports where devices like sensors, LEDs, and displays can be attached. • Timers and Counters: Most microcontrollers have built in timers that provide clock function- ality and can control the timing of internal and external events, like the length of time an LED blinks. • Interrupt Controls: microcontrollers have systems called interrupt controllers in place that al- low the CPU to check which devices might need attention while another program is executing. • Analog to digital converters: a microcontroller’s analog to digital converter allows it to take an- alog data, like temperatures or light readings, and convert them to digital values that the CPU can handle. • Digital to analog converters: Similarly, digital info from the microcontroller may need conver- sion to run an analog device like a DC motor, so microcontrollers have converters to perform this function. WHERE ARE MICROCONTROLLERS USED? Microcontrollers are used in many electronics devices today including devices that measure, store, calculate, or display information. Some places you are likely to come across a microcontroller on a daily basis are: • In your kitchen, running the timer in your microwave or controlling the temperature in your oven or refrigerator. • In your living room, controlling your TV. • On your phone, to control the touchscreen. • In your car. Most modern cars contain at least 25 different microcontrollers! WHAT IS ARDUINO? Arduino is an open-source microcontroller that can be used with a large number of inputs and outputs to create anything from a simple blinking LED to a complex scientific device. The software that controls the Arduino is also open-source, available on most operating systems, and easy to use. An Arduino microcontroller used to control three LEDs. WHAT CAN YOU LEARN WITH MICROCONTROLLERS? Microcontrollers and the inputs and outputs that can be used with them provide fertile ground for explora- tion and learning. Here we outline a few of the things you can expect to learn. Circuit Building Every project starts with a circuit. The inputs and sensors needed to be wired properly in order to function. Through constructing simple circuits, students will gain a basic understanding of how electricity flows, how various components like resistors and diodes work, and how both analog and digital sensors measure infor- mation. Coding Every project you build will require a program to run it. Arduino uses a subset of the C++ coding language in its Integrated Development Environment (IDE) so you will get to learn that language. More important- ly, you’ll explore the logical structures that are used in many other computer languages, providing a strong foundation for learning additional languages in the future. You’ll also learn how to troubleshoot, as you write and change code and see how things go wrong. Connections to Science One of the best things about microcontrollers like Arduino is that they allow for connections between computer science, electronics, and various other sciences to be made naturally, in an entertaining manner. Using distance sensors to collect measurements reinforces an understanding of things like the speed of sound, and how to convert units. Wiring and coding an RGB LED helps with an understanding of the rela- tionship between color and light. Accelerometers and gyroscopes can be used to demonstrate principles from physics. The possibilities are nearly endless! Everybody in the country should learn to program a computer...because it teaches you how to think. Steve Jobs, Founder and CEO of Apple Chapter Two Getting Started M BUYING AN ARDUINO There are a number of options available directly from Arduino as well as through merchants like SparkFun and Amazon. Because Arduino is open-source, there are a number of inexpensive clones available that will work in a manner similar to a genuine Arduino as well. The Arduino Uno and its clones are recommended as a good starter microcontroller, and the projects in this guide are built on that microcontroller. An internet or Amazon search for Arduino Uno should provide a number of options; just be sure that the one you choose utilizes the ATmega328P microchip. You’ll also need a USB A to B cable to attach your Arduino to your computer. • USING THE SOFTWARE Downloading Drivers Standalone IDE Web editor If you have a reliable internet con- nection, the Arduino web editor is a great place to write sketches (the Arduino term for computer pro- grams) and store them in the cloud. You can download the code from the web editor to your Arduino or clone using a USB cable. The Arduino Web Editor You can find the web editor at create.arduino.cc. You can create an account and the website will walk you through the steps you need to get the proper drivers installed on your computer. Note that if you plan to use a number of computers, the drivers will need to be installed on all of them. The Online Development Environment Standalone IDE If you’d prefer to be able to use the IDE off-line, you can download and install a standalone version of the software. You’ll need an internet connection throughout the installation process, but not to write and run your sketches after that. Arduino provides step-by-step instructions for the installation process at https:// www.arduino.cc/en/Guide/HomePage. Download the Development Environment Chapter Three Beginning Projects M SIMPLE LED CIRCUIT Getting an LED to blink on and off is a simple way to get started with microcontrollers. Here we’ll build a simple circuit and play with the code to make the LED blink at different speeds. Parts You’ll Need • Arduino microcontroller • Breadboard • Jumper wires • 1 LED • 1 100 Ohm or 220 Ohm resistor Building the Circuit Use the diagram below to construct a circuit. Be sure that the longer leg on your LED is on the right side of the center channel on your breadboard. Writing the code // This is the code to make an LED blink on and off. const int ledPin = 13; void setup() { pinMode(ledPin,OUTPUT); } void loop() { digitalWrite(ledPin,HIGH); delay(1000); digitalWrite(ledPin,LOW); delay(1000); } SIMPLE LED & BUZZER CIRCUIT We’ll add on to the first project by building a circuit with two LEDs and a buzzer and get them to blink and buzz in an alternating pattern. Parts You’ll Need • Arduino microcontroller • Breadboard • Jumper wires • 2 LEDs • 1 100 Ohm or 220 Ohm resistor • 1 Piezo Buzzer Building the Circuit Use the diagram below to construct a circuit. Be sure that the longer legs on your LEDs are on the right side of the center channel on your breadboard. Do the same for the leg of the buzzer that has the “+” sign above it. Writing the code const int ledPin = 13; const int ledPin2 = 12; const int buzzerPin = 7; void setup() { pinMode(ledPin,OUTPUT); pinMode (ledPin2, OUTPUT); pinMode (buzzerPin, OUTPUT); } void loop() { digitalWrite(ledPin,HIGH); delay(1000); digitalWrite(ledPin,LOW); digitalWrite(ledPin2, HIGH); tone(buzzerPin, 35); delay(1000); digitalWrite(ledPin2,LOW); noTone(buzzerPin); } CONNECTING LIGHT AND SOUND We’ll use light measurements to create different tones in this project. Parts You’ll Need • Arduino microcontroller • Breadboard • Jumper wires • 1 10K Ohm Resistor • 1 Piezo Buzzer • Photoresistor Building the Circuit Use the diagram below to build your circuit, being sure to keep the positive side of the buzzer to the right. Writing the code int analogPin = A0; int noteToPlay; int sound; int speaker = 7; void setup() { Serial.begin(9600); pinMode(analogPin, INPUT); } void loop() { sound= analogRead(analogPin); delay(200); int notes[21] = {65, 73, 82, 87, 98, 110, 123, 131, 147, 165, 175, 196, 220, 247,262, 294, 330, 349, 392, 440, 494}; noteToPlay= map(sound, 0,1023, 0, 21); tone(speaker, notes[noteToPlay]); delay(10); } Chapter Four Additional Resources Now that you’ve got a taste for the power of microcontrollers for learning coding and engineering, here are some additional resources to help you learn more. M RESOURCES Arduino Project Hub The Arduino Project Hub (https://create.arduino.cc/projecthub) has lots of great user-submitted projects that are organized by category and difficulty. Instructables Instructables contains a wealth of user-generated content on DIY topics of all kinds, and has an entire sec- tion dedicated to Arduino projects including online classes. https://www.instructables.com/howto/arduino/ MakeCrate MakeCrate has several free projects on their website (www.makecrate.club) and provides monthly sub- scriptions including parts, videos, and downloadable step-by-step instructions to get you engineering and coding in no time! READY FOR MORE? Go to www.makecrate.club and sign up for a subscription today! Use code MCDOWNLOAD to save 20% today!.
Recommended publications
  • 17 Electronics Assembly Basic Expe- Riments with Breadboard
    118.381 17 Electronics Assembly Basic Expe- riments with BreadboardTools Required: Stripper Side Cutters Please Note! The Opitec Range of projects is not intended as play toys for young children. They are teaching aids for young people learning the skills of craft, design and technology. These projects should only be undertaken and operated with the guidance of a fully qualified adult. The finished pro- jects are not suitable to give to children under 3 years old. Some parts can be swallowed. Danger of suffocation! Article List Quantity Size (mm) Designation Part-No. Plug-in board/ breadboard 1 83x55 Plug-in board 1 Loudspeaker 1 Loudspeaker 2 Blade receptacle 2 Connection battery 3 Resistor 120 Ohm 2 Resistor 4 Resistor 470 Ohm 1 Resistor 5 Resistor 1 kOhm 1 Resistor 6 Resistor 2,7 kOhm 1 Resistor 7 Resistor 4,7 kOhm 1 Resistor 8 Resistor 22 kOhm 1 Resistor 9 Resistor 39 kOhm 1 Resistor 10 Resistor 56 kOhm 1 Resistor 11 Resistor 1 MOhm 1 Resistor 12 Photoconductive cell 1 Photoconductive cell 13 Transistor BC 517 2 Transistor 14 Transistor BC 548 2 Transistor 15 Transistor BC 557 1 Transistor 16 Capacitor 4,7 µF 1 Capacitor 17 Elko 22µF 2 Elko 18 elko 470µF 1 Elko 19 LED red 1 LED 20 LED green 1 LED 21 Jumper wire, red 1 2000 Jumper Wire 22 1 Instruction 118.381 17 Electronics Assembly Basic Experiments with Breadboard General: How does a breadboard work? The breadboard also called plug-in board - makes experimenting with electronic parts immensely easier. The components can simply be plugged into the breadboard without soldering them.
    [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]
  • Introduction to Electronics and Breadboarding Circuits
    Introduction to Electronics and Breadboarding Circuits What we're going to learn today: What is an electronic circuit? What kind of power is needed for these projects? What are the fundamental principles of electronics? What are the basic electronic components used in DC analog circuits? How do these principles combine to make interesting things? We're going to make some of those things, and you can take the kit, and the projects home with you. Class Parts List Breadboard 1 10uf capacitor 1 Wire kit 1 47uf 1 Red LEDs 3 100uf 1 Green LEDs 3 1000uf Cap 1 Yellow LEDs 1 1500uf cap 6.3v 1 Photoresistor 1 10k Resistors 1 xPiezo sensor 1 1k Resistors 1 Button 3 330 ohm Resistors 1 Slide button, switch 1 Reed switch 1 Potentiometer Hall effect sensor 1 Rare Earth Magnet 1 Tilt ball switch 1 Transistor pn2222 1 TIP120 1 Relay 1 RGB led 1 Dc toy motor 1 Diode 1n4001 1 Lm7805 1 Power connector 1 9v snap power connector 1 About parts Symmetric vs Asymmetric Polarized Physics and chemistry in a tiny package Explain Data Sheets What is electricity? What kinds are there? What can it do? What are the dangers? Batteries as a power source What kinds of batteries are there? What is a circuit? Combination of electronic parts, wires connected between power sources. It's like a physical program. It's also like setting up dominoes in sequence. What is a breadboard? What are they good for? Creatings, organizing, and prototyping a circuit. Literally started out as a bread board with nails.
    [Show full text]
  • Breadboards for Beginners Created by Lady Ada
    Breadboards for Beginners Created by lady ada Last updated on 2018-08-22 03:56:03 PM UTC Guide Contents Guide Contents 2 Introduction 3 What's up with the name? 4 ~~ Interlude ~~ (Wire Wrapping) 5 1971 - The Breadboard Is Invented! 6 Breadboards 8 The curse of the flaky breadboard 10 Other Breadboard Sizes 11 Half Size 11 Tiny Breadboard 12 Little Breadboard Bits 13 Large Breadboard 15 Breadboard Usage 17 Adding DIPs and Modules 19 Jumper Wires 21 DIY Solid Core Wire Jumpers 21 Multi-size wire stripper & cutter 21 Hook-up Wire Spool Set - 22AWG Solid Core - 6 x 25 ft 21 Pre-made Jumper Wires 26 Premium Male/Male Jumper Wires - 40 x 3" (75mm) 26 Premium Male/Male Jumper Wires - 40 x 6" (150mm) 26 Premium Male/Male Jumper Wires - 40 x 12" (300mm) 26 Perma Protos 27 Adafruit Perma-Proto Quarter-sized Breadboard PCB - Single 29 Adafruit Perma-Proto Full-sized Breadboard PCB - Single 30 Adafruit Perma-Proto Mint Tin Size Breadboard PCB 30 Adafruit Perma-Proto Small Mint Tin Size Breadboard PCB - 3 pack 30 Breadboard Tips & Tricks 31 Connecting the two power rails 31 Watch Out For Split Rails! 32 Using Fritzing! 32 © Adafruit Industries https://learn.adafruit.com/breadboards-for-beginners Page 2 of 34 Introduction When you start on your electronics journey, you will eventually need to wire up some parts to follow along with some project. And, chances are, you will be prodded towards using a breadboard. These ubiquitous pale slabs of plastic are everywhere when it comes to electronics hacking.
    [Show full text]
  • (EE2490 Experiment1.Doc Nwp 8/23/16) CALIFORNIA STATE
    (EE2490_Experiment1.doc nwp 8/23/16) CALIFORNIA STATE UNIVERSITY LOS ANGELES Department of Electrical and Computer Engineering EE-2449 Digital Logic Lab EXPERIMENT 1 INTRODUCTION TO ELECTRIC CIRCUITS Required hardware and tools: Breadboard with test circuitry, 15 KΩ (Kilo Ohm) resistor (brown-green- orange), 2.2 KΩ resistor (red-red-red), 330 Ω resistor (orange-orange-brown), 2 green LEDs, 2N4124 NPN Silicon Transistor, AL 21649 pushbutton switch, breadboard wires, and logic probe. Resistor Color Code Conversion Calculator: To help you determine the value of resistors, you can use this calculator: http://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-resistor- color-code-4-band. Note: While conducting the experiment you should record the circuit diagrams of circuits you are building, record observations from experimenting with the circuits, and record your answers to the questions throughout the experiment in your lab journal (a composition book). If you have not had a chance to purchase the composition book, for the first experiment you can use a piece of paper that you will paste into your lab journal. Every section that requires you to build a circuit and test it has an asterisk (*). For those sections, demonstrate the working circuit to your lab instructor. They will sign off on your experiment. You can often build multiple circuits or variations before getting a sign off and then demonstrate the various versions of the circuit together to your instructor. 1.1 Simply defined, an electric circuit is a closed loop where through which charges (electrons) can continually flow. Electric circuits can be analog or digital.
    [Show full text]
  • IEEE Iot Sketch01 – Blink
    Internet of Things Weather Station IEEE Northern Virginia Section Hands-On Professional Development Series October 29, 2016 Montgomery College Unboxing & Sketch 01-Blink 2 10/29/2016 Course Materials All course materials are at: http://w4krl.com/projects/ieee-iot/2016october/ Download the construction slides so that you can follow along: – IEEE IoT Sketch01 – Blink – IEEE IoT Sketch02 – Hello World – IEEE IoT Sketch03 – Standalone Weather Station – IEEE IoT Sketch04 – IoT Weather Station – IEEE IoT Sketch05 – Smartphone Weather Station (if time is available) We will download Arduino sketches and libraries when needed. There are links to software, schematics, data sheets, and tutorials. 3 10/29/2016 Project Road Map 4 10/29/2016 Parts List Jumpers Power Supply Dual Voltage 4-Wire Regulator Jumper Micro USB Liquid Crystal Cable Display NodeMCU Level Shifter BME280 BH1750 LEDs (2) Resistors (2) Breadboard Switch Keep the small parts in the bag for now. 5 10/29/2016 Microcontroller A microcontroller is a System on Chip computer –Processor, memory, analog & digital I/O, & radio frequency circuits Embedded in a device with a dedicated purpose Generally low power and often battery powered Program is stored in firmware & is rarely changed Has multiple digital General Purpose Input / Output, analog-to-digital conversion, pulse width modulation, timers, special purpose I/O 6 10/29/2016 ESP8266 Timeline January 2014 - Introduced by Expressif Systems of Shanghai as a Wi-Fi modem chip. Early adopters used Hayes “AT” commands generated by an Arduino or Raspberry Pi. Not breadboard friendly. No FCC certification. October 2014 - Expressif released the Software Development Kit (SDK) making its use as a slave modem obsolete.
    [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]
  • Prototyping Techniques Help Verify Analog-Circuit Performance
    EDN -- 02.15.96 Prototyping techniques help verify analog-circuit performance http://www.ednmag.com/reg/1996/021596/04df3.htm Design Feature: February 15, 1996 Prototyping techniques help verify analog-circuit performance Walt Kester, Analog Devices Despite the pressure for system engineers to simulate every design, a simulation of a high-speed, high-performance analog circuit cannot substitute for a quality prototype. A review of prototyping methods helps you choose a technique suitable for your design. Analog designers use as many tools as possible to ensure that the final system design performs correctly. The first step is the intelligent use of IC macromodels, if available, to simulate the circuit. The second step is the construction of a prototype board to further verify the design. The final pc-board layout should as closely as possible duplicate the prototype layout. Unfortunately, system designers are under increasing pressure to verify their designs, sometimes exclusively, with computer simulations before committing to board layouts and hardware. Simulating complex digital designs is beneficial, because such simulations often let you eliminate the prototype phase. Bypassing the prototype phase in high-speed, high-performance analog or mixed-signal circuit designs can be risky for many reasons, however. The models available to system designers are only gross approximations of the analog components they emulate (see box, "The limitations of analog-circuit simulation"). Even if semiconductor manufacturers made more detailed models available, simulation times would be impractically long, and the simulations might fail to converge. Thus, designers of analog circuits must become proficient at prototyping to experimentally verify their analog circuit's performance.
    [Show full text]