9 years, 7 months ago.

Motor

Is it possible to control a motor from the rn42 and lpc1768? How would you do it?

Question relating to:

RN-42 Hello World experiments

1 Answer

9 years, 7 months ago.

Possible yes. How? It depends on the motor but generally you're going to need some additional hardware.

Servos are probably the easiest because they generally they take a digital PWM input as the control signal and all the extra control electronics is built in to the servo. However they aren't practical for a lot of applications. Libraries exist showing how to do this, just search the site.

For basic DC motors the only issue is that the processor can't supply enough power directly, you need an external transistor or two to turn the power on and off but that's it.

For a stepper motor then a stepper controller IC if normally a good plan. There are a number of libraries people have already written for controlling a range of stepper motor drivers. Again, search the site and you'll find examples.

Thank you for answering.

I found a library to match the microcontroller with the rn42 but, I have not yet understand how to read a command through bluetooth to be understood for an instruction in determined pin in freescale and, finally to send the signal to a power transistor.

Again, thank you.

posted by hghjyu hjkhjkn 29 Sep 2014