Show Posts
Pages: 1 ... 20 21 [22] 23 24 ... 147
316  Using Arduino / Installation & Troubleshooting / Re: [SOLVED] Dswy_Robot Mini Pro - RXD not connected (can't upload a sketch) on: March 23, 2014, 04:49:38 pm
I believe that model has holes for an ICSP connector, which is nice.
317  Using Arduino / General Electronics / Re: fried a pro mini..not exactly sure what I did... on: March 23, 2014, 03:09:41 pm
I like that!
318  Using Arduino / General Electronics / Re: ldr pre-process on: March 23, 2014, 02:54:14 pm
In that configuration, your input to an analog input will be .5 to almost 5 volts.
You don't want to use an Arduino analog i/p and you want to do it using passive components.
I cannot help you here.
319  Using Arduino / General Electronics / Re: ldr pre-process on: March 23, 2014, 02:27:09 pm
What is the range of resistance of your ldr?
What is the maximum voltage across the ldr?
320  Using Arduino / Programming Questions / Re: led motor code on: March 23, 2014, 02:22:36 pm
Tell us more how the LED comes into the picture?
321  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit solenoid valve problem on: March 23, 2014, 01:44:54 pm
Some info here:
http://www.pcbheaven.com/userpages/bjt_dc_load_switching_transistor/
322  Using Arduino / Displays / Re: Searching for a display on: March 23, 2014, 01:24:14 pm
Learn to solder.
I am sure if you watch some YouTube videos and practice for an hour or two you' be better for it.
323  Using Arduino / General Electronics / Re: fried a pro mini..not exactly sure what I did... on: March 23, 2014, 01:11:13 pm
Equipment ruined varies directly with experience smiley-wink
The mini is $3.00,  buy several.
324  Using Arduino / Project Guidance / Re: Convert BCD to decimal for switch case on: March 23, 2014, 12:53:05 pm
Reading bits on a port:
http://arduino.cc/en/Reference/PortManipulation#.Uy8Y-PLnbcc
Masking bits:
http://playground.arduino.cc/Code/BitMath#.Uy8ZZvLnbcc
Switch case:
http://arduino.cc/en/Reference/SwitchCase#.Uy8ZwfLnbcc
Here is a start:
Code: (Not Tested)
unsigned char var;
void setup()
{
  pinMode(8,INPUT_PULLUP);
  pinMode(9,INPUT_PULLUP);
  pinMode(10,INPUT_PULLUP);
  pinMode(11,INPUT_PULLUP);
  Serial.begin(9600);
}

void loop()
{
  var = PINB & 0b00001111;  // read bits 8 thru 13 and mask the top 4 bits
  Serial.println(var,BIN);
  delay(500); //slow things down a bit

  switch (var)
  {
  case 0:
  Serial.println("input is 0");
    break;
  case 1:
  Serial.println("input is 1");
    break;
   case 2:
  Serial.println("input is 2");
    break;
  case 3:
  Serial.println("input is 3");
    break;
//etc.
  case 15:
  Serial.println("input is 15");
  break;
 
  default:
    // if nothing else matches, do the default
    // default is optional
  break;
  }
}

EDIT:
PIND maps to Arduino digital pins 0 to 7 (UNO)
325  Using Arduino / Motors, Mechanics, and Power / Re: Adafruit solenoid valve problem on: March 23, 2014, 12:04:00 pm
Does this help?
http://wiki.bildr.org/index.php/Controlling_a_solenoid_(TIP120_Arduino)

Search
solonoid darlington transistor arduino
326  Using Arduino / Project Guidance / Re: Convert BCD to decimal for switch case on: March 23, 2014, 11:58:44 am
Is the variable only 0000 thru 1001 or can it be 10011001 ?
You say BCD is it otherwise?
Give us a range?
327  Using Arduino / Project Guidance / Re: Convert BCD to decimal for switch case on: March 23, 2014, 11:47:18 am
Give us a starting place, please share the code you have.
328  Using Arduino / Motors, Mechanics, and Power / Re: Arduino and motor driver sharing a common battery supply on: March 22, 2014, 09:39:52 pm
DCtoDC converter is a good recommendation.
Also driving the motors with a relay or optoisolator/MOSFET combination is advisable, take your motor grounds to the battery terminal with a separate ground run for the Arduino.
Use some sort of spark arrestor, MOVs diodes capacitors for the DC motors.
329  Using Arduino / Programming Questions / Re: direct port manipulation --analogeWrite on: March 22, 2014, 07:38:50 pm
digitalWrite would take that pin out of PWM mode so you do a analogWrite to put it back
330  Using Arduino / General Electronics / Re: Powering Arduino: Switching between battery and DC-plug power on: March 22, 2014, 07:25:49 pm
4xAAA alkaline would be 6 volts -.7v for the diode, a bit low for vin to work properly.
Pages: 1 ... 20 21 [22] 23 24 ... 147