SG: 472

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

*C to miliVolts

(Vout in mv-500)/10 = 700-500/10 =20*C

multiline comment is used to document your code and are not compiled and seen by the Arduino

*/Blink Turns on an LED for one second, then off for one second repeatedly */

What is the operating temperature range for the Sharp GP2Y041SKOF IR Sensor?

-10 *C to 60 *C

The Max232 DIP Package has how many pins

16

Amount of H-bridge Main States

4

What is the range of distance does the manufacturer specify the Sharp GP2Y041SKOF IR Sensor to work reliably.

4 to 30 centimeters

What does a L4940V5 Linear Regulator do?

Can be used in PC motor system to generate a stable 5V supply to power H-bridge and Arduino while the 9V is used to move the motor

True or False: The longer the cable, the higher the data transfer baud rate

False

lcd.print(time)

It prints the current time and at the end of each loop time would be incremented.

L4940V5

Linear Regulator

Is the Max232 pm compatible with the MAX233

No

Digital 1 =-3 TO -25 V Digital 0 = +3 TO +25 V

RS232

0 to 5 Volt DC analog output Perform a 10 bit A/D conversion

SN74410 H-BRIDGE IC

Digital 1 =+2.8 TO 5 V Digital 0 = 0 TO 0.8 V

TTLS

TMP36

Temperature Sensor

LiquidCrystal.led(call 2,3,4,5,6,7);

The arguments for LCD initialization represents the Arduino pins

val()

The code assigns a value to the map function. This function re-maps a number from one range to another.

lcd.setCursor(0,1)

The first argument of lcd.setCursor specifies which raw number the cursor would start

int temp_address = 72

The following address in the code is set to 72 because to is the decimal address of the sensor

lcd.createChar (2,p60)

The function allows you to assign your byte array which in this case is p60 to a custom character ID (starts at 0 and goes to 7)

#include <LiquidCrystal.h>

The library allows the Arduino board to central LiquidCrystal display LCD based on the Hitchi HD44780 or compatible chipset

Wire.begin()

The line code initiates the wire library and joins the I2C bus as a master or slave

#include"pitches.h"

The line of code allows the program to include outside libraries in our sketch

Wire.beginTransmission(temp_address)

The line of code begins a transmission to the I2C slave device with the given address

Wire.requestFrom(temp_address,1);

The line of code is used by the master to request bytes from a slave device

What is the measure cycle time of the Sharp Sensor?

The short measuring cycle time is 16.5 ms

tone()

This function generates a square wave of specified frequency on the output pin of your choice 1ST Argument: Sets the pin to generate tone 2ND: Sets the frequency 3RD: Argument optional sets duration

#include < servo.n >

This line of code connects the servo motor to the code. It sets up the servo as a variable type

#include<Wire.n>

This line of code just calls the I2C communication libraries

True or False: RS232 Voltage specifications is TTL compatible

True

digitalWrite

Used to set the state of an output pm in which can be set to either 5v or 0v

The MAX 232 indicate the VCC and GND Pins

Vcc=16 GND=15

What is the function of the MAX 232 Chip?

Voltage Level Converter-Integrated circuit embedded in a single chip

What is the debounce function?

Works to pass the current to the previous button state and if the button state is different from the last it will wait and read it again

delay()

accepts one argument which is a delay time in milliseconds delay (1000)

dist=constrain (dist, 0, 255)

constrains the code to this number range

Debounce Code

if, return, and void loop

void setup ()

one of the two functions that must be included in every Arduino code pinMode(ledPin, OUTPUT);

a command that accepts two arguments. First, determine which pin is direction. Second, set the direction of pm (OUTPUT or INPUT)

pinMode

Void loop()

second function that must be included in every Arduino program in which the contents of the function report forever as long as the Arduino is on.

int led =13

this is clawed the variable declaration where a viable is a place in the Arduino's memory in ledPin=13;


Set pelajaran terkait

Carter📝📚 - Margaret Atwood, Running with the Tigers🐯

View Set

RN COMMUNITY HEALTH NURSING—CHAPTER 7: Continuity of Care

View Set

FINAL REVIEW Chapter 1 - MONGO DB

View Set

Chapter 18 Building Careers and Writing Résumés

View Set

Health Assessment in Nursing, Chapter 3

View Set

Nursing Process Chapter 20: Communication

View Set