Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: September 25, 2007, 05:44:30 pm
When attempting to compile my program with the onewire library I am getting this error. I have created the library directories and added the keyword file.

o: In function `__static_initialization_and_destruction_0(int, int)':
undefined reference to `OneWire::OneWire(unsigned char)

Anyone know how to fix it?

#include <OneWire.h>

OneWire  ds(10);  <------------ Commenting out this line makes the program compile

void setup() {

}
2  Forum 2005-2010 (read only) / Interfacing / Arduino skips a beat... on: January 04, 2008, 11:23:44 am
Hello all. I have noticed something strange about my arduino. I have wired up my arduino dec the same as found in http://www.arduino.cc/en/Tutorial/ShiftOut . However, I did not use the capacitor as indicated on the latch pin. However, I'm not sure if that is at all my issue.

In short, my arduino is to execute a command once every second for example - light one of four LEDs.

So it'll start out like this: 1 - 2 - 3 - 4 with perfect cadence.

Then after maybe five or six times through the series it'll behave like follows: 1 - - -
Only the first led will be illuminated for four seconds.

Then it may do something like this: 1 - 2 - -, - 2 - 3 -, - - 3 - 4, 1 - - 4

Almost like it's having a brain freeze. Any ideas as to what may be causing this?
3  Forum 2005-2010 (read only) / Interfacing / Re: Intrigued by Arduino on: September 23, 2007, 02:27:38 pm
Could I re-scale the voltage range as follows using a voltage divider. I *think* this would make the full scale of analogRead 0-1024 to be in the range 0V-6V. Can anyone verify this?

This was computed using the formula

Vout=(Vin*R2)/(R1+R2)

Vin
|
|
#R1 20k ohms
|
-------------------------->Vout to Arduino pin X
|
#
R2 at 100k ohms
|
|
_
-
Ground
4  Forum 2005-2010 (read only) / Interfacing / Intrigued by Arduino on: September 23, 2007, 12:09:36 pm
First off, I have no experience whatsoever with microcontrollers. I do have considerable experience programming - however not for microcontrollers. However, I do really like to create things - and have possibly set up a target a bit unrealistic for a first project. It would seem simple, but I'm waiting for a little bit of input from some gurus.

Here we go:
I would like to use arduino to monitor voltages somewhat specifically. For example, I need to know if a voltage(from an analog input) is approximately +- one of the following voltages: 1.782v, 2.242v, 2.960v, 3.630v, 4.310v, 4.660v, 5.000v. I have read a little about a "limitation"(perhaps not the right word) - arduino can read voltages between 0-5V and something about proportions. I was wondering if having 5v being one of voltages I need to monitor would be a problem as it is the upper limit of arduino? I have heard about voltage dividers and such, but I'm not sure how to implement one or if it is even necessary.

Second, I was wondering if there is a good site for idiots like myself to find material that an idiot can digest quickly. Perhaps one of you friendly people have a site that you use as a quick reference?

Thank you!
Pages: [1]