![]() |
![]() |
![]() |
|
|
|||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Just a simple question.
When using Pic 16f84, is it possible to do pwm? Can pwm be acheived using delay routine? If so, Am I able to adjust "ON TIME", using tables? I code in asm. P.S. This is for DC shunt wound motor control. Also pwm needs to be adjustable, as I am using variable resistor, as accelerator. I'm building an electric mini bike with starter motor. 1 car battery, and need 10 miles minimum range. Reason for starter? Lots of power, and cheap to convert for continuous duty. Thanks. |
|
|
|
|
|
|
(permalink) |
|
Yes, all very easily done. This question should be in the Microcontrollers forum.
Is a starter motor mini bike going to make 10 k with a single car battery? Have people done this before? These motors take up alot of current. I'm sure others would be able to help you with the circuit. Driving a starter motor is going to need some pretty hefty switchers, and your uC power should definitely be decoupled from the motor power.
__________________
Mark Higgins |
|
|
|
|
|
|
(permalink) |
|
I hope you're using PWM because connecting the motor straight to the battery would drain the battery extremely quickly. I think a car can only start a couple of times before the battery is dead.
__________________
I'm no electronics god, i just talk too much. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
The 16F84 is long obselete, if you use it's replacement the 16F628, this has hardware PWM which makes your task trivial, and increases performance massively. If you go for another (even more modern) PIC, like the 16F818 or 16F88, these also have analogue inputs - which simplify reading your controls. As the processor no longer has to do PWM (as it's a hardware function), it leaves it 100% free to read your controls. |
||
|
|
|
|
|
(permalink) | |
|
Quote:
Your choice of a motor is critical to the projects success .. If you choose too large a motor , your range will be less. But a smaller motor like a used motorcycle starter motor should give you more range.. |
||
|
|
|
|
|
(permalink) | ||
|
Quote:
|
|||
|
|
|
|
|
(permalink) | |||
|
Quote:
I assume your choice of a starter motor is because you happen to have one on hand? Maybe another choice of a 12V DC motor would be better . |
||||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
Time is nature\'s way of keeping everything from happening at once. http://membres.lycos.fr/jrainville/ |
||
|
|
|
|
|
(permalink) | ||
|
Quote:
|
|||
|
|
|
|
|
(permalink) |
|
Thanks to all who responded. I'm at work, and just trying to squeeze in here.
Reason for starter motor? It's available. Ford starter, Pic 16f84, also available. Actual distance would be 2.5 miles one way. Battery to be recharged by windmill when parked at home. Will be used everyday. Hoping it recharges at night.(will have plug in socket in case of no wind). During the day(at work). small solar panel to maintain battery. MY brother built one, but motors not lasting because of full on mode.( just a switch). I'm trying to eliminate the cost of fuel and vehicle registration ect... And no, not interested in a pedal bike.( I tried that)(wildlife could outrun me)(bears ,coyotes ect...) Also the choice of motor is because of tremendous amount of power available. Nigel, if I use this chip(16f84), A look up table for pwm, and one for variable position switch, would that work? Or should I just go with chip you use on your tutorials, with variable resistor/potentiometer for speed control? Thanks in advance. |
|
|
|
|
|
|
(permalink) | ||||||
|
Quote:
|
|||||||
|
|
|