Show Posts
Pages: 1 ... 9 10 [11] 12 13 ... 22
151  Using Arduino / Programming Questions / Re: Programming arduino ethernet on: February 14, 2013, 05:08:46 pm
Yes, I believe it is possible to upload via ethernet using FTP.
In the playground there is the code to do this, use Arduino search.

But, you will first need to modify the bootloader, and for that you may need an ISP cable or another Adruino.
So you will need to buy these parts.

Then to upload to your UNO using ethernet, you will need an ethernet shield I guess.

Wow, the cost are just going up and the complexity as well.

Would it not be easier to go out on the street with a tin can rattle it for an hour or so for the cost of the ftdi cable?

Maybe I misunderstand your request?

Paul
152  Topics / Home Automation and Networked Objects / Re: make code smaller on: February 14, 2013, 04:43:23 pm
Firstly, WDvalenz can you please edit your first post and place your code with in code tags so I can read it clearly.
You'll notice there is a smiley in your ethernet section as a result of not using code tags.

Secondly, from what I see in your function 'LeerSe()' you have in there the following;
Code:
void LeerSe() {
...
 if(d[11]*d[12]*d[13]==0){
      delay(1000);
      LeerSe();
    }
...
 if(bar<0||temp<0){
    LeerSe();
    }
}

To me it appears you are calling the function from within itself a few times, I don't think it is wise to do so.

Also, please think about commenting your code, it will help you and it will help us.

Paul
153  Using Arduino / Programming Questions / Re: cruise control on motorcycle, need to read timing between wheel RPMs on reed swi on: February 13, 2013, 10:16:32 pm
Just to be clear about the kill switch method, it does definitely electrically and immediately isolate any part of your control circuit from the existing bike throttle control?

I mean, when I'm zooming speedily on those nice twisty corners around where I live, I will want to be 100% sure that even if not activated in cruise mode, that it can not suddenly just jump into cruise mode. I want my mind to be focused on riding, not 'ooops, I hope line 10 of my code is ok'.

Or, if I were using such a control system as you are attempting to build, that if I were zooming down a nice straight road with a good view of the road ahead, giving me assurance that all is clear, that again, suddenly, a rockwallaby jumps out from the side of the road and to avoid such a beautiful creature I need to make quick steering adjustment and maybe some throttle adjustment as well. Be 100% certain you understand the dynamics of any situation before hitting the road, or should I say laying tracks with this gadget of yours!

I really do need to agree with PaulS and others that it appears you are starting out with understanding the fundamentals of programing and that is not a good mix with motorbikes. It seems you are determined to persist. If we don't hear from you in the coming weeks, I guess we may fear what happened.

Also, quiet possibly regardless if the cruise control was even activated or turned on, be aware that such modifications may and most probably will void any and all insurance in case of a crash, needing you to pay all medical and other costs incurred as well as possibly having a fine, depending on your local road traffic regulations.

Keep the rubber side down.

Paul
154  Using Arduino / Programming Questions / Re: Using other IDEs to develop on: February 13, 2013, 09:00:28 pm
Like Headroom, I also use Eclipse version 4.3.0 with the C/C++ dev tools and with Jantje's plugin installed on OSX, (I don't use microsoft windows).

It works well and has made my coding life a pleasure again.
1. I get to see exactly where any errors are.
2. I can bookmark locations in my code with XXX or TODO and easily navigate back to those areas.
3. The IDE is smart and highlights my code correctly, whether I am in Arduino land or html/css or javascript or php and so on.
4. I can refactor (rename vars) easily.
5. Code sections can be folded down for easy reading.
The list goes on.

I have two workspaces open, one for my Arduino section tabs, and another with javascript and or server side code with all its tabs.
When I make a modification in some part of my Arduino code that also necessitates a change in a section of javascript, I can do it all very easily in the one environment.

If you don't have any luck with your netbeanie thingy, take a look at Eclipse with the plugin.

Paul
155  Community / Website and Forum / Re: Proposed "sticky" : How to use this forum on: February 13, 2013, 08:05:27 pm
Nick, this is spot on with what is needed.
I was about to write a similar post as this, but having just seen this with all the details, you have saved me a heap of time.

The only problem I see with a sticky is that it is not in your face, there are many people who have a problem want an answer fast and they bypass the reading of any sticky. Then it is us who then every time go through the same process of explaining to them some basic concepts, such as how about using CODE brackets or how about even showing us your code.

I was also thinking, how difficult would it be that when a person posts a new topic, he/she will need to go through some check list in an effort to try to make sure the post is posted in the relevant section and that the poster has supplied enough detail in their first post. It will take an extra moment or two, but it will probably tend to sort out the folks who are after a 'Plz help me or I will fail my exam' type'.

In the Home Automation and Network Objects section, I am seeing more posts that I believe should not belong there. Their questions are more aimed at basic fundamental electronics or other circuitry that would be better suited in other sections. The poster must wonder why they get very little response. I guess the same is happening in other section as well.

It appears to me more 'newbies' and or 'noobs' are on active the forum, the humble Arduino is more popular by the day, but that they are many total 'noobs' in forum use as well.

