Show Posts
Pages: 1 ... 381 382 [383] 384 385 ... 542
5731  Using Arduino / General Electronics / Re: really dumb question on: January 28, 2012, 03:30:46 pm
Volts, Amps and Ohms are all related.  Read about "Ohm's Law".

In the case you tested, the voltage across a part of a circuit depends on the relative resistance of that part of the circuit.  The meter has a VERY high resistance (a.k.a. impedance), therefore almost ALL of the voltage in your circuit is going through the meter.

You should try Google (or Bing) to find moisture sensor circuits that you can emulate.
5732  Using Arduino / Programming Questions / Re: Can Timer 1 event capture pin ICP1 wake Arduino/ATmega328 on: January 28, 2012, 03:21:16 pm
Looks like the Input Capture Interrupt is NOT a Wake-up Source.

Perhaps you can connect your IR signal also to INT0 or INT1 and wake the CPU with that.   Disable that interrupt while the input capture interrupt to measure the pulse pattern.  When the signal has been received, re-enable the INT0 (or INT1) interrupt and go back to sleep.
5733  Using Arduino / Networking, Protocols, and Devices / Re: HMC6352 Suggestions on: January 28, 2012, 02:52:05 pm
I mean to say that how compass HMC6352 works 

It works like this: http://www.sparkfun.com/datasheets/Components/HMC6352.pdf
5734  Using Arduino / Installation & Troubleshooting / Re: SoftwareSerial with Aurduino1.0 on: January 28, 2012, 12:46:59 pm
I looked at the sources and SoftwareSerial.cpp is nearly identical to NewSoftSerial.cpp.  The main difference I found is that NewSoftSerial() contains these macros:

Code:
// Abstractions for maximum portability between processors
// These are macros to associate pins to pin change interrupts
#if !defined(digitalPinToPCICR) // Courtesy Paul Stoffregen
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
#define digitalPinToPCICR(p)    (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)NULL))
#define digitalPinToPCICRbit(p) (((p) <= 7) ? 2 : (((p) <= 13) ? 0 : 1))
#define digitalPinToPCMSK(p)    (((p) <= 7) ? (&PCMSK2) : (((p) <= 13) ? (&PCMSK0) : (((p) <= 21) ? (&PCMSK1) : ((uint8_t *)NULL))))
#define digitalPinToPCMSKbit(p) (((p) <= 7) ? (p) : (((p) <= 13) ? ((p) - 8) : ((p) - 14)))
#else
#define digitalPinToPCICR(p)    ((uint8_t *)NULL)
#define digitalPinToPCICRbit(p) 0
#define digitalPinToPCMSK(p)    ((uint8_t *)NULL)
#define digitalPinToPCMSKbit(p) 0
#endif
#endif

I don't know if or how that might cause the symptom you are seeing.

Another difference is that the .activate() method has changed name to .listen().  It switches which software serial port is currently looking for input (I guess you can't have more than one enabled at a time).  A call to .read() or .available() will make that port active, but will return immediately if the port wasn't already active.  If you alternate between calling .available() on two different software ports you will never see data. smiley-sad
5735  Using Arduino / General Electronics / Re: PMW on: January 28, 2012, 12:30:00 pm
I have a robot with a 12 volts battery, I'm trying to power all the 5 volts devices because the Ardunio cant handle all of it (servos,PING,Infrared Sensors,LED's Compass Chip,relays ,ect )

So "PMW" has nothing to do with PWM?  What do you mean by PMW?

Yes, this will work just fine at powering several servos and assorted other 5V devices.
5736  Using Arduino / General Electronics / Re: PMW on: January 28, 2012, 10:22:32 am
I am planning on buying this. http://www.ampmodel.com/product_info.php?products_id=3850
supposedly is uses PMW. I plan on feeding it 12 volts to make the PMW. now My main question is about PMW its self.
can PMW be used to power any type of electronics? is there any type of electronics PMW will break?

That's a BEC: Battery Eliminator Circuit.  You hook it to the battery of your radio controlled car/plane/boat to provide regulated 5V for the radio receiver.  It has no control input.  The output is always 5V DC.

