Show Posts
Pages: [1] 2 3 ... 592
1  Using Arduino / General Electronics / Re: boosting regulator supply on: Today at 11:07:24 am
Current (Amps) is a measure of how many electrons per unit time are passing through a conductor.  Since a circuit can't create electrons the current going into the circuit has to be the same as the current you want to get out of the circuit.  The transistor just shares the load to keep from frying the 1A regulator.
2  Using Arduino / Project Guidance / Re: potentiometer help on: August 29, 2014, 04:46:10 pm
Ah right yeah.  Thats awesome.  So i wouldnt really even need to use a mega, i can cut costs even more by using this method

If you don't need analog inputs for anything else (like I2C) you can use 5 of the 4051 multiplexers on 5 of the 6 analog inputs of an Arduino UNO.

If you need some analog inputs for other stuff you can use three of the 4067 multiplexers on 3 of the 6 analog inputs of an Arduino UNO to get 48 analog channels.
3  Using Arduino / Project Guidance / Re: potentiometer help on: August 29, 2014, 06:52:25 am
Use a 4051 8-channel or 4067 16-channel analog multiplexer on each of several analog inputs.  Use 3 or 4 digital outputs to select the input channel and read the analog inputs to get the data.

5 analog inputs * 8 channels per input will give you 40 channels.
4  Using Arduino / Programming Questions / Re: Multiple IR recevers using IRLibrary on: August 29, 2014, 06:47:41 am
If you leave the unused inputs floating they will likely pick up noise from the remaining receiver.  Try grounding the unused inputs to see if the spurious results go away.
5  Using Arduino / Installation & Troubleshooting / Re: Trouble in uploading the code on: August 29, 2014, 06:39:36 am
That doesn't look like the messages I get from Arduino 1.0.5.  What version of the IDE are you using and what model of Arduino are you using?
6  Using Arduino / Project Guidance / Re: First Project - Servo/Motor Rotation & Reset on: August 29, 2014, 06:28:11 am
There is a good chance that the lamp behaves differently during "attract mode" and during game play.  If attract mode blinks the light and game play doesn't you can use the timing difference to detect the mode.  Just a matter of programming.
7  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.
8  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).
9  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.
10  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.
11  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).
12  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?
13  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?
14  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.
15  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.
Pages: [1] 2 3 ... 592