Show Posts
Pages: 1 ... 5 6 [7] 8
91  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: December 03, 2012, 04:12:31 pm
Hi-de-ho, neighbor.
Home improved and tested and works:
Code:
valveRange = constrain(valveValue, 400, 800);
valvePercentage = map(valveRange, 400, 800, 0, 100);
92  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: December 03, 2012, 12:00:49 pm
Ah map is the thing to look for.
So i also need no calculation.
And constrain that i don't get minus values or more the 100.
Code:
void loop() {
  valveValue = analogRead(valvePin);
  valveInDig = valveValue;
  valveRange = map(valveValue, 400, 800, 0, 100);
  valvePercentage = constrain(valveRange, 0, 100);
  float voltage = valveValue * (5.0 / 1023.0);

  // now print it
  Serial.print("Dig: "); Serial.print(valveInDig);
  Serial.print(", Range: "); Serial.print(valveRange);
  Serial.print(", Percentage: "); Serial.print(valvePercentage);
  Serial.print(", Volts: "); Serial.println(voltage);
  delay(1);
}
But now i start to think about the potentiometer and resolution if i have only a 90° range.
I also want to log the data to SD. But only if there is change that it's not to much data.
So it don't need to be sensitive and that there is not a change just from vibration. I think
logging 5% steps is enough. It's a mechanical valve from the 80s so anyways it's not the
most exact device in the world smiley
93  Using Arduino / Project Guidance / Re: Understanding the Uno's USB Isolation Circuit on: December 03, 2012, 11:05:48 am
so should use an unregulated voltage input
It has nothing to do with regulated vs unregulated. Its about voltage drop.
Voltage regulators have a voltage drop.
If you want 5 Volts you need around 7 Volts.
So if you feed Vin with just 5 Volts you have a drop at the Arduinos voltage regulator.
An you should use a regulated supply that your power is stable.
94  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: December 03, 2012, 10:50:24 am
Ok, sometimes I think to complicated.
It's a lot easier. There is a shaft inside until the cover.
On that shaft is a disc and this disc is just pinned. You can see the
disc in the image. The blue one with the red that is there to show
the heat. So i just need to drill a hole in the cover, remove the disc
and couple the potentiometer with a shaft coupling: http://www.reichelt.de/Potiknoepfe/ACHSKUPPLUNG-2/3/index.html?;ARTICLE=42133
I make pictures when it's done.

But how is the calculation done.
It just turns 90°. So i think i need to open and close my valve and need to check the digital value (max and min) and at them to
the code.This is what i have for the hole range:
Code:
int valvePin = A0;
int valveValue = 0;
int valvePercentage = 0;

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

void loop() {
  valveValue = analogRead(valvePin);
  float voltage = valveValue * (5.0 / 1023.0);
  valvePercentage = valveValue / 10 / 1.02;

  // now print it

  Serial.print("percentage: "); Serial.print(valvePercentage);
  Serial.print(", volts: "); Serial.println(voltage);
  delay(1);
}
But how do i set 400-800 as 100 percentage range?
95  Using Arduino / Microcontrollers / Re: USB specification? on: December 02, 2012, 10:44:11 pm
Thank you.

I'm curious because i can't find info about the USB specs.
But i think it doesn't matter cause the speed is only serial speed.
96  Using Arduino / Microcontrollers / USB specification? on: December 02, 2012, 07:01:33 pm
Hi,

i can't find the USB specs for the Arduinos - 1.1 or 2.0?
I want to use a USB via CAT line extender but the extender is only 1.1.

The other question is: If connect to USB the Arduino gets 5 Volt from USB.
But I can feed 12 Volt into Vin at the same time?
97  Using Arduino / Sensors / Re: Reading central heating system thermistor's? on: December 02, 2012, 12:51:07 pm
I thought the Arduino SCK (D52) must be routed to SCK of the MCP3204?
If i swap them "Arduinos SCK" goes to "CS of MCP3204" and "CLK of MCP3204" to a digital pin of the Arduino?
98  Using Arduino / Sensors / Re: Reading central heating system thermistor's? on: December 02, 2012, 08:54:01 am
Ups, i did forged the attachment in the last posting.
I think i need more sleep  smiley-sleep
99  Using Arduino / Sensors / Re: Reading central heating system thermistor's? on: December 01, 2012, 06:23:16 pm
Ok, next one smiley

Now i need to read allot about the SPI stuff and why it's now hardware with the 74LVC1G125W5.
It means i need a 74LVC1G125W5 for every device now that uses SPI (SDcard, Ethernet...)?
100  Using Arduino / Storage / Re: Arduino Ethernet Shield microSD max size? on: November 30, 2012, 01:11:42 pm
Thanks.
Just was asking cause a lot of stuff out there does not work
with some class's and has GB limitation (like a lot of smartphones).
101  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: November 30, 2012, 01:08:46 pm
I'm not joking. Never so a lever on a poti - only knobs.
I mean are there some to buy?

If not need some aluminum square and need to make a thread from the side for a screw.
102  Using Arduino / Storage / Arduino Ethernet Shield microSD max size? on: November 30, 2012, 09:58:59 am
Hi,

i can't find what the maximum microSD size is for the Ethernet Shield.
And what speed class works? SDHC 2, 4, 6, 10?
Does class 10 make sense?
103  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: November 30, 2012, 09:23:47 am
A hole in the top of the valve lever and a servo linkage would not be a problem.
But what to use as lever on the potentiometer, hm?

What would be the best value for the potentiometer - 10K ?
104  Using Arduino / Project Guidance / Re: getting position of mixing valve lever on: November 30, 2012, 01:45:06 am
From left to right its 170mm (6.7in).
So 20 LDRs every 8.5mm (0.35in) would give me 0%, 5%, 10%...

I also thought about ultrasonic on the side of the lever. But at 0% and 100% the lever is tilted.
So i have no idea how to do it.

The linkage/potentiometer solution would be very precious. But where to mount the potentiometer
and also there is the tilt problem.

So looks like a infrared LED/laser on the lever and a semicircle with LDRs in front is the easiest way.
Maybe i can count in 2,5% steps - the positions when the laser is between two LDRs?

Some tips on laser and LDRs?
105  Using Arduino / Project Guidance / getting position of mixing valve lever on: November 29, 2012, 11:59:03 pm
Hi,

i have a mixing valve (hope you call it like this in english) with a lever.
The lever moves from left to right and vice versa.
The valve is driven by a 230V motor.

I need some ideas how i can log the leaver position.
Is there some tension sensor or something like this out there?

I attached some pictures.
Pages: 1 ... 5 6 [7] 8