View Full Version : basic Stamp
badgers
Mar 28, 2005, 09:00 AM
is there anything like the AN 857 or 901 but uses the basic stamp instead of a PIC.
I am looking at this for educational purposes only. I have riped out a cdrom motor, and I would like to get simple control of the motor using a STAMP. low speed, no load, I was thinking the driver side would be a p channel and then n channel to simplify things.
any one see any software examples for a stamp and BLDC motors?
thank you for your time and have a good day
PS if anyone has links to explain the formulas and calcs regarding Wye or Delta wiring that would be appreciated.
Andy W
Mar 28, 2005, 09:58 AM
I don't think there is a STAMP that is anywhere near fast enough for motor control?
..a
badgers
Mar 28, 2005, 10:08 AM
I have the BS2SX running at 50 Mhz. I understand that I may not be able to get 4000 rpm, but I would think that I could maybe get between 1000-1500.
thanks.
Comatose
Mar 28, 2005, 11:17 AM
You might be able to do some very limited (not speed controllable) control using comparators and the like. I really doubt you can do pwm and have it fast enough.
But, here's the real problem. You have 10,000 instruction per second to work with. Using a PIC at 8 mhz one has 2 million instruction per second to play with, and that's very marginal. You don't have much ram to work with either.
Its a little like asking if a lawnmower engine can get a car going 120 Mph. Yes, it probably can be done, but it will take enough very clever design that its not worth the effort.
sesat
Mar 28, 2005, 11:24 AM
Consider using compiled basic and a fast mcu, like Bascom AVR with a 20MHz Atmel AVR.
Ram.
Dan Baldwin
Mar 28, 2005, 03:56 PM
I agree that there's no way in heck that you'll be able to do PWM with a basic stamp, but since you won't have a load, and want to run the motor slowly, you might be able to run it like you would a stepper motor: use something other than PWM to limit current, like series resistors, and just comutate (change which outputs are high and low) in the blind, with no feedback. Try to accelerate and decelerate gradually. It wouldn't work for turning a prop, but probably would for demo purposes.
Dan
Zlatko
Mar 28, 2005, 05:40 PM
Hi badgers,
I played with "PICAXE 18A" a while back and used a ULN2003 Darlington Driver IC to "move" a laptop HD motor. I managed to get about 700rpm with GWS5030 prop on it.
I had it going like Dan Baldwin said, in a stepper configuration.
Page 6 of this document may help http://www.rev-ed.co.uk/docs/picaxe_manual3.pdf .
I also had a pot connected to the PICAXE to adjust the delay between the steps and therefore the rpm.
PICAXE 16A is actually a PIC16F819 with their proprietary bootloader (running at 4MHz).
I also tried the PIC16F819 in C but that didn't make any difference to the speed.
So, like all the other people here said, this method wont make the thing spin at high speed but it will get the motor going.
Cheers and Good Luck
Zlatko
badgers
Mar 28, 2005, 09:25 PM
thanks a lot, I kind of see the idea that dan was talking about.
Open Loop commutation.
I guess I have to ask, is the pic or the atmel AVR seem to be the best bang for the buck microcontroller?
vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.