Show Posts
Pages: 1 ... 9 10 [11] 12 13 ... 23
151  Community / Website and Forum / Re: Forum Website Down on: February 19, 2013, 06:48:57 pm
retro, I guess you just had to re-burn that boot-loader again hu?
It must suck all the arduino electrons in the world to do it, just everything stops.

Try not to do it again ok  smiley-twist
152  Topics / Home Automation and Networked Objects / Re: make code smaller on: February 19, 2013, 05:38:26 am
Hi Jantje,

I haven't compiled the OP's code, but I wouldn't have thought it would exceed the memory of the UNO.
If he is, then I think it just comes down to unhealthy programming practice.

P.S. still loving working in Eclipse with the plug-in you made, working right now on my project, ah such bliss  smiley-grin

153  Using Arduino / Interfacing w/ Software on the Computer / Re: Communication with arduino and OPC/SCADA? on: February 18, 2013, 07:22:09 pm
What a shame VisBee only seems to operate on microsoft windows, I hope you are also looking to have it operate on other OS's.

Just like 'Citect SCADA' and the Allen Bradley RSLogix range of software products, they all only operate on windows, and this is the only reason I keep a windows image available in VirtualBox environment. I feel irked by having to keep software like this for work I do in Industrial Automation.

How wonderful it would be if we could have our operating system of choice and be able to use some of these programs.

Chris, a problem with your 'visbee' web site. If go to this page and then select the English flag at the top of the page for English then all I get is a blank page. There are other pages that do the same, you will need to check to find out which pages do not work.

154  Topics / Home Automation and Networked Objects / Re: make code smaller on: February 18, 2013, 06:17:44 pm
@CrossRoads, thanks, some people just don't seem to read  smiley-confuse

wdvalenz wrote:
I made that, I am trying to use recursiveness, when the reading is not property done then I try to read once again.
If it fails it will do it again and again and again until the Arduino runs out of memory for the stack.
You will need to change how you do this. Re-code it to have a retry loop which can be specified to retry a number of times, such as 3.
If it doesn't succeed you return an error code and let the user know and put the Arduino into a specified condition.

Another thing you can do to help reduce your code it to use integer instead of floating point variables.
Then at the display output, you format your data to represent floating point by dividing by a scale factor.
For example, you declare 'float hum', and I assume this is humidity right?
Humidity can be represented as 0 to 1000 as an integer with a 0.1% resolution. Then to display it, simply divide by ten to have it scaled 0.0% to 100.0%.

The difference is that you work with it as an integer during your program and that can significantly reduce your program size and the available processor ram used in calculations. I often keep sensor data as, what is called, raw, that is raw ADC format, so 0 to 1023 and then have the function that does the displaying do the necessary scaling into what is called engineering units.

So, to summerise, try to make as much of your data munching using variables with integer format where possible.

How does the Davis weather station present its data on the serial channel, as strings or binary or key/value pairs or what?
What are the delimiters used to separate the data values from the Davis weather station? Again, more information!

Again, your commenting is lacking, it takes more work for me to understand your program, and I don't want to guess, so please comment.

Please be much more specific when you mention errors, not just
but whe I want to try adding the Logger it does nothing
That means absolutely nothing to me, and like I said before, I don't want or need to waste my time guessing all the time, please be much more accurate and specific with how you write.

155  Community / Website and Forum / Re: Forum Website Down on: February 17, 2013, 02:44:50 pm
Thought the world was coming to an end, meteorites crashing , asteroids fly-bys and all of arduino land crashing the world over.
Relieved to know the human race has yet again survived, though I am humbly reminded by how lost we can be without the things we take for granted.

Must have been some difficult and anxious hours for the sever maintainer person or people.
Many thanks,
156  Using Arduino / Project Guidance / Re: solar tracker using RTC on: February 15, 2013, 07:50:41 am
AWOL, sounds good to me, what size did it compile down to if you have the figures handy?
PS, I like that slight hint of yours about 'want to'
157  Using Arduino / Programming Questions / Re: Programming arduino ethernet on: February 15, 2013, 07:35:59 am
Ah Kuba89, thanks for clearing that up for me, now I understand better.

