Tutorial 04 for Arduino: Analog Inputs

Tutorial 04 for Arduino: Analog Inputs

New Episodes each Monday! You can download the parts list, code, and schematics from this episode on my website: http://jeremyblum.com/2011/01/24/arduino-tutorial-4-analog-inputs Watch my TechBits Episode on Analog and Digital Signals: http://www.youtube.com/watch?v=Z3rsO912e3I Submit your arduino project to element14's arduino contest for a chance to win a soldering station: http://www.youtube.com/watch?v=P5QpyIaycFo This tutorial series is sponsored by element14. Check out their arduino group! http://www.element-14.com/community/groups/arduino Follow me on twitter: http://www.twitter.com/sciguy14

Tutorial 09: How to read voltages with analogRead(): Arduino Course for Absolute Beginners (ReM)

Tutorial 09: How to read voltages with analogRead(): Arduino Course for Absolute Beginners (ReM)

*Click Below to Sign up for the free Arduino Video Course:* https://opensourcehardwaregroup.com/thearduinocourse/ *Click Below to Check Out the Premium Arduino Video Course:* https://opensourcehardwaregroup.com/premium *Click Below to Read About This Topic on Our Website* https://opensourcehardwaregroup.com/tutorial-09-reading-analog-pins-and-converting-the-input-to-a-voltage/ *Description:* Arduino Course for Absolute Beginners In the last lesson you learned about using the analogRead() function to collect data from a sensor connected to one of the Arduino' analog pins. The range of data we received from the analogRead() function, was mapped from 0 to 1023. What if we wanted to know the actual voltage being applied at the pin? You Will Need Potentiometer (any resistance range will work) Jumper Wires - at least 3 solder-less breadboard Persian Rug Step-by-Step Instructions Place your potentiometer into your breadboard. Run a jumper wire from the 5-Volt pin of the Arduino either one of the outside pins of your potentiometer. Run another jumper wire from one of the ground pins on your Arduino (labeled GND) to the other outside pin of your potentiometer. Run the final jumper wire from pin A0 on your Arduino to the middle pin of the potentiometer. Plug your Arduino into your computer. Open up the Arduino IDE. Go to File, Examples, 01.Basics, ReadAnalogVoltage Click the Verify button on the top left side of the screen. It will turn orange and then back to blue once it has finished. Click the Upload button (next to the Verify button). It will turn orange and then back to blue once it has finished. On the menu bar, go to Tools, Serial Monitor - this will open the Serial Monitor window - you should see numbers rolling down this screen. Now adjust the knob of your potentiometer and watch the serial monitor window, the numbers should adjust between 0 and 5. This sketch does the exact same thing the last lesson covered except for one important change. It takes the reading provided by the analogRead() function and converts it into the actual voltage value at the respective analog pin. Let's start from the top just to review what is taking place... We have no variable to declare and initialize at the beginning of the sketch so we jump right into the setup() function. Inside the curly braces of setup() we begin serial communications by setting the baud rate. This is done using the function Serial.begin(9600). That is all there is to the setup of this sketch. the next block of code is loop(). Inside the curly braces of loop() the first thing we do is read the value at analog pin A0 and assign it to an integer variable called sensorValue. int sensorValue = analogRead(A0); Once we have recorded this value, we now want to convert it to an actual voltage. You will recall that the range returned by the analogRead() function is between 0 and 1023. We want this to reflect the actual voltage at the pin - which is between 0 and 5 volts depending on where we have our potentiometer turned to. So lets take a look at how we might accomplish this... float voltage = sensorValue * (5.0 / 1023.0); The first thing we encounter is a new data type - called float. A float is just a number with a decimal point; say for example 3.14 or 2.17781778. Floats, also called floating point numbers, can be huge in value, and take much more time for the Arduino to churn through than integers - this is why they are avoided unless necessary. We want a float in this case because it will give us more resolution than an integer. So what is that calculation anyway - it looks kind of confusing. The numbers on the right are just a conversion factor. We want to convert one scale to another. When we multiply this small number times the sensorValue variable, it will scale down the range from 0-1023 (which is the range that analogRead() returns) to the range 0-5 which is the actual range of the voltage. Once we have this new value, we assign it to the variable voltage. Lets recap the program... Read the sensor value at an analog pin. Assign this value to a variable. Convert this value to a voltage Save the voltage measurement to another variable And then... Well, we print it back to the serial monitor window so we can see what the voltage is at our pin. The loop will start over again, it will sample a new value at the pin, it will convert that value and print it, and loop and loop and - you get the idea. *Try On Your Own* Switch from the using the 5-volt pin on the Arduino to the 3.3-volt pin. What do you think the new conversion factor should be? Can you change the range from 0 to 100? *Read More...* https://opensourcehardwaregroup.com/tutorial-09-reading-analog-pins-and-converting-the-input-to-a-voltage/ *About Us:* This Arduino tutorial was created by Open Source Hardware Group. We are an education company who seek to help people learn about electronics and programming through the ubiquitous Arduino development board.

PLC Training | Analog input output

PLC Training | Analog input output

This Analog input and output PLC training video uses http://bin95.com/allen-bradley-plc-programming.htm PLC Training certificate course software in it. Give maintenance and IC techs a little analog sensor and PLC analog input and output knowledge from the course. The PLC training certificate course software download is a whole lot more detailed and interactive.

