|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #1 on: December 27, 2012, 08:31:27 am » |
why the project is not going to use batteries?? You are trying to use 1 dinky little 9V battery to power two current-hungry servos? And, they don't work? No surprise, there. How can i read the voltage of battery(battery indicator)? With a voltmeter.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #2 on: December 27, 2012, 09:33:18 am » |
Thx for your usefull comment paulS, can i make a voltmeter just with an arduino? So what i have to do to move servo without 9V battery?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 101
Posts: 9551
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #3 on: December 27, 2012, 10:21:11 am » |
can i make a voltmeter just with an arduino? yes, even a 6 channel voltmeter, looks like // // FILE: Voltmeter.pde // AUTHOR: Rob Tillaart // DATE: 2012-12-27 // // PUPROSE: 6 channel voltmeter // int pin[] = { A0,A1,A2,A3,A4,A5 };
void setup() { Serial.begin(115200); }
void loop() { for (int i=0; i<6; i++) { analogRead(pin[i]); float voltage = analogRead(pin[i])*5.0/1023; Serial.print(voltage, 3); Serial.print("\t"); } Serial.println(); // delay(100); } Output can easily be copied into Excel or so.
|
|
|
|
« Last Edit: December 27, 2012, 10:27:18 am by robtillaart »
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #4 on: December 27, 2012, 10:22:48 am » |
So what i have to do to move servo without 9V battery? You need a real source of power. The servos can easily draw 1/2 and amp apiece.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #5 on: December 28, 2012, 11:32:57 pm » |
Hai rob tilaart thank you very much.. But why the baudrate set so big? I usualy set for 9600, and i have use my analogpin for ldr and potentiometer, do you have another way?
paulS What do you mean with real source of power?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 101
Posts: 9551
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #6 on: December 29, 2012, 05:23:39 am » |
setting the baudrate higher means less time spend on communicating and more time on measurements/math. 115200 is 12x faster than 9600
Communicating a string of 6 measurements, lets say 30 bytes including spaces and \n takes approx: @115200: 3 msec @9600: 30 msec
analogReads take approx 0.1 msec lets say including all math 1 usec so lets say 6 channels take 6 msec.
1 set of measurements @115200: 9 msec => 111/sec @9600: 36 msec => 27 /sec
So in the end the higher speed serial allows me to take 4x as much samples. Instead of more samples I can use the extra time to do additional math e.g. averaging and keep minimum/maximum per channel.
Although the IDE serial monitor does not support it, the Arduino can send data as fast as 500,000 Baud. The effect is that you can go up to ~150/second.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #7 on: December 29, 2012, 09:04:05 am » |
What do you mean with real source of power? Is your solar panel/battery setup able to supply 1A of power to the servos? If not, you need something that can - a real source of power.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #8 on: December 29, 2012, 09:18:42 pm » |
Rob tilaart thank you very much.. On your 6 channel voltmeter, how you get the formula of float voltage? Explain me please.. And how do i put the battery on arduino with solar panel? Can i use digitalpin for my voltmeter?
paulS I think my solar panel has 9V supply, how do you think?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #9 on: December 30, 2012, 08:13:44 am » |
how do you think? The voltage is far less important than the amperage. I've yet to see a solar panel that could supply 1A of current. That is what you need to drive two servos.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #10 on: December 31, 2012, 03:19:00 pm » |
Thanks paulS can you help me with the schematic? How can i put the solar panel to charge the battery and measuring. battery on my arduino uno r3?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #11 on: December 31, 2012, 04:17:42 pm » |
How can i put the solar panel to charge the battery and measuring. battery on my arduino uno r3? Beats me. That's a hardware issue. I'm a software type.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #12 on: January 01, 2013, 10:52:18 am » |
Ooh, i see paulS. I have another question. When my servo sweeping based on ldr, i do serial println on my ldr in the same time, why the servo movement going to slow when i do this? But when i unmark the serial println the servo movement going back to normal..
Anybody help me please with the schematics to charge and measuring battery on my arduino..
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36433
Seattle, WA USA
|
 |
« Reply #13 on: January 01, 2013, 02:15:25 pm » |
But when i unmark the serial println the servo movement going back to normal.. Move. Print several characters to the serial port. Move. Print several characters to the serial port. or Move. Move. Move. Move. Which is going to result in more moves per unit of time? What does move moves per unit of time mean? Yep, faster.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 21
|
 |
« Reply #14 on: January 01, 2013, 10:19:53 pm » |
iam sorry paulS i dont understand about your reply.. can you explain me with more details explanation about my problem??
|
|
|
|
|
Logged
|
|
|
|
|
|