Show Posts
Pages: 1 ... 130 131 [132] 133 134 ... 246
1966  Using Arduino / Project Guidance / Re: assistance with temp comtrol project plzzzzz. on: November 20, 2012, 01:40:13 pm
If you're going to use the library, this blog post by the author is worth a read: http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/. If you're going to roll your own, reading it is crucial smiley-wink
1967  Using Arduino / Project Guidance / Re: assistance with temp comtrol project plzzzzz. on: November 20, 2012, 07:55:53 am
Why do you need the PID at all? Is it a requirement on the assignment? You can control it far more simply by turning the heater on when it's getting cold and off when it's warm enough. Make sure there's sufficient distance between your two limit points that you're not turning on & off continuously. Maybe turn on at 23C and off at 25C. You can use the PID of course, but its not as useful if you don't have proportional control of the output - although I do appreciate that you're simulating that with PWM - I'm just confused as to the need to make it so complex.
1968  Using Arduino / Programming Questions / Re: Boot time and DS18B20 problem on: November 20, 2012, 06:47:56 am
85 is a special result: IIRC, it's what the device returns by default when it hasn't read the temperature. As Riva says, just read the temp a few times to start with and ignore the results. Having said that, I haven't seen inappropriate 85s since I stopped using parasitic power on the device.
1969  Using Arduino / Programming Questions / Re: how to escape from while control structure on: November 19, 2012, 05:31:25 pm
Sounds like a wiring issue if it occurred when you moved your circuitry. Nonetheless, post your latest code.
1970  Community / Bar Sport / Re: I want to get into 3d printing... on: November 19, 2012, 05:20:06 pm
I've been "half way" through a Prusa Mendel build for months, using a kit from Maker Gear: http://www.makergear.com/
1971  Using Arduino / Programming Questions / Re: Exit from cycle needed on: November 19, 2012, 04:32:37 pm
Search the forum for 'state machine'. There have been any number of examples posted (some by me) that illustrate the technique - it's ideal for your application.
1972  Using Arduino / Programming Questions / Re: looping problem on: November 19, 2012, 03:49:02 pm
Your problem is that the semicolon on this line should not be there:
Code:
  for(int k=0;k<100;k++);
1973  Using Arduino / Project Guidance / Re: Absolute beginner..How do I get started? on: November 19, 2012, 07:19:41 am
Quote
Baby steps works best for beginners

If you call it incremental development instead, it's a generally accepted practice whether you're a beginner or not  smiley-wink
1974  Topics / Home Automation and Networked Objects / Re: arduino+ctsensor on: November 19, 2012, 07:08:20 am
To check my understanding, is this what you're saying?

You have state supplied electricity and  your own generator. When the state power stops working, you want the generator to start automatically. However, if there are a lot of things switched on when you change over to generator power, there is a surge which flips breakers. Before the generator starts, you want to turn off any high power devices for a little while, until the generator gets going and then turn them back on.
1975  Using Arduino / Programming Questions / Re: CSV file read stops after 9 lines? on: November 19, 2012, 06:50:57 am
I haven't used XON/XOFF in a long time, let alone in any arduino related application, but it should be easy enough to test. Can you send control-s (character 19) before you call the relay function and control-q ( character 17) afterwards using Serial.write?
1976  Using Arduino / Project Guidance / Re: Absolute beginner..How do I get started? on: November 19, 2012, 06:41:27 am
Uno generally - it's cheaper to replace if you make some electrical error and damage or destroy it. If your planned project is large, needs a large number of pins, or multiple UARTs a mega may be the answer eventually. You may not have the means to tell at this stage though and having an uno around isn't a bad thing.
1977  Using Arduino / Project Guidance / Re: Absolute beginner..How do I get started? on: November 18, 2012, 02:38:49 pm
The project sounds eminently suitable for an arduino. The only thing to be careful about is the number of pins you need. If you choose your sensors with care, an Uno would be sufficient, but you'd need to make sure you're using at least some sensors that can share. Measuring temperatures with some DS18B20s is an example - if they cover the range you need. Similarly, common LCD panels require a lot of pins, but there are serial versions that only need two. Then there's external multiplexing hardware, or you can just throw cash at the project and use a Mega.
1978  Using Arduino / Programming Questions / Re: help micro elevator code on: November 18, 2012, 02:17:48 pm
Here's another classic mistake (two on one line no less!):
Code:
 if (hall==HIGH)
You're testing the pin number against HIGH. Hall is 12, it'll never be HIGH. You need to be using digitalRead. It might help to change hall to hallpin to remind you.
1979  Using Arduino / Programming Questions / Re: Simulating a PLC ladder diagram on arduino on: November 18, 2012, 12:17:14 pm
I'd strongly recommend that you let the ladder diagram stuff go - it'll hamper your understanding of existing code and it'll baffle anyone you go to for help (such as here). For better or worse, the two languages are very different and in my opinion at least, trying to force one to be the other is not going to go well. It could be done that way, but I can see no reason to do so and lots of reasons not to.
1980  Using Arduino / Programming Questions / Re: Simulating a PLC ladder diagram on arduino on: November 18, 2012, 09:34:49 am
^^This. There are lots of examples in the IDE to look through that will help. Do you have a particular project in mind?
Pages: 1 ... 130 131 [132] 133 134 ... 246