Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 226
61  Using Arduino / Programming Questions / Re: Mod-12 counter and 4 to 16 decoder on: July 13, 2014, 11:59:54 am
not asking for the code but juz wanna understand how to do it, like what arrch had said above

So try it. If it doesn't work, post what you have here, with code tags, and explain both what it is doing (be specific) and what you are expecting it to do (again, be specific).
62  Using Arduino / Programming Questions / Re: Arduino Relay Ethernet Shield on: July 13, 2014, 11:39:38 am
It's unclear from your post if you're having an issue. If you are, post the issue you are having. If not, "Cool."
63  Using Arduino / Programming Questions / Re: Mod-12 counter and 4 to 16 decoder on: July 13, 2014, 09:23:16 am
I not sure how to write the code for that

That's the case with most projects, you have to figure it out. I'm sure you homework assignment didn't include having someone write the code for you.
64  Using Arduino / Programming Questions / Re: Mod-12 counter and 4 to 16 decoder on: July 13, 2014, 08:53:45 am
At this point, I don't see the purpose of the Arduino, but if you're hell bent on having it there your sketch just needs to to a pinMode on 8 pins, half being input, half being output, and every pass through the loop, digitalWrite an ouput pin to the result of a digitalRead of another.
65  Using Arduino / Programming Questions / Re: Simple program fails to decrement variable on: July 13, 2014, 12:00:55 am
superString needs to be bigger if you want to store 8 characters in it, since you need a spot for the null terminator.
66  Using Arduino / Programming Questions / Re: Trying to get single button to start / stop a show - non-blocking on: July 12, 2014, 10:27:37 pm
Unless you plan on holding the button down for the full 2 minutes, you should only be checking for one edge, either falling or rising, not both.
67  Using Arduino / Programming Questions / Re: Converting one array to both string and variable assignment on: July 12, 2014, 10:21:35 pm
Array of structs
68  Using Arduino / Programming Questions / Re: Binary String to base ten int on: July 12, 2014, 06:27:39 pm
Convert it to a char array, and calculate it yourself.

Code:
{ '0',  '1', '0', '0', '1', '1, '0', '0', '\0'}

Subtract '0' from each element to get the decimal value. Start with a total of 0, and loop through each element, adding the decimal value for the element to your total. Left shift the total by 1 before moving to the next element.

sscanf() might also work.
69  Using Arduino / Programming Questions / Re: Understanding time.now() on: July 12, 2014, 06:14:43 pm
I'm sure it has something to do with the type of variable the now() function returns

It returns a time_t variable, which is unsigned.
70  Using Arduino / Programming Questions / Re: Void Setup on: July 12, 2014, 04:53:43 pm
The questions you're asking can't be answered without raising more questions and confusion, given your level of knowledge. You should look at understanding what a function is, how they're used, their purpose, etc.
71  Using Arduino / Programming Questions / Re: Out of memory on: July 11, 2014, 08:31:17 pm
Code is too large to fit in the code window.

Perhaps reading the thread entitled How to use this forum - please read. would give you an idea on what to do in this circumstance.
72  Using Arduino / Project Guidance / Re: Saving My Sensor data to Arduino on: July 11, 2014, 12:00:12 pm
I plan on deploying 30 of these sensors, so the sd card approach gets expensive.
I would like to have csv formatted data, it does not have to survive a restart.
I would like one minute intervals, but i can mange 5 min intervals.

Thanks Arrch

You don't want to store the data in CSV format on the nodes, because that is going to be expensive on the memory. Keep it in binary form and only convert it to CSV when it's ready to get written to a file.
73  Using Arduino / Project Guidance / Re: Saving My Sensor data to Arduino on: July 11, 2014, 10:50:19 am
Arduninos do not have file systems, so they have no concept of what a CSV file will look like. You can have CSV formatted data, but where you store it will depend on how much data you need to store, how often you are storing it, and whether or not it needs to survive a power cycle.
74  Using Arduino / Programming Questions / Re: 8 channel relay programming problem on: July 11, 2014, 10:32:07 am
Code:
       // send data only when you receive data:
        if (Serial.available() > 0) {
                // read the incoming byte:
                incomingByte = Serial.read();
                 ...
        }
        ...
        if (Serial.available() > 0) {
                // read the incoming byte:
                incomingByte = Serial.read();
                ...
        }

Two separate reads in the loop, means you're leaving it up to chance as to which one is going to read the byte. Imagine a fighting couple share a mailbox and check it at different times of the day. If the husband gets a letter addressed to the wife, he throws it out. If a wife gets a letter for the husband, she throws it out. In this scenario you have to time when you drop the letter in, to make sure it goes to the write person. You need to mend the relationship so that only the wife gets the mail. She checks to see if it is addressed to her, if not, she gives it to her husband who checks to see if it's addressed to him. If not, he throws it out.
75  Using Arduino / Programming Questions / Re: Relay not activating – help please on: July 10, 2014, 06:00:38 pm
can anyone point me at a resource(s) that looks at moving the project of the breadboard and  onto something more long term permanent.

Look into perfboards or stripboards.
Pages: 1 ... 3 4 [5] 6 7 ... 226