Reader small image

You're reading from  Python Robotics Projects

Product typeBook
Published inMay 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788832922
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Prof. Diwakar Vaish
Prof. Diwakar Vaish
author image
Prof. Diwakar Vaish

Prof. Diwakar Vaish is a robotics scientist and the inventor of Manav (India's first indigenous humanoid robot), the world's first mind-controlled wheelchair, brain cloning, and the world's cheapest ventilator. He has also been a guest lecturer at over 13 IITs and various other institutions. He is the founder of A-SET Robotics, a leading robotics research company based in New Delhi.
Read more about Prof. Diwakar Vaish

Right arrow

Chapter 11. Basic Switching

It must have been an epic journey so far! Recollect the time when you would have started reading this book, did you ever imagine that things could be this simple? It is worth noting that everything starts off very simple and, slowly and steadily, with the need for more sophisticated systems, the complexity of the technology also increases. Go back to the time when personal computing was not really a thing. It was only used in business and companies such as IBM were only servicing business clients. At that time, people who wanted a personal computer had only one option. They needed to build it from scratch, and to be honest, a lot of people used to do that. It really wasn't that hard either at least from my perspective. But, in contrast to that time, think about what they have become right now. Ever thought of building a computer at home? By building, I mean designing everything and not just assembly of the CPU. It is not very easy.

What I am trying to tell you...

Making Jarvis wake you up 


Now, this one is very interesting, as you all know our human body is programmed in a certain way. Hence, we react to different stimuli in a very known way. Like when it gets dark, our brain produces hormones that trigger sleep. Once the sunlight falls on our eyes, we tend to wake up. Well, at least this should be the case! In recent times, our lifestyle has changed enormously, which has started to defy this cycle. That's why, we are seeing more and more cases of insomnia. Waking up by an alarm is certainly not natural. Hence, you are never happy listening to an alarm in the morning, even if it has your favorite song as its tone. Our sleep cycle is supposed to be synchronized with the sunlight, but nowadays hardly anyone wakes up by this method. So, in this chapter, let's first make a smart alarm that will replicate the natural way we wake up.

Working with relay and PIR sensor

As we are dealing with high voltage and higher currents, we would be using a relay. To do...

Summary


So, finally, we have made our first mini Jarvis, which wakes you up in the morning and even irritates you if you don't wake up on time. I hope you have really enjoyed this chapter by learning about two-motion sensors and their application in automating the electrical appliance. So, go ahead and try one at home, modify the code according to your needs, and bring out some really cool stuff. Next up, we will make our Jarvis do some more cool stuff, and we will cover some more exciting stuff on human detection.

 

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Python Robotics Projects
Published in: May 2018Publisher: PacktISBN-13: 9781788832922
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.
undefined
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 $15.99/month. Cancel anytime

Author (1)

author image
Prof. Diwakar Vaish

Prof. Diwakar Vaish is a robotics scientist and the inventor of Manav (India's first indigenous humanoid robot), the world's first mind-controlled wheelchair, brain cloning, and the world's cheapest ventilator. He has also been a guest lecturer at over 13 IITs and various other institutions. He is the founder of A-SET Robotics, a leading robotics research company based in New Delhi.
Read more about Prof. Diwakar Vaish