Arduino Tutorial #5 - Analog Inputs

Arduino Tutorial #5 - Analog Inputs

So much to learn and so little time! In this tutorial we look at analog inputs on the arduino and how we can use them. In the process of learning we also create a little device that can detect changes in light and notify you using two LED indicators. Support me on Patreon: https://www.patreon.com/JaidynEdwards Social Links Facebook: http://facebook.com/jaidynedwards Twitter: https://twitter.com/JaidynEdwards G+: https://plus.google.com/u/0/+JaidynchickenparmiEdwards Website: http://www.edwardsrobotics.com/

Albert Hammond Jr - Analog in Vienna | The Recording Session

Albert Hammond Jr - Analog in Vienna | The Recording Session

"A challenge musicians face in an age of digital technology is to record in old-school fashion: directly to vinyl. Albert Hammond Jr rose to that challenge – straight from their mics and instruments into unapologetic vinyl." - Red Bull TV Stream now: https://ffm.to/farawaytruths Get the album: https://ffm.to/francistrouble/ Buy Vinyl: tinyurl.com/y7548ey4

Difference between Analog and Digital | AddOhms #6

Difference between Analog and Digital | AddOhms #6

Learn the secret between Digital that people don't like to talk about at parties. Just what is it and how does it compare to Analog? We'll take a look using Clocks! Links mentioned in video: AddOhms Episode 5: http://www.addohms.com/ep5 Adafruit ADXL377 Breakout board: http://www.adafruit.com/products/1413 Arduino (In case you need it): http://www.arduino.cc Twitter: @addohms www.addohms.com

Martin Roth - An Analog Guy In A Digital World

Martin Roth - An Analog Guy In A Digital World

"A night with the piano & me after listening to some genius Nils Frahm..." (Martin Roth) N.B. The track is now available to buy on bandcamp in the following link: https://martinroth.bandcamp.com/track/an-analog-guy-in-a-digital-world * FREE PROMOTIONAL DOWNLOAD for a limited time on soundcloud (January 2015) * http://martinroth.net/ https://martinroth.bandcamp.com/ https://soundcloud.com/djmartinroth https://www.facebook.com/martinrothofficial/ The Frankfurt born, Berlin based DJ & Producer Martin Roth first arrived in the spotlight of global underground dance music when alongside Eric Prydz and Deadmau5 he was named a Beatport Star of 2009 as a result of topping their sales chart no less than 5 times that year, achieving an incredible 16 Top 10 positions and receiving 3 nominations at the Beatport Annual Awards for his productions and remixes. Since those heady days Martin has gone from strength to strength cementing his reputation as one of the brightest stars of the underground dance scene. Influenced by both the classic progressive house sound of the 90’s & 00’s and the deep house avant garde of today, Martin’s tracks and remixes have been continually supported by the likes of Sasha, John Digweed, Eric Prydz, Tiefschwartz, Solomun, Climbers, Jozif amongst many other leading names. 2012’s “Beautiful Life” released on Anjunadeep Records became one of the biggest deep house records of the year achieving a top 5 Beatport chart position and racking up an incredible 3 million plus views on YouTube. The follow up “Make Love To You Baby”, again on Anjunadeep, reinforced Martin’s position as a stalwart of the trippier shade of deep house and found favour with many of the major players in the scene. As a classically trained pianist Martin is very at home in the studio making music and he has a number of his deep and textured grooves getting ready for release in 2013 as well as the launch of a new production project exploring the techno sounds he has always loved. Equally as natural and instinctive on the decks as he is in the studio, Martin has built a strong career as a DJ and amongst appearing regularly at the best clubs on every continent he holds down a residency at the legendary Ministry of Sound in London.

Arduino analogRead Serial Monitor with Potentiometer

Arduino analogRead Serial Monitor with Potentiometer

Arduino basic tutorial "analogRead" Serial Monitor with Potentiometer. Reads an analog input on pin A0, prints the result to the serial monitor. Connections Attach the center pin of a potentiometer to A0, and the outside pins to +5V and ground Arduino Compatible SCM - https://goo.gl/yi21yB Electronics Equipments - https://goo.gl/covX9J Module Board For Arduino - https://goo.gl/81dafX Source Code: https://goo.gl/r6GTDa Social Media: https://www.instagram.com/mertarduino/ https://www.facebook.com/mertarduino/

PLC Analog Tutorial--PLC Analog input and output programming Part 1

PLC Analog Tutorial--PLC Analog input and output  programming Part 1

For Registration for PLC,DCS or SCADA Trainings please visit www.onlineplc.org.

PSX Analog in N64 Controller

PSX Analog in N64 Controller

My analog sticks keep breaking so I fitted a controller with a pic and programmed it to convert the PSX analog output to mimic the N64 quadrature encoder. http://code.google.com/p/n64-joystick-translator/ UPDATE: Tutorial and buy parts: http://kylejw.heliohost.org/index.shtml Some updates here: http://nfggames.com/forum2/index.php?topic=3574.0

Top Videos -  loading... Change country
Load 10 more videos
 
 
Sorry, You can't play this video
00:00/00:00
  •  
  •  
  •  
  •  
  •  
  •  
  •  
CLOSE
CLOSE
CLOSE