User Tools

Site Tools


arduino_workshop

If you want to send us your comments, please do so. Thanks
More on comments


Arduino Workshop

For all workshops you will need a PC with an USB port
For all workshops all or most of the items from the previous workshop are needed

Part one + Getting the IDE to work

Needed

  • Arduino UNO's
  • USB cables which fit the Arduino's

What to do

  • Explain what a microcontoller is.
    • Compare with a PC, the CPU in a PC
    • Globale specifications. What is possible with the ATmega 328p
  • Download the IDE from the Software page
  • Install the IDE on a PC
  • Point to the Arduino Reference page
  • Get the Blink sketch to work
  • Get the serial monitor to work
  • Play with if else, for and while and be creative
  • Build Blink with the millis() function instead of the delay() function

Part two + Digital outputs

Playing with digital outputs and LED's. Also learn something about electronics
The maximum source or drain current is 40mA for the ATmega 328p
Needed

  • Mini breadboard
  • LED's
  • 330 Ohm resitors
  • Jumper wires. M-M and M-F
  • Multimeter

What to do

  • Connect the LEDS and be creative with the software (digitalWrite)
  • Use PWM (analogWrite) to dim the LED's

Part three + Digital inputs

Read digital inputs
Needed

  • Multimeter
  • Oscilloscope
  • Switches
    • Make / break
    • 10k Ohm resistors
  • Jumper wires
  • Mini breadboard

What to do

  • Read digital inputs. pinMode(pin, INPUT)
  • Can be used with LED's and / or serial monitor
  • Internal pull-up resistors (which are between 20 - 50 kOhm) can be activated with pinMode(pin, INPUT_PULLUP)

Part four + Analog inputs

Needed

  • Jumper wires
  • Potentiometer
  • Mini breadboard

What to do

  • Connect the potentiometer and read its output in serial monitor and / or play with LED's (and PWM)
  • map function. More explanation
  • Random numbers (randomize with analog input)
  • Measure temperature with an NTC

Part five + I2C (reading temperature)

Needed

  • Jumper wires
  • Solder iron
  • LM75 protoboard
  • Mini breadboard
  • 10k resistors
  • Something warm but not to hot

What to do

  • Use wire.h
  • Read the temperature and display in the serial monitor and / or the serial plotter
  • Play with LED's and the temperature
  • Do the same with the Arduino i2c master library

Part six + Making sound

Needed

  • Mini breadboard
  • Buzzer
  • Analog amplifier with speakers connected
  • 330 Ohm resitors
  • Jumper wires. M-M and M-F
  • Multimeter

What to do

  • Connect the buzzer or the analog amplifier with the speakers already connected
  • Use tone()
  • Use noTone()
  • Use the buzzer
  • Use the speaker with the analog amplifier
  • Multiple speakers

Part seven + Inputs one more time

Use:

Part eight + DC motor driver

Use of a TB6612FNG
See: Sparkfun motor driver TB6612FNG

Part nine + LCD display

T.b.d.

Part ten + Interrupts

  • External interrupts
    • Pin
  • Internal interrupts
    • WDT

Useful links

Part eleven + Acoustic distance measurement

T.b.d.

Part twelve + Rotary switches

  • Mini breadboard
  • LED's
  • Rotary switch
  • 330 Ohm resitors
  • Jumper wires. M-M and M-F
  • Multimeter
  • Oscilloscope

What to do

  • Investigate how the switch works
  • Make a sketch for the intensity control of a LED

Part thirteen + Stepper motor

t.b.d.

Part nineteen + MPU-6050 6DOF Accelerometer & Gyroscope Module

Get it to work

Part twenty + DS18B20 on one wire bus

Other tools

  • Solder iron
  • Solder
  • Tools
    • Cutting
    • Stripping

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
arduino_workshop.txt · Last modified: 21-02-2020 12:01 by wim