CHEM 191 Main Page
Preface
What is Arduino?
OK, but what is Teensy?
Using this Book
Code
Notes and Warnings
Is this work dangerous?
Additional Resources
1
Getting Started with Arduino
Introduction
1.1
Install the Arduino IDE
1.2
Install Teensyduino
1.3
Test the Teensy!
1.3.1
Check the board
1.3.2
Check the software
2
Blink an LED
Introduction
How are things connected to a Teensy?
The solderless breadboard
What is a program?
2.1
Connecting the LED
2.2
Program the Teensy
2.2.1
One Color
2.2.2
Three Colors
2.2.3
Make Your Own Changes
2.2.4
Turn in
3
Voltage and Communication
Introduction
Electricity
Bits and Volts
Communicating via the serial port
3.1
Connect the Temperature Sensor
3.2
Program the Teensy
3.2.1
Bare Minimum
3.2.2
Converting to Temperature
3.2.3
Cleaning up the Output
3.2.4
Make Your Own Changes
3.2.5
Turn in
4
Functions: Building Blocks for Programs
Introduction
Using Functions
4.1
Set up the Teensy
4.2
Writing a
blink()
Function
4.3
Using Functions
4.4
Write Functions With Multiple Arguments
4.5
Turn In
5
Soldering and PCB Assembly
5.1
Introduction
5.2
Soldering Basics
5.2.1
The Supplies
5.2.2
The Technique
5.2.3
Safety
5.3
Assembling the Board
Appendix A: Function Library
blink()
checkConnection()
createFileName(int y, int m, int d)
fillDigits(int digits)
getTeensy3Time()
performPMReading()
printData()
printDate(int y, int m, int d)
printDateTime(String d, String t)
printTime(int h, int m, int s)
setBMESamplingParameters()
turnSensorsOff()
turnSensorsOn()
writeFile(char filename[16])
Appendix B: Strategies for Troubleshooting
Appendix C: Glossary and Abbreviations
Current (
i
)
Electricity
LED
Power (
P
)
Resistance (
R
)
Voltage (
V
)
Published with bookdown
CHEM 191 Workbook: Building a Teensy Air Quality Monitor
Appendix B: Strategies for Troubleshooting