Intro to Arduino Class taught at CRASHspace by Quin (Qtechknow). Originally taught on August 11, 2012 at Crashspace, in LA. This revision patches the diagrams and fixes the code! Thanks to SparkFun who shared all of their original slides with me!
Intro to Arduino class taught by Quin from Qtechknow at the Deezmaker Hackerspace July 2014. Revised from previous slides to include helpful tools, more pictures, and many more projects for the students! Curriculum is for both kids and adults. Feel free to use, share, and remix as part of the Creative Commons Attribution-ShareAlike 4.0 International open source license.
Intro to Arduino class taught by Quin from Qtechknow at the Deezmaker Hackerspace July 2014. Revised from previous slides to include helpful tools, more pictures, and many more projects for the students! Curriculum is for both kids and adults. Feel free to use, share, and remix as part of the Creative Commons Attribution-ShareAlike 4.0 International open source license.
I have prepared this presentation when I was studying at Western Region Campus. I along with some of my friends conducted training for junior students on Arduino. Its day-1 presentation.
Getting started with Arduino Programming can be daunting. These are slides I used in my classes which introduced programming concepts to non-engineers, non-programmers, but totally people who wanted to learn more about electronics.
Arduino is an open-source project that created microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices.
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009Eoin Brazil
CS4062 Masters in Interactive Media - Fourth Arduino Lecture - March 18th 2009 - University of Limerick. This lecture presents a short review and introduction to programming concepts relevant to Arduino. This was aimed at a digital media / music technology masters student audience.
Class materials for teaching the basic use of Arduino with LED, button, debouncing concept and Serial output. These materials were originally used in Startathon 2016.
The code is available here. https://github.com/SustainableLivingLab/intro-to-arduino
An introduction to the Arduino microcontroller for the Washington, DC Kids & Technology Meetup. Processing software, Arduino hardware were discussed. Several Arduino projects were demonstrated. Resources are posted here:
https://www.evernote.com/shard/s89/sh/6fd6ce79-c0b2-495e-b6f8-a4c4335cd284/9b1d07121e9f4b89106bcfcba6463bdf
LinnStrument : the ultimate open-source hacker instrumentGeert Bevin
The video recording of this presentation is available on YouTube: https://www.youtube.com/watch?v=iENVztlxWuk
LinnStrument is a new expressive electronic instrument that was invented by Grammy award winner, Roger Linn, creator of the MPC and the LinnDrum. It is built with open-source hardware, the Arduino Due and runs with firmware that is completely open-source as well. With its 3 dimensional touch sensor, 200 cells and multi-color LEDs, LinnStrument presents itself as an amazing playground to discover embedded Arduino development with concrete musical and visual results. This session will introduce the Arduino development concepts, tie them back to the actual hardware concerns, provide an overview of the main algorithms in the LinnStrument firmware and explain valuable lessons that were learned during the development.
I have prepared this presentation when I was studying at Western Region Campus. I along with some of my friends conducted training for junior students on Arduino. Its day-1 presentation.
Getting started with Arduino Programming can be daunting. These are slides I used in my classes which introduced programming concepts to non-engineers, non-programmers, but totally people who wanted to learn more about electronics.
Arduino is an open-source project that created microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices.
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009Eoin Brazil
CS4062 Masters in Interactive Media - Fourth Arduino Lecture - March 18th 2009 - University of Limerick. This lecture presents a short review and introduction to programming concepts relevant to Arduino. This was aimed at a digital media / music technology masters student audience.
Class materials for teaching the basic use of Arduino with LED, button, debouncing concept and Serial output. These materials were originally used in Startathon 2016.
The code is available here. https://github.com/SustainableLivingLab/intro-to-arduino
An introduction to the Arduino microcontroller for the Washington, DC Kids & Technology Meetup. Processing software, Arduino hardware were discussed. Several Arduino projects were demonstrated. Resources are posted here:
https://www.evernote.com/shard/s89/sh/6fd6ce79-c0b2-495e-b6f8-a4c4335cd284/9b1d07121e9f4b89106bcfcba6463bdf
LinnStrument : the ultimate open-source hacker instrumentGeert Bevin
The video recording of this presentation is available on YouTube: https://www.youtube.com/watch?v=iENVztlxWuk
LinnStrument is a new expressive electronic instrument that was invented by Grammy award winner, Roger Linn, creator of the MPC and the LinnDrum. It is built with open-source hardware, the Arduino Due and runs with firmware that is completely open-source as well. With its 3 dimensional touch sensor, 200 cells and multi-color LEDs, LinnStrument presents itself as an amazing playground to discover embedded Arduino development with concrete musical and visual results. This session will introduce the Arduino development concepts, tie them back to the actual hardware concerns, provide an overview of the main algorithms in the LinnStrument firmware and explain valuable lessons that were learned during the development.
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)Alessandro Contini
A 15 mins introduction to the most popular electronic prototyping platform, Arduino!
The talk took place at Beginners Meetup #5 (http://www.meetup.com/opentechschool-berlin/events/93018322/) by Open Tech School Berlin on 6 Dec 2012
# An introduction to Arduino: the 5 Ws + 1 – Alessandro Contini
We will try to answer to the following questions: What is it? Who did that? When? Where? Why is it like that? …and, What can I do with it?
In a time when everyone is talking about makers, digital fabrication, 3D printing, laser cutting, DIY and so on, let's go back and see where everything began. Ok, not EVERYTHING actually, but let's say where everything took a big step forward. We'll also have a hands-on demo that you can't miss, so – less talk, more rock!
In this presentation, Interfacing Bluetooth(HC-05) with Arduino is explained with some AT commands to configure and initialize the Bluetooth module(HC-05).
Code for Arduino:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
Serial.begin(9600);
pinMode(9,OUTPUT); digitalWrite(9,HIGH);
Serial.println("Enter AT commands:");
mySerial.begin(38400);
}
void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
TEEM'16 - Track 1 Computational thinking in pre-university education
Authors: Pablo Martin-Ramos; Maria João Lopes; M. Margarida Lima Da Silva; Manuela Ramos Silva
https://youtu.be/mVK10HOMmg4
A summary of my work on an Android controller for specially programmed Arduino boards. It walks through the resources, methods, and trade-offs of the process.
18/03/2010 - FTS seminar series @ Cardiff Univesity, Computer Science. Pete Woznowski and Rich Coombs one hour presentation on Arduino. Some info on Arduino and the talk: Arduino is a hardware and software platform for developing electronic devices and applications, aimed at being fun and accessible to everyone. Think Lego Mindstorms, but aimed intentionally at adults (rather than aimed at children and incidentally used by adults :)). The scope and potential for Arduino is huge. It has been used to develop simple applications like pedometers and networked environmental sensors, to art exhibits and remote controlled vehicles. The talk aims to give an overview of the Arduino platform and a brief introduction to designing and programming Arduino applications, along with some demonstrations.
A very basic Arduino presentation with quite old projects, a brief Officine Arduino presentation and Fablab Torino.
These imagines and concepts are related and based over the work of Massimo Banzi and the Arduino Team, Alexandra Dechamps-Sonsino, Enrico Bassi.
An Embedded system is a programmed controlling and operating system with a dedicated function within a larger mechanical or electrical system , often with real-time computing constrain.
It is a system that has software embedded into computer hardware , which makes a system dedicated for an applications or specific part of an application.
This Presentation is developed by Abhishek Jaiswal(Robotics Workshop Trainer).
It Contains information about Robotics & Automation along with Arduino Understanding. This ppt also has some discussions about Sensors.
Learn from basics and develop till advance.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Intro to Arduino
1. Intro to Arduino
Class
Intro to Arduino
Held at CRASHspace
Taught by Quin
8/11/12
2. Thank you to SparkFun for
sharing the original
presentation!
3. Schedule
• Getting started with Arduino and electronics
• Project 1 & 2
• Break
• Project 3, 4, & 5
• Explaining More Code
• Q&A + Project Time
4. Arduino Board
“Strong Friend” Created in Ivrea, Italy
in 2005 by Massimo Banzi & David Cuartielles
Open Source Hardware
Atmel Processor
Coding is accessible (C++, Processing)
5. Why do I want an Arduino?
Arduino is a 8-bit prototyping system
that is easy for the modern developer,
designer, hacker, kid, or someone that
has no experience in this type of genre
to use.
But why is important to all of us?
9. Components
Name Image
Type
Function Notes
Digital Input Closes or Polarized,
Button opens circuit needs resistor
Analog Input Variable
Trimpot resistor
LDR Analog Input Variable Also known as
resistor photoresistor
Temp Analog Input Variable
resistor
Sensor
Flex Sensor Analog Input Variable
resistor
Dig. &
16,777,216 Ooh... So
RGB LED Analog
Output
different pretty.
colors
10. Polarity
Polarity is when there are two or more
different sides (or leads) of a
component that have different
qualities that can not be reversed.
Examples: batteries, LEDs, buttons
11. Power (+5V) and Ground
(GND)
Power is the current that goes through
the circuit, and ground is the current
return path (collector)
Always make sure that Power and
Ground never touch directly, or the
circuit will short.
Make sure to not use over 10V, just
5V, and 3.3V, so no shock will occur.
12. What’s a Breadboard?
One of the most useful tools in an engineer or
Maker’s toolkit. The four most important things
to remember:
• Breadboard is very easy to prototype with
• A breadboard is easier than soldering
• A lot of those little holes are connected, which
ones?
• Breadboards can break
14. Analog and Digital
• All Arduino signals are either Analog or
Digital
• All computers including Arduino, only
understand Digital
• It is important to understand the
difference between Analog and Digital
signals since Analog signals require an
Analog to Digital conversion
15. Analog to Digital Conversion
An ADC is a device that samples a
continuous quantity of digital signals,
compares it to discrete time, then
outputs an analog signal.
The ADC (analog) compatible pins on
the Arduino are A0, A1, A2, A3, A4,
and A5
16. I/O, or Input/Output
Input is any signal entering an
electrical system.
Output is any signal exiting an
electrical system.
17. Output
Output is any signal exiting an electrical system
• Almost all systems that use physical computing
will have some form of output
• Outputs include LEDs, a motor, a piezo buzzer,
and an RGB LED
18. Output
Output is always Digital
To Output a Digital signal (On or Off) use this
code:
digitalWrite (pinNumber, value);
Where value is HIGH (on) or LOW (off), both in
caps
To output a signal that pretends to be Analog, use
this code:
analogWrite (pinNumber, value);
Where value is a number 0 - 255
19. Output
To output a signal that pretends to be
analog (anywhere in between on and
off), you will have to use a PWM pin.
All PWM pins on the Arduino are
market with a “~” on the digital side.
20. Output
Output is always Digital
Using a Digital signal that pretends to be an
Analog signal is called Pulse Width Modulation
Use Pulse Width Modulation, or P.W.M., for
anything that requires a signal between HIGH and
LOW (1-254, with 0 being off and 255 being on)
P.W.M. is available on Arduino Leonardo digital
pins 3, 5, 6, 9, 10, 11, and 13
21. Installing Drivers for Mac
The first time you plug a Leonardo into a Mac, the
"Keyboard Setup Assistant" will launch. There's
nothing to configure with the Leonardo, so you can
close this dialogue by clicking the red button in the
top left of the window.
22. Installing Drivers for Windows
This method has been tested on Windows XP and 7:
• Plug in your board and wait for Windows to begin
its driver installation process. If the installer does
not launch automatically, Navigate to the
Windows Device Manager (Start>Control
Panel>Hardware) and find the Arduino Leonardo
listing. Right click and choose Update driver.
• If prompted to search for drivers online, choose
"No, not this time". And click Next
24. Installing Drivers for Windows
• When asked to install automatically or from a
specific location, select "Install from a list or
specific location" and press Next
25. Installing Drivers for Windows
• Choose "Search for the best driver in these
locations", and check the box "incude this
location in the search". Click the Browse button
and navigate to your Arduino 1.0.1 or later
installation. Select the drivers folder an click OK
27. Installing Drivers for Windows
Click Next. You will receive a notification that the
Leonardo has not passed Windows Logo testing.
Click on the button Continue Anyway
28. Installing Drivers for Windows
• After a few moments, a window will tell you the
wizard has finished installing software for
Arduino Leonardo. Press the Finish button
(from arduino.cc)
38. Why do I make a comment?
• Comments are great ways to
remind you what you did,
teach other people what that
code means, or to make a
long description for your
whole piece of code for
licenses, date, and author
39. Comments
• Comments are ignored by
the compiler
• Comments can be anywhere
• Comments can start with
a // for a one-line comment
• Another type of comment is
multiple lines and starts with
a /* and ends with a */
41. Output
Output is always Digital, even when it’s P.W.M.
For P.W.M. the Arduino pin turns on, then off very fast
P.W.M. Signal @ 25%
P.W.M. Signal @ 75%
P.W.M. Signal
rising
42. Input
Input is any signal entering an electrical system
•Both digital and analog sensors are forms of input
•Input can also take many other forms: Keyboards,
a mouse, buttons, light sensors, or just plain
voltage from a circuit
43. Analog Input
• To connect an analog Input to your Arduino, use
Analog Pins # 0 - 5
• To get an analog reading:
analogRead (pinNumber);
• Analog Input varies from 0 to 1023 on an
Arduino
48. Digital Sensors/Digital Input
• Digital Input could be a switch or a button
• To connect digital input to your Arduino use
Digital Pins # 0 – 13 (Although pins # 0 & 1 are
also used for serial)
• Digital Input needs a pinMode command (in
setup):
pinMode ( pinNumber, INPUT );
Make sure to use caps for INPUT
• To get a digital reading: digitalRead
( pinNumber );
49. Digital Sensors/Digital Input
• Digital sensors are more straight forward than
Analog
• No matter what the sensor, there are only two
settings: On and Off (for buttons, pressed, or
not)
• Signal is always either HIGH (On) or LOW (Off)
• Voltage signal for HIGH will be a little less than
5V on your Leonardo
• Voltage signal for LOW will be 0V on most
systems
50. Parts for Circuit 3:
Arduino Leonardo
Breadboard
Pushbutton (2)
LED (2)
Resistor - 10K Ohm (2)
Resistor - 330 Ohm (2)
Jumper Wire
69. Common Functions
pinMode(pin, kind); (declares pins)
analogRead(pin); (reads an analog pin)
digitalWrite(pin, state); (tells a pin to
turn on (5V), or turn off (0V)
if() {} (tells something to do a function,
when something else happens
for() {} (tells something to do a function
over and over)
70. Setup
void setup ( ) {
Inputs & Outputs are declared in
setup, this is done by using the
pinMode function
This particular example declares digital pin # 13
as an output, remember to use CAPS
Ask What their name is, and why they took this class, what they dream of making\n
\n
Hopefully, everyone has. If not, give them the download drive, download to desktop, and then retrieve from them.\n
Original Arduino team is 5.\n
Projects.\n
Explain everything, and have everybody look at theirs. We&#x2019;re going to use these later.\n
These are soldered Joystick Shields. Shields are used to expand the possibilities of the Arduino.\n
\n
These are commonly used components.\n
Take a look at the LEDs, talk about cathode and anode.\n
\n
\n
Look on your Breadboards. On the back, there is some adhesive covering the back, but here&#x2019;s what&#x2019;s inside.\n
Key concept.\n
Look at your Arduino. The bottom right of the Arduino should be all analog pins.\n
\n
\n
Code is a different language than english.\n
Have them look at their Arduino and identify the PWM pins.\n
\n
They have handouts on this.\n
\n
\n
\n
\n
\n
\n
\n
Now open up Arduino 1.0.1. Sketches are programs filled with code.\n
\n
\n
Click on Find Arduino...\nNow, plug the USB cable into the Arduino, then into your computer.\nThe correct Serial/COM port should appear. \nRemember this port name.\nPress OK, and you should be done.\n\nFor Macs, this should be something like /dev/tty.usbserialft/\nFor Windows, this should be something above COM 3. COM 1 and 2 are usually reserved for Windows hardware ports.\n
This sketch will blink the built in LED.\n
File examples basic blink\nOpen arduino\nEncourage delay change\nChange blink to analog write.\n
\n
\n
\n
\n
\n
If you look back at the Blink sketch that we just made, you will see some comments up at the top.\n
\n
\n
\n
\n
To get the code, go into the folder that you just downloaded, open the ArduSensorPotRead folder, and double click on the file named ArduSensorPotRead.ino.\n
Once opening the Serial Monitor (pressing the magnifying glass in the upper right hand corner), you will see that there will be a constant value between 1 and 1000. Now tell them about how to turn it. Once code has been explained, have them change the 1000 to 100 or 10 or 5 or something.\n
\n
\n
\n
\n
To get this code, go into the previous folder that we downloaded, open up the DigitalinputEx folder, and double click on DigitalinputEx.ino. Write connections on whiteboard.\n
When you press one of the buttons, it will light one of the LEDs. When you press the other button, it will light the other LED.\n
\n
Take a look at the last example. This uses semicolons\n
\n
\n
\n
\n
\n
\n
\n
True=On\nFalse=Off\n
anywhere in between those numbers for integers\n
A string is a bunch of characters put together, or as we know it, words.\n
\n
Just plug in your ArduSensor Pot like you did before. This is the same circuit as #2, but a different sketch has been written for a different project.\n
This will make the built in LED blink at a certain rate depending on how much you turn the potentiometer.\n
\n
\n
This sets pin 13 as an output. \n
This basically says that if the button is pressed, turn the LED on.\n
\n
\n
\n
Else means that if the if doesn&#x2019;t run (basically the if isn&#x2019;t true), the next function will work. This means that at least one piece of the code will run all of the time.\n
If this is zero, and this is ten, this piece of code will run 10 times before moving on to the rest of the code.\n
\n
\n
\n
\n
\n
\n
This project makes the QBar Graph light up proportionally to the value of the potentiometer, making a simple meter.\n