User:Wikisity/Enes-100/project 3

My Instructor's user page which points to this.

My Task Was
My tack this Week was to:
 * Document each line of the current code.
 * Review Autonomous Power Wheel Project and the mechanism used to control their linear actuator.
 * Look at the smallest linear actuator useful for this project and future needs.
 * Testing this code using a TV wall mount.

What I Did
Here is the documentation of the code used, divided in three parts. The assembly of each part give the entire code that control material used for this project spying TV.

The Autonomous Power Wheel Team, probably used a list of materials, adapted for their project. After reviewing the tools needed for our project, Spying TV, it appears that we need: Here is the link toward a smaller linear actuator that one of my group-mates found on the internet. It is cheaper too. Here is a good link in order someone is interested to look for more linear actuator The end result of this project is to discuss with the team how to mount each devices and pass to the testing phase.
 * An arduino Board and a Monster Motor Shield responsible to control and power the circuit.
 * A linear actuator controlled and powered by the arduino and the Motor Shield.
 * This above code to control the movements of the TV wall mount
 * figure out with the team the mechanism to mount all devices we have.

Next Steps

 * Discuss with the team about ways to mount each devices.
 * Techniques to power the entire system and finalize the project.
 * Use servomotor for precise control of the TV mount.

My Task Was
My task this week was to :
 * Figure out the connection between a servomotor, an arduino, the motorshield ,and an ultrasonic sensor HC-SRO4.
 * Figure out the program that allows the arduino and the sensors to communicate.
 * Reflect about the mechanism to use to power the entire system.

What I Did

 * I started to connect the three wires(yellow, red, and black) from the servo motor to the arduino.
 * knowing that the mechanism to connect the wires is such as:

Next I spend more times glancing at previous work including sensors, arduino Duemilanove, and monster motor shield. I found this link interesting to connect the arduino and the sensors. Even though their connection includes a white board, which is a tool I missing so far. The big step for this task would be to program the sensors. I might have to discuss with the Professor to find a way to connect the entire system(servo motor, arduino, motor shield) in order to continue with the testing phase. I started testing the code I have, to observe the behavior of the servomotor. After compiling the program I am about to show you, the servo motor executes some movements, but at a lower speed. I did not have the chance to take a video of this first try. Here is the link of the code I intend to work on and make some changes. Next, I will split the code in five sections.
 * Black wire goes to GRD
 * Orange to digital pin 4
 * Red to the 5V.


 * The power supply has been replaced by the one on top. We are now connecting the black wire of the actuator to the red entry of the power supply.
 * In this video the connection black wire- red entry generates the movement of the actuator. We used black-black connection which was not working at first because that is what pulls the actuator in. And the actuator was already all the way in.
 * This video and this  one bring more details. They both show how to connect the actuator's wires to the power supply.

Next Steps

 * Start making changes on this above code.
 * Pass to more testing phase and observe the behavior of the servo motor.
 * Discuss with the Teacher of how to connect the arduino, the servo motor, and the motor shield.

My Task Was
My task this week was to :
 * Create the code that allows the two actuators to run back and forth.
 * Generate a dancing movement with the two actuators so that the TV mounted will run all the way out, half way back in, and swivel left, right.
 * Figure out the code that senses someone's presence and generates the movement of the two actuators.

What I Did
I decided to have several several lines of code of motorGo function and switch the values of pulse width modulation (pwm). pwm command is the last value of motorGo function, in the format motorGo(int value, int value, pwm). pwm is also an integer(or int). All the seven motorGo function I am using in the loop function are to obey the following logical: Finally, I figured out the code that senses the human presence in order to reflect this Festo wall (video) which is similar to the project spying TV. I simply created IF statements, imported library, and the last screenshot shown below is a sample of the code that I wrote.
 * At first, the two actuators run all the way out, then run half way back in at the same speed.
 * Next while one moves out, the other one moves in, and the movement is repeated four times.
 * The last instruction of motorGo function inside the loop function enables the actuators to run all the way in. Then the execution of loop function starts again.


 * This video and this one  summarizes all this work described through these lines of code and makes everything simple.
 * The above last screenshot of loop function of the code senses a human presence and control the behavior of both actuators.


 * The code that senses the human presence will be mainly explained during the final week.
 * Particularly for next teams, give details of variables to initialize, library to import, how to manage some Pin variables, and handle IF statements.
 * Here is a video  and the other one  of my hand close to the sensor or far away of it, generates the movement of actuators.

