 Pertama, terima kasih banyak kerana datang. Saya tahu hari ini, saya tahu kamu semua penat. Jadi, kenapa tidak kita mulakan dengan permainan yang mudah? Yang mana ini? Jadi, ini adalah permainan Simon yang basically adalah permainan memori. Jadi, apa yang berlaku? Ini adalah bahawa, bahawa ini adalah sebuah sebuah sequenya. Dan kemudian, saya akan mempunyai sebuah sequenya kembali ke Rest Verify. Dan ia berlaku lebih lama sehingga saya dapat ingat sequenya atau saya dapat mengalami. Jadi, basically, bagaimana ini berlaku? Jadi, saya pasti yang kalian semua di sini mungkin tahu dengan Rest Verify adalah, untuk mereka yang beritahu, ia adalah sebuah komputer, sebuah komputer yang mempunyai ke-cari ke-cari ke-cari, yang basically mempunyai ke-cari ke-cari ke-cari yang kalian harapkan komputer. Jadi, apa yang menarik adalah, ia boleh digunakan dalam beberapa projek maker, dan ia boleh digunakan untuk orang-orang untuk belajar tentang bagaimana komputer system akan berlaku. Jadi, ia ada perkara yang bagus adalah GPIO Pins, yang adalah bagaimana saya mengawal ke-cari ke-cari ke-cari di sini. Bergerak. Well, Rest Verify adalah sangat tinggi. Ia adalah sekitar 50 SGT. Dan ia boleh digunakan ke-cari ke-cari ke-cari ke-cari bersama. Dan ia mudah memperkenalkan. Dan apabila hal 5 tahun, dalam klas kita boleh belajar Python. Python code. Dan seperti, bahkan apabila hal 4.1-nya berlembung, kita boleh bergilang dengan Python. Halaupun, ia mempunyai beberapa kecari kepada semua, ia tidak berlebihan, ia mempunyai pengalaman proses, dan GPIO Pins adalah semuanya. Jadi, ia tidak ada banyak aplikasi ke-cari ke-cari ke-cari, tetapi di sini, ia menarik untuk terserah, Jadi ini adalah barang biografi yang mempunyai GPIO pin. Di sini ada 5v yang mempunyai LED lampu. Dan kemudian ada perjalanan, tentu saja, untuk latihan. Jadi each GPIO pin terpaksa mempunyai 2 stets, tinggi voltage dan tinggi low voltage. Dan ini dapat diperlukan programatikal dengan modul GPIO. Jadi ini adalah perjalanan yang mempunyai self-contained. All you need is the HDMI board, the wireless adapter, and the power cable. So the Raspberry Pi 3, which came out not so long ago, will have Wi-Fi enabled. But this is the older version. So this is the circuit diagram. It's not very complicated. It's just 3, like everything diodes and 4 push buttons, 2 of which are rising H, 2 of which are falling H. So these are all the lights and buttons. So how this is done is with Python software. So firstly we import the RPI.GPIO module and then there will be certain functions such as GPIO.SET board. And then each of the individual pins will have to be set up as an input or an output. And then ultimately to control the pins is a simple function called GPIO.Output and then which pin and then whether it's on or off. I will show you the code but the slides are hard to read. So as fun as this Simon game is, FMI is pretty fun, but there isn't much applications that you can do with it. So what I tried illustrate here with this Raspberry Pi is that it can be used to create a home automation network. So as this Forsager Conference, everyone is talking about all the internet of things and how we can connect all the appliances in the house to the internet. So basically imagine that the Raspberry Pi 80 has all the circuits contained here and they will have sensors which are this input buttons or they could be something like a temperature sensor, it could be something like a humidity sensor or light sensor and the actuators can be LED lights, can be a fan, can be an icon, can be anything. So let's say you want to control this from a remote device, a computer or a phone. So there's this sync-on partner which I'm using which is simply a free online software, or free to the extent that will receive messages and then relay them over to the Pi. So it's like a broker. So over here I have a web interface which is just done with a bit of bootstrap and HTML. And whenever one of these buttons are pressed, it triggers a javascript code over here and whenever one of the buttons are clicked, the javascript code will use pub.nub to send a message and you'll send true pub.nub to the Raspberry Pi. So can you see the Python code? Ya, so this is the Python code or thought you'll report RPIG by O and then pub.nub is a module for this bus and ultimately what happens is that whenever a message is received by the Pi, it reads through the message and then checks what is the content of the message and it will switch on the respective lines. So in an ideal home automation setup, so how would this work? For instance, we are talking about it could be a Stem Regions of Humidity Sensor or Viable. So the information will be tracked by sensors and then uploaded or sent by a partner to an online platform. So the user can check in the app or what's the temperature in the house or has that been an intruder in the house? It could be a motion sensor. So when the user checks this, the user can then use the app to control the appliances in the house. Also, this can be used for complete automation in which appliances in the house respond intuitively based on the surrounding conditions. Okay, why home automation? First of all, it's convenient. You don't have to leave the room to switch on the light or the fan or Viable. But more than that, it can also be quite secure because you can set up a motion detector and then when you're not at your house, if there's any motion detector, then the motion detector can be connected to the camera to take a picture and then you'll probably send to a web app or a phone app so the user who's outside the house can check and say, oh, it's just a dog or oh, it's a bugger and you should call the police. So it's also economically and environmentally friendly because there could be a lot of data that's being collected and monitored. And then you could see about oh, how is this? How much electricity am I using? Are these lights being on unnecessarily? Even if it's bright, the lights are still on. So the rest of the paper can also automate that process and switch on the lights if it's too bright or switch off the ACON when it's cold enough already. So moving on, why the Raspberry Pi itself? because it's quite cheap comparatively I think all the electronic parts together a whole automation system can cost as little as $100 and it's really easy to program like not a lot of experience in code is required to be able to understand how all of this runs and it's intelligent which means that as shown by the Simon game any input received will go through certain calculations like it can be math, it can be random, it can be a bunch of modules and then these calculations will be done before generating an input so this input is intelligently generated so based on whatever web application that is customized Python program is being done by the user. It does have a couple of limitations though. The Raspberry Pi GPIO system has a maximum of 5 volts of output so it works perfectly fine for LED lights but if you're talking about a real light in a room you'll have to collect that to release features which will then transfer that to AC power and then of course there will be security issues like I'll show you later right now there's a program that controls the lights here and it can be accessed by pretty much anyone who has the link so there will have to be password or encryption protocols in place to make sure that only the user of the owner of the house can actually control appliances in the house okay so we'll do a little demonstration does anyone here have like a mobile phone or a laptop with Wi-Fi network if you want you can try using this website please not everybody at the same time because it might cause some issues running as of now so this website is accessible by pretty much anyone as of now because there isn't really any security concern so the lights have been turned on and off and that is basically how you expect a home automation set up to work of course with more additional and on it's not just lights but this is what we have so far as a prototype does anyone have any questions if not then you all can feel free to contact me eating the site yeah thanks very much for everyone's attention