Show Posts
Pages: 1 2 3 [4] 5 6 ... 1167
46  Using Arduino / Programming Questions / Re: attachInterrupt() not working for RISING and FALLING edges. on: July 10, 2014, 01:50:05 pm
Using a steady HIGH or LOW as an interrupt trigger is almost always problematic unless the ISR is able to do something to remove the external trigger level back to it's inactive state, it just adds complexity. Change, rising, falling are the useful trigger states.

47  Using Arduino / Programming Questions / Re: Relay not activating – help please on: July 10, 2014, 10:47:58 am
Well I just stopped at the first error I see in the code. Not to say you don't also have a wiring problem but correct this first:

Code:
const int threshold = 1.5;

Integer type (int) can't have fractional parts, only whole numbers. This will effect your testing logic in software. Floating point types do allow fractional parts.
48  Using Arduino / General Electronics / Re: short time buzzer sound at constantly High. on: July 09, 2014, 08:34:47 pm
Well an arduino output pin can't switch +12vdc directly, you will have to use a switching transistor. As far as having a brief pulse of the buzzer you might try wiring a  large electrolytic capacitor in series with the buzzer. Start with maybe 470 ufd and adjust higher or lower to your requirement.

49  Using Arduino / General Electronics / Re: short time buzzer sound at constantly High. on: July 09, 2014, 07:17:42 pm
Do you have a link to your specific buzzer that we could look over?


50  Using Arduino / General Electronics / Re: Reading voltage - Product already exists?? on: July 09, 2014, 06:11:15 pm
As stated the standard arduino Uno board has 6 analog input pins capable of reading any voltage in a 0 to +5vdc range. No negative voltages allowed and no voltages over +5vdc. If you need to read a voltage higher then +5vdc then you need to scale the external voltage down usually using a two resistor voltage divider so the resulting voltage cannot climb above +5vdc. You can then rescale the voltage back to it's 'real' value in software.

 So what is the DC voltage range you need to measure?

51  Using Arduino / Installation & Troubleshooting / Re: Installing bootloader on Mege2560 on: July 09, 2014, 09:27:31 am
A lot of AVR ICSP programmers can't handle the larger flash memory size of the mega2560. USBtiny is one of them that can't.

I too recommend using Nick's bootloader sketch, it's proven and the  most informative as you interface with it using the serial monitor.

52  Using Arduino / Programming Questions / Re: Atmega328p doesn't work under 2.7v on: July 08, 2014, 06:57:31 pm
Hi.  I used to use my atmega at 2v running 8 mhz and internal oscillator....

I formated my pc and after that when I try to run the atmega328p it stop work when voltage goes under 2.7.

How could I get it back to work using 1.8v?

Do I need a special bootloader or a special board at boards.txt?

Tks a lot

 I suspect you will have to look at the Extended fuse byte value used when a chip is setup to run with the arduino. There are some bits that control BODLEVEL (brown out detector) which determines at what level Vcc decreasing will cause the chip to stay in a reset condition. The choices are  typically 1.8, 2.7, and 4.3.
The 328P datasheet is the best reference to work this out.

53  Using Arduino / Project Guidance / Re: Accuracy analog input. 9v batt on: July 08, 2014, 12:13:31 pm
It doesnt work that well.

I connected a 9v battery to the power jack in the arduino and the analog readings is not accurate to the voltage.

If i have a 20 mA signal thats messeure 5 volts over the resistor 250ohm i dont get maximum value that is 1023 from the Arduino.
When i messure between the gnd and 5v pin on the arduino i have 5.17 volt.

What can i do to make the reading more accurate

 If you know that the on-board +5 vdc voltage regulator has an output voltage of 5.17, then use that value with the mapping function to get a correct analog voltage scaling. Best to use millivolt scaling to get better resolution.

int value = map(analogRead(A0), 0, 1023, 0, 5170);  //results in millivolts
54  Development / Suggestions for the Arduino Project / Re: Breaking away from a PC on: July 07, 2014, 07:03:09 pm
The Arduino developers already struggle with keeping the Arduino IDE current on Windows/Linux/Mac, adding another platform to support the IDE & tool chain seems a bridge too far to me. But if a 3rd party wants to take a try at it, all the power to them. When they prove out the concept then maybe the Arduino developers could take a look at it. I would rather hate to have to write a sketch on a small smart phone screen, but maybe others would?

55  Development / Other Software Development / Re: Documentation update request - analogRead() on: July 07, 2014, 06:47:52 pm
The AVR analog input pins work best when the output impedance of the signals wired to a analog input pins is 10K ohms or less. Another method for handling higher impedance signals is to wire a .1 ufd cap from the input pin to ground, that will lower the impedenace that the internal ADC 'sees'.

56  Using Arduino / Project Guidance / Re: AREF pin setup on: July 07, 2014, 04:31:22 pm
The other caution you should consider is if your external +5vdc sensor power is ever active but the arduino supply is turned  off it's possible damage could result from high ref pin current.

57  Using Arduino / General Electronics / Re: External power to boards. on: July 04, 2014, 09:14:28 pm
I have noticed on the boards I have there are +5 pins.

These are usually for "outgoing" power to things.

But I am maybe getting a NANO and its only supply is from the USB port.

Adding a USB connection to my project to supply power to the NANO will be annoying.
So I was wondering if I can feed power to it on the +5 pin?

Yes you can. Also a nano has an on-board +5 vdc voltage regulator feed from the Vin pin, which can be like 7-12vdc. So you have options.





58  Using Arduino / Project Guidance / Re: Reading antilock brake signals on: July 03, 2014, 05:11:32 pm
Yes, this kind of sensor usually interfaces to a comparator chip to convert it to a clean digital signal usable as a digital input signal for an arduino. After that its just measuring it's frequency/period. Rather then using a frequency counter type sketch and considering that you need to read two of these signals I would look into using the pulseIn() function to read the two signal and do your comparison.
  As an aside there is a related application that you are working on used on my 2000 Buick. The ABS signals are also used to compare wheel speed of all four wheels and signals that there is a low tire pressure if one reads different then the other three. It works very accurately, detecting low pressure on a tire that I can't see visually but proven correct with a pressure gauge. So what you are trying to do is certainly doable.



59  Community / Bar Sport / Re: The Cracked Pot on: July 03, 2014, 10:39:43 am
Reminds me of the 'glass half full/empty' definition:

Optimist, the glass is half full
Pessimist, the glass is half empty
Engineer, the glass is twice as big as required
Scientist, the glass is always full of something

60  Using Arduino / Programming Questions / Re: 1023 value in reading analog voltage on: July 02, 2014, 02:54:11 pm
Yep, the topic that will never die.  smiley-wink
Pages: 1 2 3 [4] 5 6 ... 1167