Show Posts
Pages: 1 ... 22 23 [24] 25 26 ... 33
346  Using Arduino / Project Guidance / Re: CD-ROM BLDC motor driver built; doesn't work on: December 23, 2011, 10:03:58 pm
ok so i built it to the scheme attached with these MOSFETs: http://www.datasheetcatalog.org/datasheet/fairchild/HUF76129P3.pdf  but the FETs get really hot. when i attach power it sparks like the wires are crossed some where(it is a motor so all the coils meet as seen in the scheme...). i see in the controller scheme that there are diodes, but in the PDF, a scheme of the FET(attached) shows it has internal diode(or am i misinterpreting?)

 i added diodes after each phases FETs(right before the motor) but it still acts shorted. when i use continuity check feature on my DVM, it shows 1.834 on the LCD( is this resistance or something) and doesnt beep.

i guess what im asking is do i need diodes as seen in the scheme or are those in the FETs?
                                                                                                                                 min max
also in the PDF: "Gate to Source Threshold Voltage VGS(TH) VGS = VDS, ID = 250µA (Figure 11)  1 -  3   "
is this the voltage required to trigger the FET?
347  Using Arduino / Project Guidance / Re: CD-ROM BLDC motor driver built; doesn't work on: December 23, 2011, 12:42:50 pm
i didnt use 12v in the first place since it would be too much for the NPNs, but i tried it quick any ways, and it worked-ish, i still have to get the timing right.

will the first circuit work for driving the BLDC?(it didnt the first time since i didnt have enough voltage)

im taking off some mosfets from a old motherboard right now...
348  Using Arduino / Project Guidance / CD-ROM BLDC motor driver built; doesn't work on: December 23, 2011, 01:05:06 am
i have one of those standard 3 phase BLDC brushless motors from a CD drive, and i have been attempting to control it with my arduino. For right now im just trying to get the thing to move with no hall sensors, yet. i dont have any MOSFETs but i saw people using NPNs on youtube so i searched around for some schemes. iv'e tried two different schemes: in both of them the motor doesnt even attempt to turn or have any resistance(not electrical resistance, mechanical) compared to when no voltage is applied. im thinking the schemes arent good. schemes attached.

for the code i set the motor windings low + high according to the image attached below with portmaps instead of digitalwrite. I went through all the "levels" in one loop, then it repeats. the first attempt definitely didn't work because i was using port mapping incorrectly. i thought it was like:
Code:
pins        //01234567         
     PORTD = B01101000;
when its supposed to be like:
Code:
pins        //76543210         
     PORTD = B01101000;
But i didn't realize this till the second scheme attempt. Still after correcting the port mapping in the code, the motor wont even twitch. i didn't go back and try the first scheme with the fixed portmaps, though. code below the second scheme uses 6 NPNs where the first only uses 3, so id have to redo all the wiring again, but i'm pretty sure the second scheme was better than the first.

iv'e double checked the wiring and the portmaps so i know its not those; unless im not even close to what i need to do for the code...

Code:
/*
BLDC winding pins:
A: 3, 5
B: 6, 9
C: 10, 11
*/
void setup()
{
  DDRD=11111100;  //set0-7 output except for 0,1
  DDRB=11111111;   //sets 8-13 as output   
}

void loop()
{
  //A, B HIGH
         //76543210         
  PORTD = B01101000; //A HIGH pin 3, 5, 6
         //-,-,13,12,11,10,9,8 
  PORTB = B00000010; //pin 9
 
  //A HIGH
  PORTB = B00000000; //clear previous windings
  PORTD = B00101000; //A HIGH pin 3, 5
 
 
  //A, C HIGH
  PORTD = B00101000; //A HIGH pin3, 5
  PORTB = B00001100; //C HIGH pin 10, 11
 
  //C HIGH
  PORTD = B00000000; //clear previous windings
  PORTB = B00001100; //C HIGH pin 10, 11
 
  //B, C HIGH
  PORTD = B01000000; //pin6
  PORTB = B00001110; //pin 9, 10, 11
 
  //B HIGH
  PORTD = B01000000; //B HIGH pin6
  PORTB = B00000010; //pin 9
}

