Tuesday, January 31, 2012
1.31.12 VEX Team Project programming & phototransistor testing
Today, I started programming for the VEX Square Bot. After downloading the software to our computer I was able to download the program to our Square Bot. This first program was without encoders and the functions were based on time in seconds for the movements. This was very difficult and needed trial and error for all of the paths that we wanted the Square Bot to take. We ran the Square Bot in the Labyrinth and it didn't do so well as far as the complete course. We have yet to try the same course with encoders which should make the process less difficult and more precise.
Thursday, January 26, 2012
1.26.12 PC to Microcontroller Interface, VEX Team Project
I used the circuit from a previous lab (LDR circuit).
Here I was programming, debugging, and transmitting data to the computer screen. Programming and debugging the micro-controller to read analog data (LDR) and sending the output to the computer screen allowed for values to be viewed in real time.
Another way to transmit data to the computer screen is by using serial terminal with sertxd. This allows the person to program a message with the output data to make it more clear; "The value is ". The data is continually updated at each new line/message.
Serial input can allow the programmer to have the micro-controller interact with the keyboard input.
Today, we started on our team project with the VEX 'Square Bot'. The first thing we needed to do was to plan the project. We started with a PERT chart showing boxes of tasks that we needed to accomplish in chronological order. We then transferred this to our Ghant chart which was more detailed. The Ghant chart showed the tasks, who was responsible, and the days when the tasks were to be completed over the next couple of weeks. Having a plan set up before the project began gave us a clear idea of where we would be going. We expect there to be changes along the way. We understand that this is a guide to help us stay organized and goal orientated.
Wednesday, January 25, 2012
1.25.12 Music
For this circuit, I added a piezo sounder to make sounds based on different frequencies from the PICAXE micro-controller. I eventually used this circuit for the 'toy hacking' project. Pin 2 on the micro-controlller was used. Below are several programs used to make different sounds. I kept each program as I added others by placing a semicolon in front of each line that was not used for the current output.
1.25.12 Toy Hacking Project
I took apart a robotic toy (hacked) by simply unfolding a flap held down by Velcro and cutting a zip tie that held the fabric wrapped around the battery and circuit board. I then removed the plastic cover that surrounded the battery location and exposed the circuit board. I then carefully pulled partially ut the circuit board and began to locate the motors related to the eye movement of the toy. I then connected a few wires to one of the motors (eyes) and attached it to the PCB that had the circuit set up for it.
I then attached it to a circuit board with an analog input (LDR) and output (piezo sounder).
Tuesday, January 24, 2012
1.24.12 Interfacing to a Microcontroller
The next circuit consisted of a darlington configuration (the 2N3904 acts as a signal transistor providing 300mA to the TIP 41 which acts as a power transistor with a 1K resistor. This configuration provides a high Gain.
In the next circuit, I replaced the two transistors with an equivalent darlington TIP 122 transistor. The light is just as bright and the TIP 122 remains cool.
Using the same circuit, I replaced the incandescent bulb with the motor for the eyes of the toy I 'hacked' and added an emf suppression 1N4001 diode in parallel for the coil of the motor.
Friday, January 20, 2012
1.19.12 Transistor switching and Microcontrollers
I then removed the push button and the 10K resistor. I then used my finger to complete the circuit.
I changed the program by decreasing the on/off time by half (500ms). This increase the blinking of the LED by half.
Using an LDR (Light dependent resistor) in the next portion of the circuit, I entered another program that provided a varying voltage signal range After adding a line of debug int the program I was able to fine tune the range for a working model. The range was from 190 to 200. One LED would emit light if the value was over 200, while the other would emit light if the value was below 190. In the picture above, in the dialog box off to the right in the second column, the value is above 200 and the red LED emits light in the picture below.
In the picture above, the value in the dialog box is less than 190 because the LDR is covered from the surrounding artificial light and the green LED emits light in the picture below.
1.18.12 Cutting the PCB connections for a Logic Probe and soldiering a DB9 connector interface.
Today, I started off in the soldiering room to build a DB9 connector interface.
I came back to the class and worked the rest of the time on the Logic Probe. I never worked with an Exacto knife, so I was very cautious not to injure myself. I took detail in not cut the desire connections on the PCB. I used the multimeter (ohmmeter) to test for connectivity. I worked on it more outside of class and performed more testing.
I came back to the class and worked the rest of the time on the Logic Probe. I never worked with an Exacto knife, so I was very cautious not to injure myself. I took detail in not cut the desire connections on the PCB. I used the multimeter (ohmmeter) to test for connectivity. I worked on it more outside of class and performed more testing.
1.17.12 Square Bot Assembled, programmed and test run, Logic Probe Circuit
For the beginning of the lab week, I assembled the Square Bot chassis. The rechargeable battery was added, the program was uploaded, and I test ran the Square Bot. I made some adjustments to the motor's screws and it ran fine.
Today, I set up a circuit for a logic probe using a transistor 3904.
After adding a resistor (150KOhm) in parallel to the 360 Ohm resistor and connecting it to the base of the transistor, the LED was brighter.
I went to the soldiering room to soldier the Logic Probe onto a PCB.
Today, I set up a circuit for a logic probe using a transistor 3904.
After adding a resistor (150KOhm) in parallel to the 360 Ohm resistor and connecting it to the base of the transistor, the LED was brighter.
I went to the soldiering room to soldier the Logic Probe onto a PCB.
Sunday, January 15, 2012
1.12.12 Schematics, Ohm's Law, Potentiomer, Switches & Relays, Square Bot
Today, I set up a circuit with three LEDS and resistors. The resistors increased in resistance (100ohms, 1,000ohms, and 10,000ohms). I found that the LED with the least resistance (100ohms) was illuminated the brightest and the dimmest had the highest resistance (10,000ohms).
I set up a circuit that included a potentiometer, an LED, and its necessary resistor. The potentiometer behaved like an adjustable resistor that, when turned, made the LED go from dim to bright.
Next, I took inventory of the Square Bot assembly tool box to make sure all the parts on the list were accounted for.
The next circuit I set up had two LEDS, one resistor, a relay, and a push button switch. When the button is depressed the green LED is lit and the relay makes a noise.
When the button is not depressed the red LED is lit.
Friday, January 13, 2012
1.11.12 5V Power supply, breadboard circuit, and using a multimeter.
Today, I completed soldiering the pins and heat shrinking a cover to the 5V breadboard power supply AC adapter that I will be using on all of the lab projects.
Here, I set up a breadboard circuit using one LED and one resistor (1000 ohms) in series.
Using the multimeter, I tested voltages on a few DC batteries. The first was a 1.5V D battery and then a 9V battery.
With the multimeter, I tested an unregulated AC 9V adapter. The value was higher (14.24V) than the posted 9V. I added a 100ohm resister to the end and measured 11.8V. The resistor caused a drop in voltage.
With a multimeter, I tested my 5V adapter. The value was approximately 5.11V.
With the multimeter, I measured the resistance values for five resistors and compared them to their band color code values. The measurements were as follows: 75ohms was 75.8ohms, 100ohms was 98.9ohms, 390ohms was 388ohms, 470ohms 469ohms, and 680ohms was 673ohms.
With a multimeter, I measured a potentiometer. The lowest value was 4.7V, while the highest was 8.71KOhm.
Wednesday, January 11, 2012
1.10.12 Soldiering components, wires, and heat shrinking.
On the first night, I practiced soldiering components to a breadboard and wires together in the lab. I also practiced heat shrinking the soldiered wires in the lab.
Subscribe to:
Posts (Atom)