Yes Nick, your idea would be a real step in the right direction, I appreciate the effort you have put into writing your idea up.

Regards,
Paul

P.S.
Quote
Nick wrote:
10. Post in proper sentences

This is a forum you are using, not a mobile phone.

As a courtesy to the people you are hoping to have help you, type complete sentences. That is:

    Start with a capital letter.
    Spell words properly.
    Finish with a period (full-stop). (Just the one, thanks!)

Oh yes, I could not agree more and I feel irritated when I see such laziness.
There seems to be a lot of folk who lack articulation in any form of language, extra nooby!
156  Topics / Home Automation and Networked Objects / Re: Room control on: February 13, 2013, 07:58:49 am
OK, let me try if I can get some understanding here on what you are wanting to do.

Firstly, ask yourself, do you really need to use an Arduino to turn a lamp or fan on?
Is there some fancy reason you need to use a computer to light a lamp?

If you are very sure that there is, then I will talk about the lamp for the example, and would like for you to read and accurately confirm each question.

1. To confirm, you have a lamp which is existing and is wired in as a normal house lamp on mains AC system, with switch on the wall?
2. You wish to control this lamp by two means, one is using the existing wall switch, and secondly, by an output from the Arduino?
3. The control is to be independent, whether from the wall switch or the control output of the Arduino?

4. To make the necessary changes to the existing wiring, you will most likely need to have access to the wiring at either the switch or the lamp, can you?

5. Next question is, at the existing wall switch, is there both the un-switched active and the neutral mains wires available?
6. If not, is it available at the location of the lamp?
If the answer is no to both of these questions, then I believe you will have difficulty doing this at all, and you would be advised to look into some form of smart switch possibly with inbuilt remote control circuitry that you can have the Arduino link into. (This would be my preference anyhow).

If you do have un-switched mains available then the next question,
7. Again, to make necessary changes to allow the additional control of the lamp you may need to install a small box with a certain amount of electronic circuitry in the wiring circuit between the switch and the lamp, possibly in the wall near the switch or near the lamp, is this possible, is there room enough to do this?

Only if you can meet the requirements of the above questions and not only for the lamp, but the fan you mention as well, only then is it feasible to discuss some methods on how to do this.

Quote
antkan wrote:
Why loose? Work as OR gate you do not loose the remote function....

'Antkan', you misunderstand niner, he does not mean loose the function of the remote, he means what happens if he misplaces the remote control unit, or the dog eats it. 'Antkan', I know you are keen and excited, especially with your own projects and you are trying in your own way to help, but I notice you are just adding more confusion to the topic.

Paul
157  Topics / Home Automation and Networked Objects / Re: question help plz on: February 12, 2013, 06:30:03 pm
Please do not duplicate the same thread you have already started, your thread http://arduino.cc/forum/index.php/topic,147562.0.html
The fact you received little assistance in that thread is no reason to re-create an identical thread.

And I will repeat what I mentioned to you in your other thread here again for you;
Quote
rockwallaby wrote:
You would be better served if you posted this topic in 'General Electronics' or 'Programming Questions' section of the forum, possibly more people will notice it there.

Also, please try to be as descriptive and clear as possible, spend a few extra minutes to do this and provide code in the code section brackets so it is displayed correctly. It is provided there for you as a button on the online editor.

You can also help yourself much more by making use of serial print statements to see what is happening with your code.
That way you will learn.

Quote
tarekza3tari wrote:
 i don't have many time and thanks
You will need to make time, if you are wanting to succeed!
Use this forum, use google, use your brains to learn, enjoy and have a sense of achievement with Arduino.

Again you fail to read or understand to place your code within the codes brackets.

Maybe a MODERATOR could please move this thread and help this guy.

Paul
158  Topics / Home Automation and Networked Objects / Re: Room control on: February 12, 2013, 08:45:07 am
Quote
niner wrote:
What I want to achieve ....
Unfortunately, I am confused with the total lack of your clarity in describing what you want to achieve.

Quote
niner also wrote:
I can't connect it with ethernet as it would look ugly and wife shield is not economical (?)
You can't connect or you prefer not to connect?
Yes, a 'wife shield' is not so economical, but a wife, well, she is very useful and beautiful too, especially compared to the 'ugly' ethernet!
I am guessing English is not your preferred language?

If you are going to be playing around with AC as you mentioned, and if that is mains voltage AC, then you better get very clear about what you are wanting to achieve and how you will do this. Understand the risks involved with mains voltage or do not even attempt this if you have no skills or understanding.

Paul
159  Topics / Home Automation and Networked Objects / Re: help code relay on: February 07, 2013, 07:50:57 pm
You would be better served if you posted this topic in 'General Electronics' or 'Programming Questions' section of the forum, possibly more people will notice it there.

Also, please try to be as descriptive and clear as possible, spend a few extra minutes to do this and provide code in the code section brackets so it is displayed correctly. It is provided there for you as a button on the online editor.

You can also help yourself much more by making use of serial print statements to see what is happening with your code.
That way you will learn.

Quote
tarekza3tari wrote:
Note: it's Necessary to use interrupt
Is that a statement or a question?
Please explain why.