Well, if I were you, I would look in the playground and look for 'Arduino as ISP' and connect the two boards together, making the UNO as your ISP programming device for the Arduino Ethernet board.

I did this some months ago with my Arduino Ether-Mega, which did have a standard USB programming port, but was unfortunately blown when lightning decided to strike very close to my home. So I configured an old Arduino to be my ISP programmer and I was in business again until I received some new replacement boards.

If you have a few lengths of wire in your electronics box of goodies then that is all you should need to connect them both up.


P.S. looks like we both posted with seconds of each other, so my post was in reply to your previous post.
158  Using Arduino / Project Guidance / Re: solar tracker using RTC on: February 15, 2013, 12:38:51 am
Watching with interest.

I will be coding up tracking facilities onto my Arduino to move a solar array here at my home, and have a small scale mock up of the construction.
The hole is dug, the concrete is ready to be mixed up for the tower.
I have hot dipped galvanised 2 metre sections of triangle tower to mount the tracker on.
I'll be using a single 36VDC linear ram drive with a extension of 600mm, normally used for satellite dish position.

I intend to use my know location and knowing the time to point the solar array to the correct position, without the use of light sensors.
I already have the Arduino getting UTC from a network time server as part of my whole renewable energy system.

Here is a link to some information to generate some further interest,
I guess SPA is Sun Path Algorithm, I see no problem that the Arduino can calculate exactly what the position needs to be.

My renewable system as it is at present is viewable on the web in my signature.

UKHeliBob wrote:
Well, isn't that neat, I like that.

159  Community / Website and Forum / Re: Proposed "sticky" : How to use this forum on: February 14, 2013, 09:04:18 pm
Looks good Nick.

One other thought that came to me was that when a user believes his/her question has been answered that they could mark the topic as being 'SOLVED', by editing the heading of their first post. Maybe for section 14 in your list.

This will help both people who are offering advice, but also other people with a similar problem to clearly see the state of the topic.
It also displays some respect from the original poster that the help received has been helpful.

160  Using Arduino / Programming Questions / Re: Home Automation error message on: February 14, 2013, 06:17:02 pm
I spent a little more time looking at the code you have and the section where you add server commands with their respective functions appear to look ok to me. So, I am also a little perplexed why you would get an 'EPIC FAIL' message.

The following code section;
void eOffCmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete)

And after looking at the webduino code to see what server.httpSeeOther() function is about, (line 268 of WebServer.h) it is used with a POST to redirect output to another URL. I do not understand why this command is used in you code.

Looking at my own code I do not use it, but use the following code;

void Cmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete)

server.httpSuccess, as it suggests, sends back the standard http ok headers to your browser.

What you could try to do is to add some serial print commands, say in the code sections like above for those particular lights, to see that the command is at least being run.

For example:
void dOnCmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete) {
    Serial.print("Ik lees naast de boekenkast - dOn");

This will show whether you are getting to this point in the program.

161  Using Arduino / Programming Questions / Re: Home Automation error message on: February 14, 2013, 05:27:27 pm
Hello fasterthanlight,

If you receive the message 'EPIC FAIL' while using the webduino library it would indicate to me that the url you are using is not understood by the Arduino server.

I have not fully taken in your code yet, but where this message can originate from is where you add server commands, such as the following,
webserver.addCommand("allesOn", &allOnCmd)

The first parameter "allesON' is the URL tail section and the second parameter is your function to handle the command.
If you either do not have the specific command added to the server list as above or you do not have the function, then you will get the "EPIC  FAIL" message.

Hope this helps somewhat.

162  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?

163  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;
void 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.

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

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

Pages: 1 ... 9 10 [11] 12 13 ... 23