Go Down

### Topic: HELP !! arduino solar panel battery and 2 motor servo (Read 5724 times)previous topic - next topic

#### wiicaak

##### Dec 27, 2012, 06:54 am
hi ..
I just finished with this project ..http://www.instructables.com/id/Self-Sufficient-Arduino-Board/?ALLSTEPS
but why when i loose the power of the computer and run my project, the servo motor does not move according to my previous projects?? http://www.instructables.com/id/Arduino-Solar-Tracker/
I combine these two projects into one project and run it ..
the question is
why the project is not going to use batteries??
How can i read the voltage of battery(battery indicator)?
I use ultra accuplus 9V battery or eveready 9V..

#### PaulS

#1
##### Dec 27, 2012, 02:31 pm
Quote
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.

Quote
How can i read the voltage of battery(battery indicator)?

With a voltmeter.

#### wiicaak

#2
##### Dec 27, 2012, 03:33 pm
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?

#### robtillaart

#3
##### Dec 27, 2012, 04:21 pmLast Edit: Dec 27, 2012, 04:27 pm by robtillaart Reason: 1
Quote
can i make a voltmeter just with an arduino?

yes, even a 6 channel voltmeter, looks like
Code: [Select]
`////    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.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

#### PaulS

#4
##### Dec 27, 2012, 04:22 pm
Quote
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.

#### wiicaak

#5
##### Dec 29, 2012, 05:32 am
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?

#### robtillaart

#6
##### Dec 29, 2012, 11:23 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.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

#### PaulS

#7
##### Dec 29, 2012, 03:04 pm
Quote
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.

#### wiicaak

#8
##### Dec 30, 2012, 03:18 am
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?

#### PaulS

#9
##### Dec 30, 2012, 02:13 pm
Quote
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.

#### wiicaak

#10
##### Dec 31, 2012, 09:19 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?

#### PaulS

#11
##### Dec 31, 2012, 10:17 pm
Quote
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.

#### wiicaak

#12
##### Jan 01, 2013, 04:52 pm
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..

#### PaulS

#13
##### Jan 01, 2013, 08:15 pm
Quote
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.

#### wiicaak

#14
##### Jan 02, 2013, 04:19 am
can you explain me with more details explanation about my problem??

Go Up

Please enter a valid email to subscribe