Paul
160  Topics / Home Automation and Networked Objects / Re: Fastest Arduino/Ethernet shield on: February 07, 2013, 06:52:46 am
Hello João,

The SD card and the Ethernet share the SPI bus and only one can be active at a time, so I believe for data to be transferred off the SD card and sent out the Ethernet port, the ATMega processor must first read blocks of data off the SD card and then transmit it to the ethernet processor, such as the commonly used Wiznet-5100. Also, the speed of the SPI bus may well be a lot slower than what you can do with these cards normally in other systems.
Maybe someone else will have a better understanding of this than I and will clarify what I wrote above.

How did you go with producing the graphic on the html page that would be updated by the ultrasonic level, did you make it work?

Paul
161  Topics / Home Automation and Networked Objects / Re: Someone interested – small Automation job… on: February 06, 2013, 07:36:02 pm
Hi Mikee,
That is a great start.
Using jquery mobile does look and work well on smartphone size devices.

I'll look over it more and try to get to understand better your concepts and methods.
I haven't looked at your Arduino code yet, so will do shortly.

Just two things,
Why not try the accordion style of buttons, where when you select one of the menu items, it simply pushes the rest down. That way you don't need the back button at the top. Just an idea to ponder on.
Second, on your monitor page, just a simple typo, 'FORM HOUSE' I guess you mean 'FROM HOUSE'? I do it all the time too.

A question, are wanting this to be fully served up by the Arduino or is it possible to have the Arduino push data to a host site and then have the host site serve up the content to clients?

I guess the question is for two reason.
1. if you are wanting to access the system remotely away from the house, say while at wor.. argg, wor, nope having trouble saying it, anyway, that place often visited by many people, then to use your own server, say a computer it will need to be operational 24/7 and be set up as a server. Also away from any local WiFi you might have at home you will need to enable internet connectivity via the phone network on your smartphone.

Second is that if there is the possibility of more users wanting to access the system, then if you use the Arduino as the server you need to be aware that of the limitations of the number of simultaneous connection available to the ethernet interface. The Wiznet 5100 can support only four.
But using the Arduino as the server will make the whole software side much easier to construct. You can use a mixture, where you might like to store data on a server for later viewing.

Ideas for digesting.

Paul
162  Topics / Home Automation and Networked Objects / Re: Project iCamper on: February 06, 2013, 07:06:27 pm
Well, I must admit there is not too much for the compiler to verify.

What are you wanting to do, really?
I imagine it would really help you if you wrote a functional description of your project.
What this will look like will be an abstract overview, an objective detailing your desired outcome based on certain criteria, a technical description on how you intend it to function with both hardware and software, and possible consideration for those unlikely but highly probable problems.

A block diagram or flow chart is always a good place to start.

So, just a quick look at your code, some commenting will again always be a very good thing, to help you remember later on but also if you wish for us to understand what it is you are doing in your program.

I have lots of questions or remarks about your code, probably longer than your code in fact.
But why are you bringing in those microphone inputs into your Arduino, I thought they would go to a special voice board you had?

Are you asking for help on your program?

Paul
163  Topics / Home Automation and Networked Objects / Re: Someone interested – small Automation job… on: February 06, 2013, 09:31:43 am
Hi Mikee,

Can you explain how you would imagine the user interface to look like?
If not, you could do a sketch or mock up.
jquery mobile is quite nice, as is using the twitter 'Bootstrap' library, the folks at twitter made this nice library.

I could possibly help out on the client side programming.
I guess there will be many folks who have played around with the Dallas sensors and can offer assistance there.

Have you thought about producing a bit of a design specification to give more detail and an idea for us?

To give you an idea of what can be done, I have been working on my little renewable energy project which is slowly coming along, just got the history trending functioning, php/sql on the server and javascript on the client side. I use Backbone.js as the MVC framework, Underscore for templating, and HighCharts for the graphical trending. Check my signature for the link to my current work in progress.

As I mentioned, jquery mobile is nice, for small device screens, but for larger screen sizes it looses it's appeal and this is where the 'Bootstrap.js' library shines in my opinion. They do have similarities in what they offer in terms of style. Google 'twitter bootstrap'.

It will be interesting to see who's interested...

Kind regards,
Paul
164  Topics / Home Automation and Networked Objects / Re: Sending Data to a Mysql WebServeur using POST method on: February 05, 2013, 08:02:46 am
Hi Anthony,

That's good news, well done.
Just to let you know, the code I posted above for the Arduino POST method is based on SurferTim's code of WebClient.

Thanks for letting us know, much appreciated.

Santé
Paul
165  Topics / Home Automation and Networked Objects / Re: Sending Data to a Mysql WebServeur using POST method on: February 03, 2013, 04:55:05 pm
@JohnHoward,
Please carefully read my reply #11, re trying without using DHCP, and understand the configuration of your router(s) between Arduino and server.
Also my reply #13, your initial problem of connection issues had little to with what the OP, royalldonkey was asking and so we are mixing up this thread with multiple issues.

@royalldonkey, can you tell us your status?
Pages: 1 ... 9 10 [11] 12 13 ... 22