thanks
349  Using Arduino / Programming Questions / Re: floppy BLDC on: December 22, 2011, 05:54:06 pm
im so very confused.. O-scope would be so nice right now...

can you help a little more?
350  Using Arduino / Programming Questions / Re: floppy BLDC on: December 22, 2011, 03:18:21 pm
yes 1MHz sorry
351  Using Arduino / Programming Questions / Re: floppy BLDC on: December 22, 2011, 03:07:15 pm
the website i linked before said to put a 1mhz clock on this pin, am i even doing the right thing toggleing LOW/HIGH?

hmmm thats strange, before with no delays and new code it wouldnt turn, now it does but very slowly but its smooth...
352  Using Arduino / Programming Questions / Re: floppy BLDC on: December 22, 2011, 01:30:41 pm
ok so i have clock on pin 9 and using the old digitalwrite code it works, but if i use this:

Code:
int DlY=10;
void setup()
{               
  DDRB=11111111;   //sets 8-13 as output   
}

void loop()
{
  PORTB = B11111111; //sets 8-13 as high
  delay(DlY);
  PORTB = B00000000; //sets 8-13 as low
  delay(DlY);
}

it doesn't...how long does it take for a normal digitalwrite? ive confirmed that the pin is actually cycling.
353  Using Arduino / Programming Questions / floppy BLDC on: December 22, 2011, 12:47:39 pm
i have a floppy motor and driver like: http://sturntech.com/blog/2010/12/04/reverseengineering-fd1231h-floppy-disk-spindlemotor-controller/

i figured out that if i loop LOW then HIGH with no delays on the CLK pin with the arduino(vcc etc hooked up too), it will turn the motor. but its really laggy, how can i speed up the LOW/High switching of the digital pin and thus make the motor spin "better"?
354  Using Arduino / Project Guidance / quadcopter quick transmitter question. on: November 21, 2011, 07:23:54 pm
this is my plan so far for a Arduino based quadcopter:
FRAME: MikroKopter 500mm frame - $72.95
   http://www.nghobbies.com/cart/index.php?main_page=product_info&products_id=249
BRAIN: ATMEGA 644p
   serial.1: Xbee--- http://www.sparkfun.com/products/10421
   serial.2:
   4 PWM for BLDC motors
   SENSOR STICK: 9DOF board from sparkfun---ADXL345 accelerometer, HMC5883L magnetometer, ITG-3200 gyro
      http://www.sparkfun.com/products/10724      
Lippo alarm---http://static.rcgroups.net/forums/attachments/2/4/5/6/4/a210702-220-MicroScream1.jpg
BATTERY: Zippy FlightMax 3s 5000mAH 25c
   http://www.hobbyking.com/hobbycity/store/uh_viewitem.asp?idproduct=8583
BATTERY CHARGER: Turnigy Accucel-6 50W 5A Balancer/Charger - $33.99
   http://www.hobbyking.com/hobbycity/store/uh_viewItem.asp?idProduct=7028
ESC: Turnigy Plush 25amp Speed Controller x 4 - $49.92 @ $12.48 a piece
   http://www.hobbyking.com/hobbycity/store/uh_viewItem.asp?idProduct=2163
PROPS: APC 10x4.7 propellers set - $8.50 a set
   http://www.quadroufo.com/product_info.php?products_id=63&osCsid=b06516dc35619309b9fe3e6cd8e13471
MOTORS: Turnigy 2217 20turn 860kv 22A Outrunner x 4 - $56.16 @ $14.04 a piece
   http://www.hobbyking.com/hobbycity/store/uh_viewItem.asp?idProduct=5691

