Mechatronic Systems Engineering 2202A/B Lecture Notes - Lecture 8: Function Generator, Square Wave, Binary Number

12 views5 pages

Document Summary

Every sketch contains at least 2 functions setup() Used to specify pin assignments, communication setup, servo attachments, etc. Each pin may be configured for input or output. Internal pull-up resistor may be enabled for inputs. Configures specified pin as input or output mode = input or output digitalread(pin) Return value is either high or low value = digitalread(pin); digitalwrite(pin, value) Sets specified pin to value (high or low) If pin is configured as input, high value will enable internal pull-up resistor. Converts an analog voltage into a binary number through a process called quantization. Hybrid device with both an analog and digital side. Analog side specified in terms of a full-scale voltage range, efsr. Defines voltage range over which device will operate. Digital side specified in terms of the number of bits of its register: an m-bit adc will output an m-bit binary number. Principle selection criteria include: resolution, voltage range and conversion speed.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents