1 / 46
文档名称:

Arduino - Spooky Projects Class 4.pdf

格式:pdf   页数:46
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Arduino - Spooky Projects Class 4.pdf

上传人:kuo08091 2014/3/22 文件大小:0 KB

下载得到文件列表

Arduino - Spooky Projects Class 4.pdf

文档介绍

文档介绍:Spooky Projects
Introduction to Microcontrollers with Arduino
Class 4
28 Oct 2006 - machineproject - Tod E. Kurt
What’s For Today
• Switches without Resistors
• All about piezos
• Building a melody player
• Using piezos as pressure & knock sensors
• Using Processing with Arduino
• Stand-alone Arduino
Recap: Programming
pile
Reset Upload
Like always, just make sure. Make “led_blink” come alive again. Do it. Trust me.
Switches w/o Resistors
AVR chip has internal “pull-up” resistors
Instead of this: You can just do this:
+5V
10k
to input to input
But how do you turn on these internal pull-ups?
This is sort of an aside, but it saves a lot of wiring.
Switches w/o Resistors
Answer: use digitalWrite(pin,HIGH) on the input
Arduino
board
pin 7
pin 6
pin 5
gnd
A B C
Seems a little counter-intuitive,
think of it as setting the default value of the input
but note, it doesn’t work the other way: you can’t set it to LOW then wire the switch to +5V.
Switches w/o Resistors
Can make a button box easily
if no resistors are needed
Plugs right into Arduino board
=
A B C
Piezoelectrics
• Big word – piezein is greek for “squeeze”
• Some crystals, when squeezed, make a spark
• Turns out the process goes the other way too
• Spark a quartz crystal, and it flexes
• Piezo buzzers use this to make sound
(flex something back and forth, it moves air)
Piezo buzzers don’t have quartz crystals, but instead a kind of ceramic that also exhibits
piezoelectric properties.
I pronounce it “pie-zoh”. Or sometimes “pee-ay-zoh”.
Piezo Buzzers
• Two wires, red & black.
Polarity matters: black=ground
• Apply an oscillating voltage to
make a noise
• The buzzer case supports the
piezo element and has
resonant cavity for sound
Oscillating voltage alternately squeezes and releases the piezo element.
Must apply flucuating voltage, a steady HIGH or LOW won’t work.
diagrams from: /
What’

最近更新

2025年湖南省(147所)马克思主义基本原理概论.. 12页

2025年滑县幼儿园教师招教考试备考题库带答案.. 30页

2026年主管中药师考试备考题100道及参考答案(.. 38页

2026年主管中药师考试备考题100道含答案(满分.. 38页

2026年主管中药师考试备考题100道附答案(突破.. 37页

2026年医学微生物学习题集及完整答案(全国通.. 40页

2025年甘肃交通职业技术学院马克思主义基本原.. 12页

2025年盈江县招教考试备考题库含答案解析(必.. 31页

2026年宪法知识竞赛试题库100道及完整答案(全.. 40页

2025年翁源县招教考试备考题库及答案解析(必.. 30页

2025年西安工商学院单招职业技能测试题库附答.. 45页

2025年西安电力高等专科学校单招职业技能考试.. 45页

新安全生产法知识竞赛试题库及完整答案(考点.. 43页

2025年贵州轻工职业技术学院单招职业倾向性测.. 42页

最新全国政法队伍教育整顿知识竞赛试题库及完.. 40页

2025年重庆资源与环境保护职业学院单招职业技.. 45页

2025年陕县招教考试备考题库含答案解析(必刷.. 31页

2026年主管中药师考试备考题100道含答案【培优.. 38页

2026年云南现代职业技术学院单招综合素质考试.. 44页

2026年医学微生物学习题集附完整答案(网校专.. 41页

2026年主管中药师考试备考题100道【基础题】 38页

2026年主管中药师考试备考题100道及答案(典优.. 38页

2026年宪法知识竞赛试题库100道【巩固】 41页

2026年医学微生物学习题集及答案 40页

2026年江海职业技术学院单招职业技能考试题库.. 45页

2026年安徽城市管理职业学院单招职业适应性考.. 37页

2025年湖南省建设工程工程量清单计价办法(新).. 51页

2025年江西信息应用职业技术学院单招职业适应.. 127页

2025年江西信息应用职业技术学院单招职业倾向.. 73页

喝酒给老婆的检讨书 6页