$73  FRAME
$10    ATMEGA 644p
$80  Xbee x2
$100 9DOF sensors    
$5   Lippo alarm
$33  Zippy FlightMax 3s 5000mAH 25c
$34  Turnigy Accucel-6 50W 5A Balancer/Charger
$50  ESC: Turnigy Plush 25amp Speed Controller
$9   PROPS: APC 10x4.7 propellers set - $8.50 a set
$56  MOTORS: Turnigy 2217 20turn 860kv 22A

TOTAL: $450



my main question is: what is the best way to send/receive info with the quad to another Arduino for control? should i use the xbee i linked to above? and i would need two of them: one for the quad, and one for the "control station"?

thanks
355  Using Arduino / Project Guidance / Re: Floppy drive music (almost finished but...) on: November 20, 2011, 09:48:02 pm
i made something very similair: a arduino hooks up to some of the floppy pins and pulses them accordingly with instructions from a .mid file java interpreter app.

http://dduino.blogspot.com/2011/10/moppy-playing-music-with-floppy-drives.html
356  Using Arduino / Project Guidance / Re: What to do next after finishing a starter kit? on: November 20, 2011, 09:43:32 pm
i know the basics mostly(i think? smiley-grin). mainly im somewhere, reading something or thinking randomly, and i think "ooooh i could do... with a Arduino and have fun project!" then i set out attempting it, and research if i dont know.
357  Community / Website and Forum / Re: {Now Uploaded} Getting Started, Learning, Reference + FAQ PDF! on: November 20, 2011, 09:37:38 pm
no problem. glad someone found a use for it... i thought no one noticed...

for any admin who reads this; should my pdf be put in place of the 2 year old pdf in the playground?
358  Using Arduino / Interfacing w/ Software on the Computer / Re: serial port already in use on: November 19, 2011, 01:36:07 pm
im guessing from what you say, that the Arduino IDE was still using the serial port. if you try to upload a sketch and it fails, wait until it gives an error in the Arduino IDE before trying again.

windows issue fix all: Restart!
359  Using Arduino / Interfacing w/ Software on the Computer / Re: C# for loop code --change two values at once each "loop" on: November 19, 2011, 11:36:13 am
Dang it! i always way overthink these issues...just simple subtraction...grrr

i see what you mean paulS, anything i can do to fix?
360  Using Arduino / Interfacing w/ Software on the Computer / C# for loop code --change two values at once each "loop" on: November 19, 2011, 03:29:24 am
i have this code:
Code:
if (JoyData[4] == 1)
                {
                    Trigger.Checked = false;
                }
                else
                {
                    Trigger.Checked = true;
                }

                if (JoyData[5] == 1)
                {
                    Middle.Checked = false;
                }
                else
                {
                    Middle.Checked = true;
                }

                if (JoyData[6] == 1)
                {
                    Lower.Checked = false;
                }
                else
                {
                    Lower.Checked = true;
                }

                if (JoyData[7] == 1)
                {
                    Base.Checked = false;
                }
                else
                {
                    Base.Checked = true;
                }

it checks joydata array "places" 4->7 if they are true or false(it is backwards, 0 is enabled, 1 is open), and sets a "radioButton" checkbox accordingly on a C# form. joydata 4->7 array values are read from 4 buttons connected to a Arduino.

i figured it would make sense to put it in a for loop:
Code:
for (int v = 4; v < 8; ++x)
                {
                    if (JoyData[v] == 1)
                    {
                        Trigger.Checked = false;
                    }
                    else
                    {
                        Trigger.Checked = true;
                    }
                }
that was easy for checking the array values 4->7, but i need to check other buttons as i check the array values. array value 4 is trigger, array value 5 is middle...i need those to change along with "v" in the for loop. i thought of using a string array:
Code:
string[] BtnName = new string[]{"Trigger","Middle","Lower","Base"};
but im not sure how to "sync" the btnName array with the 4->7 joydata array values in the for loop.

thanks smiley
Pages: 1 ... 22 23 [24] 25 26 ... 33