PROJECT WIRLESS COMUNICATION

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

Continue reading “PROJECT WIRLESS COMUNICATION”

Project snake

The project snake is done. It took us a long time to complete this, but we finished it. Our snake game is ready to be played. However we had to download another text editor with c++ libraries included, its name is Dev++. Here is the code of our project and also we have included an .exe to run the game very easily.

https://www.dropbox.com/sh/j9fiodhxsfuu7lh/AADiwRGMjffnAJIUHg8_QaDHa?dl=0

PROJECT: DATE FINDER 1.0

Keep-Calm_Final-Project

The day to upload the final project arrived. And here it is, here I am! Surviving my finals.

So, what this program basically does is it tells you what day of the week was, is or will be from whatever date you input to the program. It also tells you if the year of your date was a leap year or not, and gives you the option to display leap years from your date to 100 years later.

It gives you the option to create a text document, named as you like or named as the day of the week of your date (.txt). It gives you the optionto write information inside of the document.

Another interesting thing that it does is that it can tell you  a cool fact about a leap year from 1900 to 2016, whichever one you choose.

To understand how it works better, run it on your computer or watch the demo run video (IN SPANISH) of the program here.

For this program I integrated my C++ knowledge learned on this course to be able to make it. In order for the program to work, I used:

  • If else statements.
  • While and do while statements.
  • Basic input and output (CIN, COUT)
  • For loops.
  • Arrays. Exampel of use: int leap_ar [] = {1904, 1908, 1912, 1916, 1920, 1924, 1928, 1932, 1936, 1940, 1944, 1948, 1952, 1956, 1960, 1964, 1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016};
  • File handling and creation.
  • Writing on files.
  • Strings.
  • Basic algebra and operations.
  • etc…

Among other useful tools learned during this course.

Credit for the equation used in this program to calculate the day of the week goes to: http://www.tondering.dk/claus/cal/chrweek.php#calcdow”
Credit for the info on leap years goes to http://www.infoplease.

Archivo_000
Archivo_001

Continue reading “PROJECT: DATE FINDER 1.0”

Proyect

For the proyect Christian and I decided to do a program with lots of programs we had been doing along the semester this includes: the simple calculator, the temperature converter, the lucky game, function calculator,  and the factorial calculator. This is our program in case you might need it CODE.

sc1

sc2

sc3.png

sc4.png

sc5

sc6

sc7.png

sc8.png

sc9.png

sc10

that’s the program working right there, I must give more credit to my coworker, because he did most of it. Please check out his page

Final Project!!!!!!

Hello and welcome back to my blog!

This post is special because is one of the last so I wanted to do something special with it and I’m going to show you in what I was working months ago with my project partner.

We were thinking about to create a code releated to the physics but in a moment of madness we change our mind and we do something releated to “video games”.

There’s a lot of topics in video games but we decide to create a space battle game and it is funy but the special thing is that we learned about programming and that is the important thing.

I’m glad to show this project!!!

2016-05-03

Thank you for see my post and as you can see it is an other level of programming but you can be sure that if you practice you can do things that you really don’t expect it and I write this for experience not only for do it.

I want to say thanks to my teacher who help me with the project.

CLICK HERE TO SEE THE CODE.

MY NEXT POST WILL BE SPECIAL SO DO NOT MISS IT PLEASE!

Project.

09/03/2016

Today we officially started our final Project. We will be doing a library of retro videogames for example, snake, space invaders and brick. We get enough information to be able to start our Project. We begin with the snake game, we thought that it would be easy, but it’s not like that. We got the basic so far, but we need to download several libraries like conio.h; however, we don’t know how. So we will be asking Ken next class.

Project! 2 DOF Robot Arm

So! I finally decided what my project for the semester wll be…

A two degrees of freedom robotic arm. I chose this project since the arm will require a lot of porgramming to work, an I´ll do it on C++. This project will be worked together with the project in Computer Drawing class.

A two degrees of freedom robotic arm is a machine simulating a human arm, but with only two “joints” or  places where it can bend or rotate.

The objective of the project, besides learnig A LOT will be the next one, as I stated it on my computer drawing document.

  • create an easy to use and easy to understand two degrees of freedom robotic arm, capable of lifting a maximum weight of one kilogram from a distance of 60 centimeters. An easy to replicate arm, with all its information free to use for everyone and after my first design is released, the code will be open sourced., as well as the design.

Here you can have a look at my first sketch of the project:sketch2

 

I did two toher sketches, have a look:

sketch1
sketch3

I chose the first one, since I think it´ll work better.

Since this is a blog about programming, about that is what I will keep you most updated on.

What I know is that I´ll program the servomotors with C++, through a Freedom by Freescale develpment platform (which I already have, thanks TEC) on the online tool Mbed. I did some similar programming last semester on a little line-following cart. 

I´ll keep you updated, now my project has to be approved by my proffesor- Thanks for reading.