Well guys i guess this is the last blog i will be posting for this course. It was a big pleasure and I’m glad it happened. Here is a little video of me at my first crack a t scribal. enjoy.


Class Review

Class Review

Hello everyone that normally follows my blogs, I know that I took longer than expected this time. I have just been bad at managing my time lately, I have to work more on that. Well in this blog I’m gonna be talking about ken’s course and this new method of LEARNING not teaching. Let me just start off by saying that I loved it and I wish everybody else was doing it too. Of course not exactly the same because every course needs it’s own special way. I mean programming at this level is something that you can pretty much do by yourself but physics, math and chemistry maybe isn’t so easy. For example the video below is a perfect demonstration on what ken’s doing with us in his class. It is not exactly the same but it is very very similar. I guess the big difference would be that he doesn’t give us a specific video to watch, he just expects us to learn at home but during class he is always there to help, so that part is the same.

I was skeptical about this course at first, I even went to see ken at his office to tell him that I was a bit worried about how things were gonna go. He told me it would be fine and I guess I trusted him. Even though ken didn’t really lecture us on anything, rather than asked us to make new programs and to find out how to do them on our own, I learned so much about programming and social networking. I used to hate asking anybody, other than the teacher, for help. Now I see that it is even better to learn with your classmates instead of by yourself. Now before I talk about the things that learned to do I would like to talk about traditional students and traditional methods of learning.

Over the years I have watched my classmates behave differently towards the professor, being the professor’s lectures always of the same style, students came to become less interested over the years in what the profesor said at the whiteboard. I have studied in USA and in Mexico and honestly students react the same way to the traditional method of teaching. Of course not all students are the same, I saw some students that actually wanted to learn and payed attention. I feel that most students in school today care more about getting a grade, or worse passing the class, than actually learning. I don’t blame them. I mean that is what we are used to, Over the years your teachers have enforced the idea of getting good grades. But that is garbage I know first hand that a grade does not determine how much you have learned in a class. I recall history classes that I aced but a barely remember a thing about that class and on the other hand I remember acing my physics class and to this day I still have that knowledge. I think that the secret to really learning is wanting more knowledge. I think it is a terrible idea to have the knowledge enforced on you.

The flipped learning method is a great idea a to get students to learn in a much more efficient manner. Some People are scared at first but if they want to learn they get over it. Others do nothing in the whole course, so they learn nothing and of course they don’t like this method of learning, they don’t want to think to much, they just want to do what the professor says (barely) so that they can pass the class. Well  with flipped learning you can’t advance unless you take action. ken taught us how to find and use information by ourselves so that we don’t have to depend completely on a teacher to learn things. I personally learned how to do many things in this course. And the things I learned aren’t even on the mastery list for this course.

The first thing I want to show you guys is this link.

Project Wireless Communication  in this blog I explain how I learned to program a PIC and use it for a life application. I’m trying to build a small and economic car immobilizer. So far I am making big progress. The next step is to pass the circuits on tho an etching board and test the product on a car.

I also learned how to make a cool classic snake game in the video I’ll show you a little demonstration. And I think the hardest program That I made was with data analysis. For my statics class I had to make a Hydraulic crane and I had no idea what dimensions would be the best for the system to work. So I made a program that is a simulation that analyzes all the data and calculates the different moments generated in the crane to see which dimensions are optimal for it to function properly. And a video just to close things up, enjoy. Oh almost forgot about the code:


made by Orlando Lara



Hey guys it has been a while since the last time that I published anything but I came back to show you guys some cool thing that I have been building for some time now. It isn’t perfect yet but it is a working prototype. Basically what I’m trying to do is build a security system for cars. In the market they are called immobilizers but they ara kind of expensive so I’m made this much more economic one.

So in the video you will see two circuits, one is the transmitter and the other is the receiver. Each circuit consists of 3 parts. In the transmitter circuit we have: an encoder (HT12E), a PIC 16F628A and a radio frequency transmitter. In the receiving circuit we have: a decoder (HT12D), a PIC 16F628A and a radio frequency receiver.

