Thursday, April 15, 2010

Making some noise

So we brought the mustang car to the RCA lab today and hooked up its original motor to a function generator and power supply through an H-bridge. We generated a 50Hz 5V amplitude square wave using the function generator to simulate a PWM output and fed that to the motor. As a result, we were able to control the speed of the motor by changing the duty cycle of the square wave.

Now that we know how the DC that came with the car works, we intend to control it next using the HC12 microcontroller. First we have to do some debugging to get the wirelessly received accelerometer data on the slave FireFly to output to the HC12 using SPI. We had SPI working few days ago so it shouldn't take long for us to fix whatever the problem is. Once we have SPI working between the FireFly and HC12, we will be able to control the motors wirelessly with the accelerometer.