Loading...
  Show Posts
Pages: 1 ... 2119 2120 [2121] 2122 2123 ... 2367
31801  Forum 2005-2010 (read only) / Development / Re: cannot add WString.h  ..pls help mee !! =(( on: September 10, 2010, 08:02:46 pm
The indexOf() function will return the location of the specified substring, or -1 if the substring is not found. So, >0 means the string on the left of the . contains the value in the (), and -1 means it does not.
31802  Forum 2005-2010 (read only) / Development / Re: cannot add WString.h  ..pls help mee !! =(( on: September 09, 2010, 06:17:42 am
The String class is incorporated into version 0019. You do not need to include WString.h any more.
31803  Forum 2005-2010 (read only) / Development / Re: How to make a library on: September 10, 2010, 11:35:00 am
It would be easier to answer your question for a specific OS.

You can get an idea where the IDE looks for library files, though, by using the Sketch + Import Library menu item to get a list of valid libraries. Select one of them, and use your OS's search capability to find the folder with that name. Determine the parent folder.

In that directory, create the SCP1000 folder, and copy the .cpp and .h files into the SCP1000 folder.

Restart the IDE, and it should be able to find the SCP1000 library. That is, is should be able to find the .h and .cpp files.
31804  Forum 2005-2010 (read only) / Development / Re: How to make a library on: September 10, 2010, 10:58:48 am
Quote
I have been read "How to make a Library", but, I was not able to do it.
Why weren't you? What problems did you have?

What, exactly, is it you need help with?
31805  Forum 2005-2010 (read only) / Development / Re: Licensing Q's -- in general, and for LiquidCrystal on: September 05, 2010, 09:21:01 am
Quote
There's lots of Open Source companies out there that are profiting from supporting their free product.
That's how MySQL makes money, and what prompted Oracle to buy in.
31806  Forum 2005-2010 (read only) / Development / Re: Multiple-file project on: September 07, 2010, 12:10:46 pm
If multiple .pde files are in one folder, the one with the same name as the folder generates the main() and init() functions. The others just contribute functions to the sketch being compiled/linked/uploaded.

So, you can have individual .pde files with individual functions. Copy the required .pde file into the sketch folder, and use the functions in that .pde file in the main sketch.
31807  Forum 2005-2010 (read only) / Development / Re: Library for Devantech RLY08 relay board on: December 18, 2009, 04:01:00 pm
Just having a class, and tell the compiler about it, using the #include statement is not enough.

You need to create an instance of the class before you can use the members of that class.

The RLY08.relay_on(1) statement is trying to call the relay_on method of the RLY08 instance, which you haven't created.

Before setup, add a line like this:

RLY08 myRelay;

Then, in setup (and elsewhere in the sketch) replace "RLY08." with "myRelay.".
31808  Forum 2005-2010 (read only) / Development / Re: Porting to Luminary Micro on: September 06, 2010, 07:31:51 am
Quote
How hard would it be to port the code to Luminary Micro Stelalris chip?
What code?

Morse code should be pretty easy to implement.

Quote
The main attraction to me is the on board ethernet Mac & Phi.
Is that like mac and cheese?

31809  Forum 2005-2010 (read only) / Development / Re: Programer Mentor on: September 05, 2010, 09:17:41 am
OK. We're making progress. We know a little about you, and can form an estimate of the time required to help you.

Are you looking for someone local that you can visit with? Or are you looking for someone that you can work online with?

If you want someone local, you need to be more specific in your location.

Reading potentiometers and turning on motors, or servos, will be very easy to do. Making spinning motors and waving servos do anything useful is more of a hardware engineering feat than a software engineering feat.

Will you need help on the hardware side? Are you limited by some budget restrictions, or can you throw a reasonable amount of money at the hardware side of things?

The more specific you can be, the more likely that someone will volunteer to help.

I'm willing, on the software side of the issue. PM me, if you want. I have a degree in mechanical engineering issued 31 years ago, that I've never once used. Software development skills was what the company that hired me needed at the time, and that need never changed.
31810  Forum 2005-2010 (read only) / Development / Re: Programer Mentor on: September 04, 2010, 11:12:45 am
You might want to talk a little about your programming skills (I'm guessing non-existent) and hardware skills, as well as what level of school and where you are located (at least, what country).

There are lots of people here willing to help, too.
31811  Forum 2005-2010 (read only) / Development / Re: Scope problems with new custom library on: September 02, 2010, 12:39:03 pm
Have you looked at which header file defines analogWrite? Have you included that header file in your library? In your example sketches?
31812  Forum 2005-2010 (read only) / Development / Re: Getting temperature and humidity values from sht11 on: September 02, 2010, 03:06:31 pm
Quote
Ok, because i triend to upload program on 5 devices and they all reply the same.
You tried with 5 different Arduinos or 5 different sht11 sensors? There is no code to upload to the sht11 sensor.

How is the sht11 connected to the Arduino?
31813  Forum 2005-2010 (read only) / Development / Re: Getting temperature and humidity values from sht11 on: September 02, 2010, 12:37:25 pm
If the output from sht11_humidity() and sht11_temp() is consistently -1 (or 65536), that indicates a hardware problem. The functions are not talking to the hardware.
31814  Forum 2005-2010 (read only) / Development / Re: Getting temperature and humidity values from sht11 on: September 02, 2010, 11:37:58 am
Quote
For output of temperature: if i make %u for unsigned int, i got 65535 and i try %d, i got -1 for both.
Output from sht11_temp() or output of the value after the equation?

To understand your problem, we really need to know whether sht11_temp() and sht11_humidity() are outputting good data.
31815  Forum 2005-2010 (read only) / Development / Re: Getting temperature and humidity values from sht11 on: September 02, 2010, 08:35:26 am
You came in and said that the output from the SHT11 sensor you have is wrong. OK. There are many possibilities why that might be. The sensor could be defective. It could be wired up incorrectly. It could be being powered with the wrong voltage level. The output from the sensor could be being manipulated, in the code, incorrectly. The wrong value might being written to the Serial Monitor.

In order to determine which of the many causes of the problem is the real cause, we ask questions. If you don't understand the question, say so. If you don't know the answer, say so. If you do understand the question, and can provide the answers, do so.

But, complaining about having to answer questions won't help you solve your problem.

I asked you what raw values you are getting from sht11_humidity() and sht11_temp(). If the values you are getting from those functions are reasonable, then there is a reasonable chance that the hardware is working correctly. If not, then there is a reasonable chance that the hardware is not working correctly.

I'd ask you, again, to provide details on the range of values that you are getting from those two functions, but, since you are tired of answering questions, never mind.
Pages: 1 ... 2119 2120 [2121] 2122 2123 ... 2367