ENGR44 Project Log
This blog post is to just document some of the process of the final "lab". My partner and I had a bit of a rough start with our project. Although it impeded our progress forward, we persevered and met our goals adequately.
The project began with conceptual sketches of what we wanted.
From there, we decided on how it was to function.
This was the basic flowchart for how it would be powered. Essentially a triangle wave would be fed into a comparator and would over saturate the op amp once it hit the ref voltage, and output the negative saturation point. This creates a PWM for the motor to run on!
The problem was that the speed control voltage was to be manipulated by a system that could effectively tell the bot it was tipping and to compensate with motor movement. Our first idea was to create a PID loop from op amps for precise control.
With our parameters kept in mind, we conceptually created an EveryCircuit model for reference purposes:
The bottom portion is our "PID Loop" and the orange portion is the motor.
A PERT chart for organization was created and then we set to researching how much the whole thing would cost.
| Index | Quantity | Part Number | Description | Quantity | Unit Price USD | Extended Price USD | Real Quantity for project | Extended Price | ||
| 1 | 4 | RNF14FTD10K0CT-ND | RES 10K OHM 1/4W 1% AXIAL | 4 | 0.1 | 0.4 | 2 | 0.2 | ||
| 2 | 3 | S2.2KCACT-ND | RES 2.2K OHM 1/4W 1% AXIAL | 3 | 0.1 | 0.3 | 1 | 0.1 | ||
| 3 | 4 | RNF14FTD1K00CT-ND | RES 1K OHM 1/4W 1% AXIAL | 4 | 0.1 | 0.4 | 2 | 0.2 | ||
| 4 | 3 | RNF14FTD15K0CT-ND | RES 15K OHM 1/4W 1% AXIAL | 3 | 0.1 | 0.3 | 1 | 0.1 | ||
| 5 | 3 | BC1.00ZCT-ND | RES 1 OHM 0.6W 1% AXIAL | 3 | 0.33 | 0.99 | 1 | 0.33 | ||
| 6 | 3 | RNF14FTD100KCT-ND | RES 100K OHM 1/4W 1% AXIAL | 3 | 0.1 | 0.3 | 1 | 0.1 | ||
| 7 | 6 | BC2665CT-ND | CAP CER 0.1UF 50V X7R RADIAL | 6 | 0.18 | 1.08 | 4 | 0.72 | ||
| 8 | 3 | 490-14507-ND | CAP CER 22UF 25V X7S RADIAL | 3 | 1.24 | 3.72 | 1 | 1.24 | ||
| 9 | 3 | 493-13399-ND | CAP ALUM 1000UF 10% 25V RADIAL | 3 | 1.14 | 3.42 | 1 | 1.14 | ||
| 10 | 4 | PDV-P9001-ND | PHOTOCELL 4K-11K OHM 4.20MM | 4 | 1.87 | 7.48 | 2 | 3.74 | ||
| 11 | 2 | 900-00008-ND | GEARMOTOR 6VDC SERVO | 2 | 13.99 | 27.98 | 2 | 27.98 | ||
| 12 | 4 | 2N3904FS-ND | TRANS NPN 40V 0.2A TO-92 | 4 | 0.19 | 0.76 | 2 | 0.38 | ||
| 13 | 3 | CT6EP103-ND | TRIMMER 10K OHM 0.5W TH | 3 | 0.78 | 2.34 | 1 | 0.78 | ||
| Total | 49.47 | Total for project | 37.01 | |||||||
| Notes: Ordered two extra of every part except motors | ||||||||||
An extremely important side note to mention is that we got lucky on our part collection phase. Professor Mason was gracious enough to allow us use of his Servo motors for use in this project. This greatly decreased the cost of this venture! We happily ordered the rest of our parts and moved on to the next phase, construction/testing!
To make good time and get a head start we created what was essentially the heartbeat of our device, the Triangle Wave oscillator.
and then cleaned it up for testing purposes once we got it working...
here's an output for it
Then we hit a snag...we could not figure out to implement a system robust enough for our purposes of error correction. After much testing, and failed attempts, we settled on a bit of an easier solution. We would use two photo resistors to set the control voltage for the PWM. Although crude, we could not allow ourselves to fall behind our PERT chart.
From that came our new circuit creation:
This design took advantage of what we wanted and used a clever tactic to get what we wanted. The potentiometer was the key to finding the "sweet spot" for how sensitive the photoresistors were to the bot tipping over.
Then we tested it with the motors and it worked! Somewhat! (With a bit of tuning...)
Before we knew it it was time to commit to a final design, so a chassis was found and the circuit was downsized for a nice fit!
We taped the motor and wheel to the bottom of the bot and we were set for our presentation! (Kind of!)
In the end, we couldnt get it to precisely balance, but it was definitely an impressive effort from my team member and I on how much we got accomplished in the amount of time we had! It was a very enlightening learning experience that I will surely build from!

































