Show Posts
Pages: 1 ... 9 10 [11] 12 13 ... 15
151  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: October 05, 2013, 05:46:50 pm
Even with that being so you are turning off the amp pin immediately after you start the sound.
You will need a delay to play the sound before turning the amp pin low.
Post the whole code so to see what is happening in full.
152  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 05, 2013, 02:51:22 pm
Try connecting ground to pin 3 of the DS18S20 as it says in the datasheet from your link page 3:
Quote
Optional VDD pin. VDD must be grounded for operation in parasite power mode.
http://www.jameco.com/Jameco/Products/ProdDS/302551-DS01.pdf
Or, try not running it in parasite mode and supply +5v to pin 3 of the DS18S20.
Is there a reason why you want/need to run it in parasite mode?

Edit: Also you can buy DS1820s at Tayda for $1.99 each:
http://www.taydaelectronics.com/ds18s20-ds1820-1-wire-digital-thermometer-ic-dallas.html
Check there Facebook for frequent 15% off codes:
https://www.facebook.com/TaydaElectronics
153  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: October 05, 2013, 01:44:26 pm
The sound to play only plays during the delay period then you tell it to stop:
Code:
wtv020sd16p.playVoice(1);
       // this is where it locks up
        Serial.println("play done");
        //delay(100);
        //wtv020sd16p.stopVoice();
100 milliseconds is extremely short of  a time.  smiley-wink
154  Using Arduino / Programming Questions / Re: Precise measurements on: October 05, 2013, 01:34:53 pm
To get a more precise voltage reading as compared to your multimeter reading of the panel VOC do this.
Create your voltage divider to have an input voltage below the reference voltage like PaulS  said.
Connect the divider to the Arduino, and measure the voltage coming out of the panel(V1), write it down.
Now measure the voltage (V2) going into the Arduino, write it down.
Divide V2 into V1, write down that number.
Change the 4 in this line to the number you came up with.
Code:
double voltage = ((sensorvalue/1023.0)*Vcc)*4;
You said
Quote
4.957*4 is 19.828
. Yup it is BUT you first said
Quote
But When my solar panel produces about 20.90-21
4 will only be accurate IF there is a 4x difference between the panel voltage and the divided voltage.
So if you get a reading of 21 from the panel while connected to your voltage divider and a reading of 4.957 at the divided voltage then.  21/4.957 = 4.236, you would replace the 4 with 4.236
BUT remember what PaulS said:
Quote
Change the voltage divider to keep the input voltage less than the reference voltage.
So measure your reference voltage.
And to keep closest to the panel VOC use higher value resistors in your divider.
For your benefit, also you said:
Quote
The overall resistance of the resistros are 40.24Kohm.
From the circuit you posted you don't have that.
Maybe look into how to calculate resistance in a circuit, it WILL come in handy.

155  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 05, 2013, 08:47:03 am
Try the WaitForConversion and WaitForConversion2 examples.

I wasn't suggesting ice to "fix" the problem, just to see a dramatic temp change.
156  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 05, 2013, 08:18:46 am
Did you get your resistance up to 4.7K ohm?
Can you cool the DS18S20 down?
Maybe place an icecube in a plastic bag and hold it on the sensor for a couple of seconds.
Does the temp change?
157  Using Arduino / Programming Questions / Re: Precise measurements on: October 05, 2013, 08:11:33 am
The VOC is your panels voltage with NO load connected e.g.: Not drawing any power
The Vmp or Vmpp is the voltage of your panel when you are drawing the max current it produces. e.g: charging a battery
Your panel (if large enough) should state these limits on the sticker on the back of the panel.
Once you connect resistors you lose the VOC, as you are drawing current.

Edit: If you want a reading closer to VOC(what you read on your multimeter) try making your divider out of higher resistance resistors, so you draw less current.
What is your multimeter's input impedance for measuring voltage? 10M ohm? That's why it has little effect on the VOC reading.
Edit2: I see the link you gave is for a BATTERY tester. Did you try this with a battery to see how accurate a reading you get?
158  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 05, 2013, 08:01:00 am
Great, glad to hear you have it working.
Try using this library:
http://milesburton.com/Dallas_Temperature_Control_Library
Give the "Tester" example a try.
It will give you a lot of understandable info. and the temp in F and C.
You will need to connect the signal pin  to pin 2 instead of  pin 10.
If you need help ask.  smiley-wink
159  Using Arduino / Programming Questions / Re: Precise measurements on: October 05, 2013, 07:39:35 am
Are you saying  your VOC is 20.9 -21 volts?
Is that what you read from your panel using a multimeter no load?
What do you read from your divider when it is NOT connected to the Arduino?

Edit: Once you draw a current from your panel you lose your VOC voltage and move towards your Vmpp rating.
160  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 03, 2013, 06:22:00 pm
Ground is pin 1.
Your pic shows you have ground as pin 3.
161  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 03, 2013, 02:39:38 pm
Can you show a pic of your setup?
You need 4.7k ohm can you get that resistance?
162  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 03, 2013, 02:30:11 pm
The 4.7k ohm resistor needs to go from 5v supply to the middle pin (DQ) then connect the middle pin (DQ) of the DS18S20 to pin 10 of the Arduino. And ground to ground.
163  Using Arduino / Project Guidance / Re: Help with DS18S20 on: October 03, 2013, 02:06:06 pm
How do you have it hooked up?
Are you using a 4.7k ohm resistor?
The more info you give the more people can help.  smiley-wink
164  Using Arduino / General Electronics / Re: Amplifying the output of a ISD1820 on: October 03, 2013, 07:38:14 am
That sounds like a good prank, should cause a bit of excitement.  smiley-twist

If the gains to high the amp feedbacks to it self creating oscillation.
200 gain is good for a very weak signal.
If you turn the gain up of your module then no sound will come out, or just noise.
You adjusted the pot on the module to find the right gain (sweetspot) so you could get a sound coming out.
Did you try the building amp I linked to?
It has a good sound.
165  Using Arduino / Audio / Re: mulitple wave shields on: October 03, 2013, 06:42:15 am
if not, what else can i do to make this possible?
You could use 2 Arduinos  2 wave sheilds and a mixer.
Simple FET mixer: http://www.electronics-lab.com/projects/audio/004/index.html
Pages: 1 ... 9 10 [11] 12 13 ... 15