Show Posts
Pages: [1] 2 3 ... 592
1  Using Arduino / Programming Questions / Re: Help needed with magnetometer coding. on: August 28, 2014, 04:42:32 pm
Typically you would, in setup(), call the function to get a reading and save that reading in a global variable.  Give that a try and if you can't get it to work, post your code.
2  Using Arduino / Project Guidance / Re: Programming Arduino with a Motor drive shield on: August 28, 2014, 04:33:57 pm
then map that pot value (which is from 0-1023) to an analog output from 0-255

You wil probably want something like -255 to 255 as your output range.

If you have a "return to center" joystick you may want to put in code to stop the motor if the joystick is close to the center position (which should be close to 512 but not necessarily equal to 512).
3  Using Arduino / Project Guidance / Re: First Project - Servo/Motor Rotation & Reset on: August 28, 2014, 04:26:38 pm
You don't need a regulator (assuming the 6.3V is reasonably stable), just a voltage divider (two resistors).  You want about 75% of the voltage (4.7V) to go to the Arduino input pin so you want 1*X Ohms from the voltage source (bulb) to the Arduino pin and 3*X Ohms between the Arduino pin and Ground.  The value X should be between about 10,000 and 25,000.

You may run into a problem if it is the Ground side of the bulb that is switched.  That should be OK but will reverse the logic: when the bulb is ON (grounded) the voltage will be 0.  When the bulb is OFF the voltage through the bulb will be close to 6.3.
4  Using Arduino / Project Guidance / Re: problem using gps&servo on: August 28, 2014, 04:15:53 pm
Yes, I am using software serial
how do I solve this problem ?

You could:
    a) Use the hardware serial port on an UNO and give up on Serial I/O to the PC
    b) Use a Leonardo which can talk to the PC via USB(Serial)  leaving the hardware serial (Serial1) free.
    c) Use an Arduino MEGA which has several hardware serial ports
    d) Use a Timer/Counter to produce servo outputs in hardware without needing interrupts.
    e) Use a PWM shield to control servos with hardware.
5  Topics / Product Design / Re: Arduinoo send digital data through telephone line on: August 28, 2014, 12:01:15 pm
Remember that a 56k modem can only send 56k to an ISDN (64k digital) phone line.  If you connect two V.90/92  (56k) modems on analog lines they will likely top out at V.34 speeds (28.8k or 33.6k).
6  Community / Bar Sport / Re: Gas carrying charged particles on: August 28, 2014, 11:45:06 am
A capacitor is two conductors separated by an insulator.  In your design, what are the conductors and what is the insulator?
7  Using Arduino / Project Guidance / Re: Programming Arduino with a Motor drive shield on: August 28, 2014, 11:42:20 am
Is this the shield you have?  https://learn.adafruit.com/adafruit-motor-shield

Have you tried installing the library and following the Using DC Motors tutorial?
8  Using Arduino / Project Guidance / Re: problem using gps&servo on: August 28, 2014, 10:53:02 am
Are you using SoftwareSerial to talk to the GPS?  That will disable interrupts while each character arrives and can cause massive jitter in the Servo library.
9  Using Arduino / Project Guidance / Re: First Project - Servo/Motor Rotation & Reset on: August 28, 2014, 10:38:10 am
Measure the voltage on the lamp when ON and OFF.  If that voltage is close to 0 when off and between 3V and 5V when on you can connect it directly to a digital input pin.  If the on voltage is low (< 3V) you could use an analog input pin.  If the voltae is above 5V you will need a voltage divider to bring it down to the 3-5V range.

A servo wil be your best bet for moving between two adjustable positions.  You may find that separate servos for the two wings might make the mechanics easier.
10  Using Arduino / Sensors / Re: Carbon monixide mq7 data sample on: August 26, 2014, 06:07:33 pm
The sensor does not directly read ppm, is sensitive to temperature and humidity, and has to warm up for 24 hours before you can expect stable readings.  Read the sensor data sheet for details.
11  Using Arduino / Networking, Protocols, and Devices / Re: Coordinates on: August 26, 2014, 06:01:45 pm
Yes, if the GPS has a clear view of the sky.
12  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial.println() was not working in Arduino Leonardo on: August 26, 2014, 09:58:19 am
Do you see " i am in setup" if you reset the Arduino?  I suspect you aren't getting Serial Monitor started fast enough to catch the message.  You could put a delay in setup() to allow yourself more time to start Serial Monitor.
13  Using Arduino / Sensors / Re: inputs strange behaviour, on: August 26, 2014, 09:55:15 am
Sounds like Pin A2 and Pin A3 might be shorted together.  Check your wiring.
14  Using Arduino / Project Guidance / Re: 5W or 10W Led Driver for RGB on: August 26, 2014, 09:53:18 am
Do you want to control each of the four colors?  Do you want separate control on each of the ten packages?

You can use an LM317 linear voltage regulator as a current regulator.  You can get then for about $0.25 in quantity 100 via eBay.  You just need a resistor to pick the current.
15  Using Arduino / General Electronics / Re: 240vac Aussie Plug Wiring. on: August 26, 2014, 09:29:10 am
EU death plugs (no doubt from China). 
Imaging you fail to get them aligned correctly and one pin enters whilst the other passes on the outside of the free socket.
You now have a 50:50 chance that the exposed pin is live

It looks like the INTENT is to have the hexagonal recess be deep enough so that the pin won't reach power unless the hexagonal plug fits into the recess.  Of course the intent of the design can be circumvented by lazy implementation.
Pages: [1] 2 3 ... 592