Show Posts
Pages: [1] 2 3 ... 2294
1  Using Arduino / Project Guidance / Re: rms Voltage on: Today at 01:57:49 pm
Well it was attempted but note that there will be no negitave values so it is a bit of a waste of time.
There is no DC referance voltage. Still waiting for the code to be posted correctly before I get more involved.
2  Using Arduino / Programming Questions / Re: Firmware and Driver Questions on: Today at 01:51:13 pm
1) yes you can call it firmware if you like. The arduino term is sketch, you can also call it code.
2) a driver is normally a bit of code that interfaces two software components, or a software component and a hardware one.
The driver associated with the arduino is the one in your computer that makes the IDE talk to the USB serial.
3  Using Arduino / Programming Questions / Re: code in code on: Today at 01:44:48 pm
Quote
i dont understand bitlash
So that is your problem. Try and udonderstand it, do not just give up. No one is going to do your protect for you.
4  Using Arduino / Sensors / Re: Trouble reading SN74HC165N Shift register on: Today at 01:34:47 pm
Try a 0.1uF ceramic decoupling capacitor as close to the power pins as possible on the shift chip.
5  Using Arduino / Programming Questions / Re: Led flow control on: Today at 12:28:58 pm
Sorry but I'm a girl :-(
We will have no talk like that round here.  smiley you are just as capable as anyone else.

Now what you have to do is to remove all those delays and implement you program as a state machine.
In this way you can make it so it looks like several things are happening at the same time.
have you seen the blink without delay example code?
Try and google for finite state machine.
Basically it all runs on the millis time function. Start off by just having one fade, a sort of fade without delay. On each time out you increase what was your loop counter and write out a new value, then set the values for the next time out.
Get that going first and it will be a lot easier to add more functions.
6  Using Arduino / Project Guidance / Re: rms Voltage on: Today at 11:32:57 am
You need to use code tags, like it says in the how to read the forum sticky.

There is a lot wrong with this code. Not the least is this line
Code:
float rms = sqrt((float)voltageAcv/(float)numSamples)*5/1024;
RMS = Root mean squared - can't see any squaring going on.
7  Using Arduino / Programming Questions / Re: Led flow control on: Today at 11:21:27 am
Your not making a good start are you.

Why not do the sensible thing and read the "how to use this forum" sticky post and also the one that says "read this before you post in this section.
Then go back and modify that post (do not post again) to include code tags so we can read it.

If not then the next thing I will do is sing at you, and you wouldn't like that.  smiley
8  Using Arduino / Programming Questions / Re: analogWrite > 255 by accident on: Today at 11:10:52 am
Quote
Is it just for convenience so that user can input a value greater than 255 and less than 0, only to be rolled over?
Who knows what the writer of that thought.

It's main use is to catch out arrogant ignorant visitors to the forum. One recently insisted that he could have 10 bits resolution on the PWM because a value of 1023 gave him full brightness. No amount of persuasion or asking to do some tests by myself and many others could move him from this error of the mind.
9  Using Arduino / Programming Questions / Re: Led flow control on: Today at 11:06:28 am
Sorry this is not a code writing forum.

Sure we will help you with code but if you want some one to write it for you then post in the "Products and Services" section and say what sort of fee you are willing to pay.

If you want help with  your code then post what you have written and ask about why it is not doing what you want it to do and people will be willing to help you get it going.
10  Using Arduino / Project Guidance / Re: Is Arduino what I'm looking for? on: Today at 09:41:10 am
Quote
I thought an IC was always 'the little black rectangle with lots of legs' chip-thing.
Yes it is. There are lots of different types of them.
11  Using Arduino / Project Guidance / Re: Delay output on: Today at 08:54:06 am
Quote
sorry for the long post
If you would have bothered to read the "how to use this forum" sticky post you would have seen how to post the code correctly.
Never mind read it and modify your original post.

Second, do not use pins 0 & 1 because there are used for serial communications like uploading code.

Third, what you are trying to do is known as a state machine. It is not a thing for beginners as they find it complicated. However it is easy enough to understand. You need to remove all delays, because these are blocking and use the technique shown in the blink without delay example in the IDE.

Further reading:-
http://www.thebox.myzen.co.uk/Tutorial/State_Machine.html
12  Using Arduino / Project Guidance / Re: Asking Arduino to do too much? on: Today at 08:48:57 am
Quote
but little on voltage reading so I will be researching on that.
It is just one command, analogRead

http://arduino.cc/en/Tutorial/ReadAnalogVoltage
13  Using Arduino / Networking, Protocols, and Devices / Re: Simple question about PIN usage on: Today at 07:55:42 am
Quote
Have no idea how I would hook this up
No nether have I.
This is because if you look at the data sheet at the transition time it is quoted at 4nS. You need two transitions to complete a cycle, so the fastest the output can go is 8nS. That corresponds to a frequency of 125MHz.
14  Using Arduino / General Electronics / Re: Individual servo control using flex sensor readings on: Today at 04:48:24 am
Quote
how do exactly send the readings in a packet or tag them with an alphabetical prefix.
Lots of ways, this is one thread on the topic.

http://forum.arduino.cc/index.php/topic,40350.0.html

Quote
and if i do that is there anything on the receiving Arduino that i need to modify?
Yes that is the whole point of sending data like this so you can ensure that you get the correct variables in the correct order. What even you do in the first part you have to undo in the second part.
15  Using Arduino / General Electronics / Re: Trouble with SSR on: Today at 03:31:19 am
Quote
An SSR is usually just two MOSFETs back to back (so current can flow both ways), you switch them both at the the same time.
No.
An SSR is normally made from a triac or two SCRs.
You very occasionly get a SSR with DC only capabilities and they have FETs in them, but never connect those to the mains.

It sounds like you are putting too much current in them, is their a seriese resistor?
Pages: [1] 2 3 ... 2294