Often the BEC is included as part of the ESC (Electronic Speed Control).  The ESC takes pulse-width signals from the radio receiver and controls the speed and direction of an electric motor.

Are you sure you don't want an ESC instead?
5737  Using Arduino / Networking, Protocols, and Devices / Re: Accessing Arduino Webserver via Internet on: January 28, 2012, 08:45:18 am
For example if your LAN server is at http://192.168.1.5:8080/ you can just have the router forward Port 80 (http default) connections to 192.168.1.5 port 8080.  Then anyone trying to get to the http port of your house will actually be connected to the http port of your Arduino.
Should that be :-
For example if your Arduino LAN server is at http://192.168.1.5:8080/ you can just have the router forward Port 80 (http default) connections to 192.168.1.5 port 8080.  Then anyone trying to get to the http port of your house will actually be connected to the http port of your Arduino.

Yes, by "your LAN server" I mean the device on your LAN that is acting as a server (in this case an Arduino acting as a web server).
5738  Using Arduino / Motors, Mechanics, and Power / Re: Uno - Vin pin or Jack connector? on: January 27, 2012, 07:57:58 pm
They are both connected to the same place: input of the 5V regulator.
5739  Using Arduino / Storage / Re: need to use a level shifter with this sd card shield? on: January 27, 2012, 07:56:13 pm
They don't provide a schematic so it's not clear if they make any effort to adjust logic voltage or not.
5740  Using Arduino / Sensors / Re: Arduino Eye Shield as motion detector on: January 27, 2012, 07:52:33 pm
http://nootropicdesign.com/projectlab/2011/03/20/video-frame-capture/

Looks like a call to tv.capture() stores a 128x96 black and white image in the TVout frame buffer.  You can then read out those values.

The sample, as written, just displays the captured data.  That will be good for setting the compare threshold knob.
5741  Using Arduino / Networking, Protocols, and Devices / Re: Accessing Arduino Webserver via Internet on: January 27, 2012, 03:51:54 pm
Dynamic DNS is a good start.  It will allow remote access to the Internet-facing IP address of your router.

The next step is to set up your router for port mapping.  As far as the Internet is concerned, your entire house is one computer.  When making outgoing connections from your computer on your local LAN to the Internet the router acts as a proxy.  When connection attempts come from the Internet it is your router that decides what to do with them.  To allow access to a web server on the LAN your router has to know what port to accept connections on and what LAN address and port to send them to.  For example if your LAN server is at http://192.168.1.5:8080/ you can just have the router forward Port 80 (http default) connections to 192.168.1.5 port 8080.  Then anyone trying to get to the http port of your house will actually be connected to the http port of your Arduino.
5742  Using Arduino / Project Guidance / Re: Using ATMega328 on breadboard on: January 27, 2012, 03:32:51 pm
You can?  I was trying and I kept getting avrdude errors.  Had the ISP sketch and the boards.txt files all updated and it still didn't work so I just assumed that the page was still relevant.  Do I just follow the same steps outlined in the tutorial or is there something special that needs to be done?

Be sure to disable the auto-reset on the UNO.  After uploading ArduinoISP connect a 1 to 10 microfarad capacitor from Reset (+) to Ground (-) or, alternatively, connect a 100 to 120 ohm reeitor from Reset to +5V.
5743  Using Arduino / Project Guidance / Re: What could I be doing wrong? on: January 27, 2012, 03:29:33 pm
The wiring looks OK but prototype boards are fairly notorious for bad connections.  I would try a simpler sketch that turns all the relays on.  Then you can wiggle wires to see if a connection is loose.
5744  Using Arduino / Programming Questions / Re: Voltage on all 6 input pins on: January 27, 2012, 03:13:15 pm
If you use a pull-up or pull-down resistor on the analog inputs at least the voltage won't be changing when the pin is otherwise disconnected.  Something like a 10K pull-down should get the pin to read 0 when not otherwise connected and not burden your voltage sources much when connected.
5745  Using Arduino / Project Guidance / Re: What could I be doing wrong? on: January 27, 2012, 03:09:00 pm
Sounds like a wiring problem rather than a code problem.  How are the relays connected to the Arduino?
Pages: 1 ... 381 382 [383] 384 385 ... 542