05 | Integrating Advanced Sensors and Shields Chris Howd | Developer Content Planner, MS Paul Pardi | AppPlat Content Manager, MS
Module Overview Design Considerations for Your Electronics Extending Capabilities with Shields and Devices Sensor Types and Inputs Motor Types and Motor Driver Shields Distance Sensors Demo: Coding for the ultrasonic rangefinder Controlling Gearmotor Speed and Direction Demo: Controlling a DC gearmotor
Design Considerations for Your Electronics
Design Considerations for Your Electronics Consider sensor placement requirements Consider accessibility of electronics Consider your overall design and the operating environment
Extending Capabilities with Shields and Devices Why shields? Shield and device options Options for interfacing with shields and devices
Sensor Types and Inputs nearly unlimited selection If you want it you can probably find it Sensor connections – output and communication Analog PWM Serial I2C USB
Motor Types and Motor Driver Shields Common types of motors include Servo Standard DC motors and gearmotors Stepper motors Motor driver shields Enable use of large, high power motors Separate power supply and circuit Lots of options for different motor types Options for I2C, Serial, USB Some include an Arduino library for easy programming
Distance Sensors Choosing a range/distance sensor Hardware interface and configuration Device sensitivity - converting sensor readings into distances
Coding for the ultrasonic rangefinder
Controlling Gearmotor Speed and Direction
Controlling Gearmotor Speed and Direction Speed is proportional to the input voltage for a DC gearmotor Direction is dependent on the direction of current flow Motor driver shields and libraries
Controlling a DC gearmotor
Review We discussed the available sensor and motor types that you can include in your projects. We investigated rangefinder devices, how to choose one that fits your particular project, and how to take distance readings from an ultrasonic rangefinder. We discussed motor driver shields and showed you how to control a gearmotor.