I made of a pattern of numbers that i choose at the beginning of the program. The two circuits work as a pair and if any of them fail then the whole system fails. The flow of information goes like this: first the PIC from the transmitter sends in a loop information to the encoder (HT12E) and then the encoder encrypts the information to then send it to the radio frequency transmitter. After that the radio frequency receiver intercepts it and sends the data to the decoder (HT12D), this decoder deciphers the information and sends it to the PIC on the receiving circuit. If all the information is correct then the pick activates a relay which finally activates the fan. Remember that the fan is just there for demonstration. It can be replaced with anything that needs 12 volts.Capture1.JPG

Capture2Here is a screenshot of my code. The first image shows the code for the first pic which is on the the transmitter circuit and the second image is the code for the second pic which is on the receiving circuit. Alright so basically in this code i work with delays and ports. The code is mainly inputs, outputs, conditionals and a loop. The first code sends for pieces of data which are interpreted as 4 different pins either sending a low or high signal in that instance. there is a delay of 100 milliseconds between each of the four instances. I use port a on the PIC as an output and port B as an input. In the first code if the PIC receives an input it sets all of the 4 output pins to high, which will make the fan turn off. For the second code I am constantly reading what it is receiving as an input so that the PIC will know if it needs to turn on the fan or turn it off.

Here is a link and video that I used to make this project possible:


And finally here is my video of my project, making a test run and of course.


Exam2 WSQ13

Exam2   WSQ13

Photograph credit

Hey guys, in this blog, well actually this tutorial I’m gonna explain just one of the ways that you can do the programs for our second partial exam with ken. The video is pretty long so I included in the video description the time at which I start explaining each program.

q1.cpp 0:38        q2.cpp 6:00        q3.cpp 10:00       q4.cpp 16:20

Here is the code for each one:





And of course here is the video tutorial, enjoy (I hope).

made by: Orlando Lara

#WSQ13 #TC101

How to install nurses on a Mac

How to install nurses on a Mac

Photograph Credit

Hey guys, It’s me again. This time I didn’t specifically come to show you how to make a program. I know lots of you guys are going to make a game for the project in Ken’s class. Well if you have a mac then you will need a library called “ncurses” so you can move the cursor around the screen. That’s what this blog is for. The link for the code you have to copy on your terminal to get ncurses is this one: ncurses. And in my tutorial I also showed some code on how to print stuff in different parts of the screen(with coordinates). Well the guy on youtube that taught me how to do that is this one:

Be sure to check out his other videos, they are pretty good. He even has a tutorial on how to make the snake game in c++ using ncurses. And last but not least, here is my code. I know it’s very simple but whatever here it is: Move.cpp

Made by Orlando Lara

The Needle in the Haystack (WSQ12)

The Needle in the Haystack (WSQ12)

Photograph credit

This program was really hard to make. I think that is because we have never worked with something other than the monitor to run our programs. Now we had to involve a text file. I started this program on friday and all I have been doing is this, I finally finished and I want  to help you guys so it doesn’t take you so long. I think I easily read like 6 webpages, checked in 4 books and watched 7 youtube videos to find out how to do this program. That was the thing that consumed most of my time.

I’m gonna save your time and tell you the information that was helpful. My tutorial is divided in three sections: the first is just an introduction, the second is how to find a word in a string and the third is how to find the word in a whole text file. First you need to know how to open, close, input and output to a file. for that check out this page. Then you need to know how to work with strings to find a word in it. And the rest is to use your brain for the logic of the program. I looked in so many places really, but there was one book that had THE ANSWERS TO ALL MY PROBLEMS, I wish I had looked there in the first place. AND WHERE IS THIS BOOK?! Well.. believe it or not, it’s the book for our course. Yeah I know, who would have known. This is the first time I look at it. In my tutorial I explain how to get it but you can just press this link and download the PDF.

Seguir leyendo “The Needle in the Haystack (WSQ12)”

The Algorithm of the Quiz…6

The Algorithm of the Quiz…6

Photograph credit

It is very late, but I didn’t want to go to sleep before finishing this so here it is :). This quiz was very easy, all we had to do was follow the formula and use the arithmetic operator % to get the remainder of a division. Then we use recursion to make things a lot more easier. The program is 28 lines of code.


Seguir leyendo “The Algorithm of the Quiz…6”