xiv Python All-in-One For Dummies
MeasuringOxygenandaFlame ...............................521
Analog-to-digitalconverters(ADC) ..........................522
TheGroveoxygensensor ..................................522
Hookinguptheoxygenexperiment .........................524
Breaking down the code ...................................527
Interpreting the results ....................................528
BuildingaDashboardonYourPhonewithBlynk .................530
HDC1080temperatureandhumiditysensorredux ............530
Adding the Blynk dashboard ...............................531
ThemodiedtemperatureTest.pysoftwarefor
the Blynk app ............................................534
Breaking down the code ...................................536
Where to Go from Here ......................................539
CHAPTER 4: Making Things Move ...................................541
ExploringElectricMotors .....................................541
SmallDCmotors .........................................542
Servo motors ............................................543
Stepper motors ..........................................543
ControllingaDCMotor .......................................544
Grove I2C motor driver ....................................545
PythonDCmotorsoftware ................................548
Running a Servo Motor .......................................551
Python servo software ....................................555
Breaking down the code ...................................556
Making a Stepper Motor Step .................................558
Python stepper software ..................................566
Breaking down the code ...................................567
BOOK 7: BUILDING ROBOTS ..................................569
CHAPTER 1: Introducing Robotics ...................................571
A Robot Is Not Always Like a Human ...........................571
Not Every Robot Has Arms or Wheels ..........................572
The Wilkinson bread-making robot .........................573
Baxter,thecoee-makingrobot ............................574
TheGrinBluetooth-enabledtoaster .......................575
Understanding the Main Parts of a Robot .......................576
Computers ..............................................576
Motors and actuators .....................................577
Communications .........................................577
Sensors .................................................577
Programming Robots ........................................578