Friday, November 29, 2013

Friday, November 29
Tuesday, we wrote the code for our car that integrates an IR remote, two motors, and the RGB led light. The code will allow a user to drive the car using the IR remote, and with each different direction that the car goes, a different color light is lit. A copy of the code is given below.
The motors that we are using are gear motors with two wires that can connect directly into digital PWM pins of the arduino board.  One of the wires allows the motor to spin clockwise, and the other wire allows for counter clockwise rotation.  Because of this, coding our car was alot easier to do than we originally thought.  An H-bridge was also not necessary because of the simplicity of the motor pins.  We used the IR library that Prof. Sullivan posted to the Design Lab blog, which made setting up and using the IR remote very easy.  The RGB led was integrated into the code to help tell what is going on when a button is pressed. With the way the code is written now, the led glows green when going forward, red when going backward, blue when it turns left, purple when it turns right, and white when it is not moving.
A video of the code uploaded to the arduino board with the motors and led attached is below.



This final code might be slightly altered if we decide to change how the car is going to turn. The way it is now, to turn either left or right, the corresponding wheel will spin while the other is stopped. We also are thinking of ways to integrate the "A", "B", and "C" buttons into the car.  Right now we are thinking of doing pre-set paths that the car will follow.

We also sent in our parts for 3D printing and laser cutting.  We needed to print 4 parts, two of our L-brackets and two of the motor brackets.  Images of these two final models submitted are below.



The code took about an hour to write and add comments. We should have our new motors and our printed and laser cut parts altogether by early next week so that we can begin building the working model.

Tuesday, November 26, 2013

Tuesday, November 26

Yesterday, all four of us met and worked on SolidWorks and a motor test.  We made a test car out of cardboard and our wheels, casters, and motors. The following video is a short clip of the car going straight.



From this test we determined that the motors that we bought are not going to have enough torque to drive the car.  The motors get stuck and need a push to get spinning when starting from rest.  Because of this we ordered new motors which should have more than enough torque and RPMs to drive the car. 
Because of the new motors, we had to update our SolidWorks brackets that we made previously to fit these newer, bigger motors.  They have the same basic shape only bigger.
Today, we tried to work on the code for the car however my arduino board is currently having some problems which made it unable to be used.  We will start working on the code shortly.
We worked for about 3 hours yesterday and an hour today.

Tuesday, November 19, 2013

Tuesday, November 19

Today all four of us met in the lab room and worked on the solid models of the parts.  We decided on the ball casters for the front wheels and made one on SolidWorks.
https://www.dropbox.com/s/q7aq4veq5j4vort/Ball%20Caster%20Body.SLDPRT
https://www.dropbox.com/s/g4dg0sy6fo3873d/Sphere%20Ball.SLDPRT

We also made the main frame of the car.  There are still some minor additions we have to make in terms screw holes, but for the most part it is complete.
https://www.dropbox.com/s/flr4sbwwle2xeq7/Car%20Frame.SLDPRT
An L-bracket was then made that will connect the motor bracket and the end of the motor near the D shaft.  We made it the same width as the motor bracket so that the screw holes will line up for both brackets.
With this all the solid models were complete so that we could assemble them all into the final car. The link to the zip file containing the assembled car and an image can be found below.
A motion study on the car showing the motion of the wheels will be added later.  

We also ordered our back wheels and the ball casters from Pololu which should be in by next week.  Our motors, H-bridge and IR remote came in yesterday so we will begin working on the code for the car this weekend. 

In total we worked for about 2 hours today on all of these parts and assembling them.

Saturday, November 16, 2013

Today myself, John, Angelo, and Thorsten met around 6:00pm to work on the project.  Our supplies we ordered from Sparkfun have not come in yet, so we are going to wait to work on the Arduino code for the car until they come in.
We began work on the SolidWorks model of the car.  On the Sparkfun website, we found schematics for the motor and made a solid model of one to the specifications in the drawing. We made the motor into an assembly consisting of the following  D-shaped drive shaft and motor body so that the D-shaft will be able to spin once a motor is attached to it in SolidWorks.
https://www.dropbox.com/s/ahy3yohgaqz0z5g/Motor%20Body.SLDPRT
https://www.dropbox.com/s/5wd4z9pqvv5xmde/Motor%20D%20shaft.SLDPRT

Together with this motor we made a bracket that will slide into the back end of the motor to connect the motor to the main frame of the car.
https://www.dropbox.com/s/wfo2bu5qgpg7pth/Motor%20Bracket.SLDPRT
We also made a model of the rear wheels we plan to use.  The rear wheels we will be using are Pololu 90x10mm wheels.  We chose these wheels because the drive shaft of the gearmotors we bought are a D-shape meant to fit directly into the Pololu wheels.
https://www.dropbox.com/s/d00nscul2cgtgvt/Back%20Wheel.SLDPRT
We made an assembly of all of these parts that will be later attached to a body.  There will be two of these assemblies, one on each of the two sides of the rear of the car.
With this assembly, when the motor pin is spun, the wheel spins along with it. A video of this will be posted once the final assembly of the car is made.
Together, we worked approximately an hour and a half tonight making these solid models, and the final solid model of the car should be fairly easy to make from here. Drawings have yet to be made for these parts, but should be available in a few days.
We also started looking for options on what to use for our front wheels.  We want the car to be able to turn by simply making the gearmotors on the rear two wheels to spin in opposite directions and in order for this, the front wheels will need to have 360 degree rotation.  We are thinking of using either small swivel wheels similar to those on a computer chair, or small ball casters which both allow this kind of movement.  
Altogether, with the SolidWorks and further brainstorming, we spent about 2-2.5 hours tonight working on the project.

Tuesday, November 12, 2013

November 12, 2013

Today we brainstormed ideas for our project.  Right now we have decided to build a small RC car capable of being controlled by an infared remote.  We ordered two mini meatal gearmotors from SparkFun, an H-bridge, and an infared remote for the car.  We are not sure how hard the infared sensor will be to program for the car, so we may or may not stick with this idea.  We plan to meet later this week to begin work on the solid model of the car on SolidWorks.  We are going to wait to work on the Arduino code until our parts come in, so we should begin that next week.