Next Steps
My next steps would be to:
 * Finalize the code that senses the human presence and decide the behavior of the actuators.
 * Optimize the code and explain it so that it is going to be benefit for next teams.
 * Make the final code and the documentation easier for next teams to give appropriate motions to the wall mount TV if ever there is not enough time to finish it up.
 * Make the code easier so that the next team can innovate depending on their ideas.

My Task Was
My task this week was to:
 * write the entire code that senses the human presence.
 * Document the entire code that senses the human presence.
 * Explain one to two strategies that can be used to give motions to the TV.
 * Make the code easier so the next team has opportunities to improve and understand the work done.

What I Did
I thought to write down and explain the entire code so that everyone reading this page include one intend to work on this project in the future has a clear idea about the motions of the TV.
 * In addition, two techniques can be used to give motions to the TV mounted and handle the motions using angles:
 * One can decide to use three sensors. one sensor mounted in the middle of the TV. the others mounted to the boundaries of the TV.
 * The sensors mounted to the edges of the TV will serve for the motions using angles.

Depending on the fact that someone is closer or far enough from the TV and his angle from the TV, one sensor senses his presence and the TV moves back, forward, swivel left and right. The motions given to the TV depend on the movements back and forth of the actuators.
 * Another technique is to simply play around with the movement of the linear actuators.This is simple and the TV will move according to the movements of actuators.
 * Here is a video to illustrate the second technique using two actuators.
 * Below is the entire code to senses the human presence divided in sections.


 * In this video my hand determine the movements of the actuators or let's say the TV.

Next Steps

 * Decide on the technique to use in order to give motion to the TV.
 * Mount all the materials including those of the other team members of this project
 * Pass to the Testing Phase.

My Task Was
this week is reserved to present drawings that I have made and improve the latest version of the code to control the linear actuators.

What I Did
I decided to draw in 3D model a linear actuator and simulate the movements up and down.

Materials
I created three files of different parts of the drawing I have made:
 * 1) A ruler to take the dimensions of the physical actuator and apply these dimensions to drawings.
 * 2) A CAD software, here named Inventor to start the drawing part.
 * one file named file 1, to draw the entire linear actuator.
 * A second file named file 2, to create a circle and extrude the circle to give a shape, so my actuator fits perfectly in the first design.
 * An assembly file where I combined one part of the actuator to the other sketch.

Here is the simulation of | my actuator working.


 * I also spent some of my times working on the team page, filling in useful information that as a team we have been doing separately. Here is the associated CDIO and SPYING TV team page.
 * In the section Problem there is defined the goal of the project Spying TV.
 * In the section Conceive we are presenting requirements, costs, and materials needed for the project.
 * In the section Design we are showing some of the drawings that PHI, DORION, and I have made. Videos of testing, modeling, and simulations. I record videos of my programming work, which is shown into this section.
 * The section Implement requires to mount all the material, and have a finite product that later on could Operate. Since we did not have all the materials needed on time and some of them should be purchased by Howard Community College, we did lots of work that enable the next team to finalize the project. I however, included videos that helped to push the project forward.
 * The section Operate means that the product is in use and the team keeps on working to improve the design. Once again i will be a great opportunity for the next team to work on that task.
 * This part contain 1 presentation. Many other presentations will be added.

Next Steps
Keep working and add new ideas to push the project forward.

Task
The repository contains all the arduino codes visible from Github cloud and a README file added to help give people an overview of my project.
 * Create a GitHub account.
 * Download the software from the cloud, install both Github and Git shell.
 * Create a repository named spyingTv from GithHub cloud and installed on my local hard drive.

What I Did
I Downloaded GitHub for windows, and I failed to import all my programs to github cloud.

failures
Once GitHub software was installed, I failed to make sure that the readme file was included in the repository that contains all my codes.

Success
Here are the steps that I had to do in order to help have an overview of sypingTv project. Here is my GitHub page. which refers to all the programming that I had to work on for spyingTv project.
 * Have an active account from github.
 * Download github on your local hard drive.
 * Create a repository from github cloud and named with your project name.
 * Download the ZIP file from the open source. copy and paste the README file in the repository created.
 * Import your file codes into your repository.
 * Commit each code toward github.
 * Publish your project.
 * This link toward my programming work is also available on Implement section of the team page.

Delete a repository

 * Go to Github website, then sign in with your username and Password.
 * Click on the name of your repository, down at the bottom right corner of the page.
 * Then at the right side of the page you can:
 * Click on settings then delete the repository.

Next Steps
Use all the skills learned and apply them for future projects
 * Work on my own projects that need some programming.
 * Continue documenting any projects that I am involved to.
 * Keep working on CAD design and make more 3D drawings.