Loading...
  Show Posts
Pages: 1 ... 108 109 [110] 111 112 ... 154
1636  Using Arduino / Project Guidance / Re: Arduino for data acquisition on: September 28, 2011, 03:19:54 am
Ok, I will look into that. I do have a little bit of experience with Visual Basic. However, I was hoping to find something already suited to the purpose. Learning to write a program that accomplishes what I want would take a long time and would take away from my project. But, if it has to be, then so be it.
I think it wasn't that hard. A dataset and a graph object I think. But times have changed since I used Visual Basic.

Why is that? because the arduino has to do a calculation every cycle and before sending that data out I assume? How much do you think it would slow me down doing the calculation in arduino? I only need (arbitrary guess) maybe 5 samples/sec. do you think The arduino would have a problem with that? It's just that my programming skills are weak and I feel comfortable programming in Arduino.

Because:

- a float has 4 bytes, an int has 2.
- floating point calculations take up more space in program memory and slow down the CPU.
- If you need to adjust calculate engineering units that involve exponentials, it will take even longer.
- Converting floating point values to string takes longer than integers.


What kind of possibilities?
I found this:
http://www.radiosky.com/skypipeishere.html
which is supposed to read signals through the sound card of a PC but I'm not at all sure how it works, or if it would work with a laptop. It says that with an ADC such as MAX186, it can read analog signals, so I assume it could read a digital signal from Arduino. BUT I downloaded the software and cannot make any sense of it; looks to be tailored specifically to audio signals, despite being advertised for ANY signal. And also I don't see a way to set the engineering units.

Instead of sending data in ASCII, you can send in the format that they are in. So 3,1456 would take up 4 bytes instead of 6. 
It wouldn't look nice in the terminal, but it would be far faster to transmit and also for the computer to use them as it wouldn't have to convert from string to floating point format.

The code you're going to write in Arduino to convert from integer to floating point is going to be pretty much the same that you need to write in the computer.
But, if the main goal is to use and learn Arduino, then you should do as much as possible in it.
1637  Using Arduino / Networking, Protocols, and Devices / Re: Can't ping Ethernet sheild on: September 28, 2011, 12:38:40 am
Can you post the code you are using?

Problem with the Mega and the Ethernet shield is that the SPI pins aren't on the same position as on the UNO and 2009. So, unless you have the ICSP connection made between the shield and the board, a standard example won't work.

If you can post the code and a picture of your setup it could help a bit more.
1638  Topics / Home Automation and Networked Objects / Re: DHCP Troubles on: September 28, 2011, 12:35:37 am
Can you at least ping the shield when you don't receive a reply with the browser?
1639  Using Arduino / Project Guidance / Re: Arduino for data acquisition on: September 28, 2011, 12:31:35 am
When it comes to writing software to display graphs, I believe that using Visual Studio (if you use windows) is the simplest way. I remember doing this quite easily in Visual Basic some years back.
You can use the express version for free and it should be enough for what you want.

As far as reading analog data and sending it to the computer, I think that you may get better results by sending the reading and converting to engineering units in the computer. Of course, this would take the objective from Arduino, but it would let you get higher performance on the readings... don't misinterpret though... you wouldn't get a much higher performance, it would just be a bit better.

If you want to do some logging, sending the values in ASCII serially will also slow the process down. So you may want to have a look at different transmission possibilities.



1640  Using Arduino / Project Guidance / Re: Variable Frequency generator using timer 1 on: September 27, 2011, 03:48:12 pm
Are you sure the timer auto-resets?

In normal mode, the timer keeps on counting. Once you reach your Set point, the output goes high, once you go past your compare interrupt setpoint, the interruption handler kicks in and changes the polarity of the bit, but the timer will keep on counting, fold back and repeat. That may be why your timing is off. :\
1641  Topics / Home Automation and Networked Objects / Re: DHCP Troubles on: September 27, 2011, 03:38:38 pm
This is not the problem... but why not using something like this
Code:
int TempSensor[4] = {0,0,0,0};

int j = 0;
void loop()
{

for (j = 0; j<4; j++)
{
  analogRead(j+1);
  delay(10);
  TempSensor[j] = 0;
  for (int i = 0; i < 10; i++) {
    TempSensor[j] = TempSensor[j] + round(volts*analogRead(j+1));
  }
TempSensor[j] = round(TempSensor[j]/10);
}
to get the temperature readings instead of the copy/paste code?

Do you think 1ms is enough for the webbrowser to receive the data?
Because, the problem is not really the web browser receiving the data, is the data being transferred from Arduino to the W5100. That's your bottleneck, and yes, you do have quite a bit of data to be sent. Since the W5100 works in a buffered way, chances are that you may be closing the connection before all the data is transferred. Give it a go in increasing this to 100 or so and see what you get.
With these things you start up and go down, not the other way around.
1642  Using Arduino / Programming Questions / Re: my micro cotroller does nothing after uploading a program on: September 27, 2011, 07:04:16 am
What do you want us to do?
Use our magical ways and guess what you've wrote in your program?
1643  Using Arduino / General Electronics / Re: Moving from breadboard to perfboard on: September 23, 2011, 06:09:46 pm
Plan before you assemble.

Perfboard is half way between the breadboard and a pcb. So because you now have the ability to see which chips should be closer and how things will minimize the amount of solder, interference and jumpering, you should do just that before starting with the soldering.

Then you can create a whole row of +5 and GND and jumper from there to where you need for example.
1644  Using Arduino / Project Guidance / Re: counting pulses on: September 23, 2011, 05:23:07 am
For that you need to setup one of the Timer/Counters (0,1) as a counter and connect the output of your flow meter to the Timer/Counter input.

T0 is in PD4.
T1 is in PD5.

Check this old forum entry http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210337292

1645  Using Arduino / Programming Questions / Re: How do you serial.write a byte like I can for an int? on: September 23, 2011, 05:09:52 am
If I got it right...

say that you have this:

Code:
uint8_t variable = 56; //this is really an unsigned char.

and if you print it you get on your terminal window the character 8. But in reality, you wanted to print 56. You'd then, if I'm right, use:

Code:
Serial.println((int)variable);

Give it a try and post the results.
1646  Using Arduino / Project Guidance / Re: How to make a self controled car with Arduino on: September 22, 2011, 11:34:24 am
dc motors???
1647  Using Arduino / Project Guidance / Re: How to check if a IC is working? on: September 22, 2011, 11:29:12 am
With an oscilloscope, you can get the manual for those ICs and check the test circuits. Mount the circuits and check if the response matches the manual. That's one way to do it.smiley-wink
1648  International / Portugues / Re: Auxílio nesta idéia on: September 21, 2011, 04:01:42 am
Ultra sons?

Já pesquisaste sobre os sonares usados nos navios de pesca para detectar cardumes?
1649  Using Arduino / Project Guidance / Re: Looking for circular bar graph on: September 20, 2011, 03:30:19 am
So then I found this one(Hi-Eff Red). And it's absolutely perfect. I emailed them and it's only $3.50 each. But I have to order 500. And I can't find them anywhere else. Nor can I find anything even similar anywhere else.

Have you tried asking them if they have distributors? Or costumers that have ordered 500?

Even so, my guess is that the unit price of these will be much higher than for a 500 lot unit price. You have to take into account shipping, storing, etc, etc... same as Sparkfun does. However, it may come cheaper than Sparkfun.
1650  Using Arduino / Project Guidance / Re: Timer with Atmega 328 on: September 20, 2011, 03:24:42 am
So your circuit is doing the timing, or receiving the signals and turning a transistor ON?
Pages: 1 ... 108 109 [110] 111 112 ... 154