Show Posts
|
|
Pages: 1 [2]
|
|
16
|
Using Arduino / Project Guidance / Arduino propely booting only if usb powered
|
on: November 06, 2011, 03:20:00 pm
|
|
Hi guys, I have an arduino controllinga few leds and sensors + an lcd and it propely boots only if usb powered. If I power it via the 9v connector tit powers up but does not execute any code until i press the reset button. On the other hand if i plug it to the pc it gets up and running immediately and flawlessy. I do not have big loads connected to it (8 leds with proper resistance), why does that happen?!? tnks!
|
|
|
|
|
18
|
Using Arduino / Project Guidance / Re: Change pwm freq. and get a faster analog read
|
on: June 06, 2011, 12:44:37 pm
|
|
yep! speed up to between 8 and 16 khz. How to? SOmething I can write in the setup part of the code to do so?
I don`t really get the thing about the analog read, I just know that when i add an analog read in the code the loop slows down about 130us per each analog read.... I ve been told i can make it way faster but idk how to
|
|
|
|
|
19
|
Using Arduino / Project Guidance / Change pwm freq. and get a faster analog read
|
on: June 06, 2011, 10:24:15 am
|
Hey guys! I asked a while ago about using Uncle Ardu to handle BLDC commutation, now the project is in its last steps (here h ttp://endless-sphere.com/forums/viewtopic.php?f=30&t=26386 the main topic on EV forum and here http://code.google.com/p/dc-brushless-open-source-controller/ on google projects). Now, I have two issues: 1) the analog read takes way too long. In this quote from the other forum you get an idea of it no gas reading and no output rewriting: 20 000 ns per loop
gas reading and no output writing: 150 000 ns per loop ===>analo gread is SLOW!
no gas reading but output writing: 60 000 ns per loop
gas reading and output writing: 190 000 ns per loop
target was 40 000 ns per loop to go to 6 000 rpm with a 5% commutation delay I`m perfectly fine with the output writing time but not with the analog read time. It is ok for first testing but too slow to be implemented every 5 loops or so to do real time current control (curr sensor gives analog value). i`ve been told there is a way to get analog reading way way faster, how to?? 130 000 ns for one analog read is not ok. 2) I need to slow dowm the Ardu`s PWM output to something between 8 and 16 kHz, how to? thankyou! PS: the project is open source (Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License), so if you want to join you are welcome! cheers, Ludovico
|
|
|
|
|
22
|
Using Arduino / Project Guidance / How to control earphones with the arduino
|
on: April 20, 2011, 07:42:05 am
|
hey guys - I need to put the "beep" usually made pluggin a buzzer to one of the arduino`s pwm in a pair of earphones- How to? I don`t think the ardu will make it sucessfully driving 90 and 800 ohms earphones, so I was thinking about using an amplifier. right? Are there some commercial cheap things you can suggest to me or I have to make my own (VERY) crappy amp? Thankyou so much 
|
|
|
|
|
25
|
Using Arduino / Project Guidance / Re: Is arduino fast enough to handle brushless motors commutation?!
|
on: March 29, 2011, 04:52:15 pm
|
|
I don`t know, anyway looking with the search function in the datasheet I want able to find the word sensor without the word less near to it. Of course, I may be wrong (and prabably I am!), but I am not really interested in understanding how that ic works, since my main point right now is to understand the principles of how to drive high power mosfets from Ardu and how to choose the mosfets (i can say that the thing about logic level gates in my last post is the main point for me right now). Anyway, thankyou for posting me that datasheet! :-)
|
|
|
|
|
27
|
Using Arduino / Project Guidance / Re: Is arduino fast enough to handle brushless motors commutation?!
|
on: March 29, 2011, 02:36:52 pm
|
tnks guys Tnks for the link also, they refer to great technical works but are pretty different from my goal, I want to make a sensored controller to use on a ebike. I used to run it on a sensorless rc controller, it worked great but with the (big) limit that I had to run it at about 10mph before the back emf was strong enough to make a sensorless controller work. Is there any ic that can help me connecting a logic pin (arduino output) to the mosfet gate? I think I could solve this issue using logic level gate mosfets, but seems I`m wrong 
|
|
|
|
|
28
|
Using Arduino / Project Guidance / Re: Is arduino fast enough to handle brushless motors commutation?!
|
on: March 29, 2011, 11:20:11 am
|
|
What about connecting the arduino pwms to the mosfet? I was thinking of useing a "pre-amp" stages made with transistor in order to keep the arduino away from the mosfets` gate saturation current (very high on 400A mosfets) and make a quicker switch. Am I on the right path?
In order to pick the right components i`ll refer to some datasheets and guides from national rectifiers and others.
I have some "ideal assembly" knowledge (part of a college exam), reading datasheets etc i may be able to write the code/part of it in assembler. If needed i`ll get into it and, eventually, ask for help on the forum if i won't manage to figure it out myself
|
|
|
|
|
29
|
Using Arduino / Project Guidance / Is arduino fast enough to handle brushless motors commutation?!
|
on: March 27, 2011, 03:57:42 pm
|
Hi guys! I`m making a BLDC motor controller and I am thinking about using Arduino to control it. It` s very simple, depending on the digital input from 3+1 sensor it has to properly control 6 mosfets. (reads the gas potentiometer once in a while and then applies a pwm signal to 6 mosfets, depending on the readings of 3 hall sensors. Very simple process, based on a Boolean logic that relates hall imputs to phase commutations.) The question is: Is arduino fast enough for that?! The motor will be spinning at max 5000 rpm, wich is about 85 rpSecond. Each mecahnical rotation is made of 4 electrical rotation, and each rotation is made of 6 state changes. (each state change is the change of TWO pwm output status)So, 24 commutations * 85 revolutions is 2040 operations per second. Is Arduino with its 16000000 Hertz able to handle that? A quick math says it has something like 7500 clock cycles for each commutation, but in order not to loose sync the delay of each commutation should not be over let`s say 3%... That means not over 250 clock cycle to read 3 digital sensor status, perform a supereasy boolean thing and set two pwm write. Can Arduino handle that? Thankyou so much! 
|
|
|
|
|