Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting started with Udoo

You're reading from   Getting started with Udoo Become an efficient maker by designing and building amazing prototypes with the UDOO platform and Android

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784391942
Length 206 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Emanuele Palazzetti Emanuele Palazzetti
Author Profile Icon Emanuele Palazzetti
Emanuele Palazzetti
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Developing a diagnostic mode

With a working prototype, it's time to add a functionality that we can use to test our circuit. Even if we are tempted to put our hands on code, we need first to simulate a physical damage that causes a fault in the prototype. Because we don't want to really damage one of our LEDs, we can always alter the circuit components to reproduce an anomaly.

Indeed, we can simulate that the resistor connected to pin 3 has a broken leg. If this occurs, the circuit is interrupted and this prevents the current from flowing through the LED. To reproduce this problem in our breadboard, we can simply remove the first resistor, as we can see in the following schema:

Developing a diagnostic mode

Now we have simulated our first hardware fault. If we open the Android application and use the on/off switches, we can see that the second LED works as expected while the first one stops working. However, none of the software components notice anything because they are agnostic to what happens under the hood...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image