|
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.
|
|
|
|
|
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.".
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|