Hey all,
Don't think that I gave up on the RC car project. I have been extremely busy with school, but I have also been doing my research. Here are the updates, firstly, I ditched the Bluetooth idea for the car. Instead I am going to use a 433 MHz RF transceiver. This will give me a range of at least 500 ft hopefully.
I am also currently in the market for a higher RPM motor. For initial testing, I will stick with the motor that came with the car. Good news is that I am building my own motor controller!
Here is the background info: you can't just drive a motor directly off of a pin on your microcontroller, you will literally blow up that MC if you try that. DC motors require a lot of current, especially when they stall. And for that, you need beefy transistors. In my design I have 8 transistors. 2 of them are p channel MOSFET s and the rest are all n channel MOSFETs. The 2 of the 6 NFETs are what I call "big" which means the motor current runs through them. Similarly, the PFETs are also "big" since they are directly interfaced with the motor. The other 4 "small" NFETs are used to drive the big MOSFETs.
The design is attached to this article. You basically don't want the wrong combination of MOSFETs on simultaneously since you will short your power source. To make sure this never happens, I am adding a logic protection layer. The logic circuitry has one 2-4 decoder, 1 NAND gate and one inverter. I have the logic on the design schematic. Basically, as far as the MCU is concerned, there will only be two wires between the MCU and the motor controller. 0-0 means neutral motor, 1-0 means forwards, 0-1 means backwards and finally 1-1 means motor brake. Motor braking is achieved by shorting the terminals of the motor.
But no, realistically, I am shooting for about 2 amps of current, given that I find a battery that is comfortable with that. Anyways, hope you enjoyed the update.
Anil
Very simple idea and an easy way to control a motor. Glad to see some Electric Machines principals bleeding over into your project!
ReplyDeleteThanks man. I can't wait to see the end product.
ReplyDeleteGreat... It was very easy to understand. I can try it in my rc drift cars system. May be it was worked. Thanks for sharing.
ReplyDeleteThanks for reading the blog Josh! I don't know much about RC drift cars, but I can only assume you need precise position control for the front wheels, and torque control on the rear wheels. My car should be able to drift, given that I can manage to get some slippery tires on it. But my only concern is that the servo I have might not be able to respond quickly enough for the driver to "maintain" the drift, so I might upgrade the servo in the future. I am currently in the process of designing the printed circuit board that will go on the car so I will let you know how it goes. A new blog post is coming tomorrow, thanks again!
Delete