Show Posts
Pages: 1 [2] 3 4 ... 20
16  Using Arduino / General Electronics / regulating 45v to 35v on: April 03, 2014, 01:58:13 pm
hi there what is the best way I can regulate 45v DC to 35v DC 2A?
or if it is any help I could do it on the AC side? maybe us a x capacitor?

thanks Joe
17  Using Arduino / General Electronics / Re: selecting a temp sensor on: March 19, 2014, 04:02:15 pm
ok thanks

so any one have any experience with  DS18B20 over long lengths?

3 wire or 2 wire?
18  Using Arduino / General Electronics / Re: selecting a temp sensor on: March 19, 2014, 03:00:20 pm
I'm ok with the cable

and don't think the Cat and Kitten would be a good idea for me as we don't wont anything in there just the sensor
19  Using Arduino / General Electronics / selecting a temp sensor on: March 19, 2014, 01:58:31 pm
hi there I'm looking for a temp sensor that I can use with my arduino couple of things I need to bear in mind is the lengths of the cable run could be up to 100m and there is a chance that the sensor could get paled out and the cable being shoed.
I have looked at the DS18B20 I presume I would have to run all 3 cause because of the length? and the volt regulator would not like being shoed?
did look at this:
 http://uk.mouser.com/ProductDetail/Vishay/NTCLP100E3472H/?qs=%2fha2pyFaduhmWE0I5%2f0lUWtfX8rOgM2KbyZFmBhB%252bYgmKCZRDfj59w%3d%3d

but don't no if they are any good?

any suggesting or ideas please say

thanks Joe
20  Using Arduino / Programming Questions / Re: encoder on: March 06, 2014, 02:41:10 pm
top people thanks  smiley-grin
21  Using Arduino / Programming Questions / encoder on: March 06, 2014, 02:11:46 pm
hi there I have this code what I got from here:  http://bildr.org/2012/08/rotary-encoder-arduino
what worked fine but in stead of counting in 1's I want to count in 0.1  how can I do this?

Code:

//these pins can not be changed 2/3 are special pins
int encoderPin1 = 2;
int encoderPin2 = 3;

volatile int lastEncoded = 0;
volatile long encoderValue = 0;

long lastencoderValue = 0;

int lastMSB = 0;
int lastLSB = 0;

void setup() {
  Serial.begin (9600);

  pinMode(encoderPin1, INPUT);
  pinMode(encoderPin2, INPUT);

  digitalWrite(encoderPin1, HIGH); //turn pullup resistor on
  digitalWrite(encoderPin2, HIGH); //turn pullup resistor on

  //call updateEncoder() when any high/low changed seen
  //on interrupt 0 (pin 2), or interrupt 1 (pin 3)
  attachInterrupt(0, updateEncoder, CHANGE);
  attachInterrupt(1, updateEncoder, CHANGE);

}

void loop(){
  //Do stuff here

  Serial.println(encoderValue);
  delay(1000); //just here to slow down the output, and show it will work  even during a delay
}


void updateEncoder(){
  int MSB = digitalRead(encoderPin1); //MSB = most significant bit
  int LSB = digitalRead(encoderPin2); //LSB = least significant bit

  int encoded = (MSB << 2) |LSB; //converting the 2 pin value to single number
  int sum  = (lastEncoded << 2) | encoded; //adding it to the previous encoded value

  if(sum == 0b1101 || sum == 0b0100 || sum == 0b0010 || sum == 0b1011) encoderValue ++;
  if(sum == 0b1110 || sum == 0b0111 || sum == 0b0001 || sum == 0b1000) encoderValue --;

  lastEncoded = encoded; //store this value for next time
}
22  Using Arduino / General Electronics / Re: attiny84 freezing on: March 06, 2014, 01:43:46 pm
hi there no I don't text them but when I'm next at site I will and we will see what we have
thanks again
Joe
23  Using Arduino / General Electronics / Re: attiny84 freezing on: March 01, 2014, 07:13:19 am
hi there I said I would post a pic and here we go





but I'm still having issues with it freezing so doe's any one have other suggesting?
only doing it about every 3-4 weeks
24  Using Arduino / General Electronics / Re: smd optocoupler on: February 23, 2014, 02:00:07 pm
ok thanks just looking at this one
http://uk.farnell.com/vishay-semiconductor/tcmd4000/optocoupler-transistor-o-p-3-75kv/dp/1469505RL
25  Using Arduino / General Electronics / smd optocoupler on: February 23, 2014, 01:14:34 pm
hi there
I have been using one of these Optocouplers and seem to work fine, but looking for a SMD Optocoupler now I no they do a smd of that opto but would like something smaller, does any one no of anything I could use?

http://uk.rs-online.com/web/p/products/6935952/
26  Using Arduino / General Electronics / Re: 3phase mains faliure circuit on: January 14, 2014, 04:20:56 pm
hehe I'm think im ok with 3 phase was I work with it 5 day a week.
just that I don't understand using a capacitor with a opto, and other people schematics I have seen have the phase going on to the opto and have the other leg of the opto go to the capacitor then the GND 

would you see any issues with using this opto as the PS2505-4 is not as available for me
http://uk.rs-online.com/web/p/optocouplers/6912218/
27  Using Arduino / Project Guidance / Re: multiple input monitoring on: January 14, 2014, 03:38:55 pm
I see now, ok thanks all for your help
28  Using Arduino / General Electronics / Re: 3phase mains faliure circuit on: January 14, 2014, 03:36:05 pm
ok thanks for that.
I am putting the x capacitor on the phase line not the ground?
29  Using Arduino / Project Guidance / Re: multiple input monitoring on: January 13, 2014, 01:23:30 pm
o I see, could I do this?

Code:
if (digitalRead(input1) && digitalRead(input2) && digitalRead(input3) && digitalRead(input4) && digitalRead(input5) && digitalRead(input6)) {   //check if any are high

30  Using Arduino / Project Guidance / Re: multiple input monitoring on: January 13, 2014, 01:08:12 pm
yes all that work's fine
Pages: 1 [2] 3 4 ... 20