Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / DS18B20 Adress on: December 18, 2013, 02:16:15 pm
Hi guys,

I have a DS18B20 sensor, and in my program I have the sensor's adress. I want to use this as an advantage.

How can I write when the given adress doesn't match (cause there is only one same adress) ie the sensor is off the board, terminate the whole program.

I have something like this:

DeviceAddress insideThermometer = { 0x28, 0xA0, 0xD7, 0x1A, 0x05, 0x00, 0x00, 0x5B };

So I don't know how to say like if the adress in the { ... } is not the same with the one on the board, terminate the program, shut the LCD etc.?

Thanks in advance!
2  Using Arduino / Programming Questions / Arduino protection on: November 27, 2013, 04:15:36 pm
Hi friends,

I have a project which involves a DS18B20 sensor. I know it has a certain "adress" which can be recognized by the arduino.

I want to use this as protection. For example, how can I make when the DS18B20 is not on the board with the very specific adress ( which means only one sensor to be right for the board, never another one) and when it's not on the screen shuts off. Possibly 7 segment display shuts off.

Thank you and all the best.
3  Using Arduino / Programming Questions / Re: Mapping values on: November 24, 2013, 07:16:38 am
Thank you for the reply I will try this.
4  Using Arduino / Programming Questions / Re: Mapping values on: November 23, 2013, 05:32:11 am
Thank you all for the replies and sorry for the late response.

I did find something that suits me well, but I do need it with a little bit of upgrade.

http://www.kasperkamperman.com/blog/arduino/arduino-programming-map-and-smooth/

The constrain example at the end is good for minimum and maximum value, but I need 2 more values between min and max.(http://interface.khm.de/index.php/lab/experiments/nonlinear-mapping/) This is a link that has a good example that can be used but I don't know how to achieve this.

If anyone can succeed to make it for me I'd be very grateful.

Thank you all again.
5  Using Arduino / Programming Questions / Mapping values on: November 21, 2013, 12:41:38 pm
Hi,

I have a question about Arduino's mapping option.

As described in the link : http://arduino.cc/en/Reference/Map

I want the starting and ending point of the potentiometer not the be min and max, but I want to set the minimum and maximum values myself. For example, 15% of value to be 0, and maximum to be for example on 79% to be 10. After that, 5 should be manually - by me - for example I want 5 to be 60%.

I want the scale or the map, to be divided manually - for me to set the values.

I hope you understood me.
6  Using Arduino / Programming Questions / Re: LED dimming on: June 08, 2013, 03:12:41 pm
How could I've not thought of that.

I knew that it was going too fast, I just didn't try adding a delay in the for loop. That wraps it up.

Thank you for your help.
7  Using Arduino / Programming Questions / LED dimming on: June 08, 2013, 02:21:10 pm
Hi everyone!

I was trying to get some result from the example below where the LED's intensity would follow the timer(the value of it)

Code:
int led = 9;

int timer = 0;

void setup()
{
  pinMode(led, OUTPUT);
}

void loop()
{
for (timer = 0; timer < 255; timer++)
{
  analogWrite(led, timer);
}
delay(1000);
}

Can anyone point me where my mistake is?

Thank you for the responses in advance. Best regards.
8  Using Arduino / Project Guidance / Re: Reading input from potentiometer on: May 06, 2013, 05:55:03 am
Thank you, I will try this and will post if I get stuck somewhere.

Again, thanks for all the responses.
9  Using Arduino / Project Guidance / Re: Reading input from potentiometer on: May 04, 2013, 10:00:05 am
No, this is a project that I want to do as a hobby project - to learn and experiment more with the Arduino.
10  Using Arduino / Project Guidance / Re: Reading input from potentiometer on: May 04, 2013, 08:32:12 am
Yes, thank you, that is what I need.

Unfortunately, maybe the other that answered had my solution but I can't put the code all together. Can anyone give me a done project so that atleast I can simulate and test it.

Once again, thank you all for your answers.
11  Using Arduino / Project Guidance / Re: Reading input from potentiometer on: May 04, 2013, 07:40:54 am
Thank you all for the answers.

What I need is shown in this video :






In my case, the potentiometer is logarithmic.

Only what I need is instead of the voltage to regulate the digits, I need a potentiometer.

So, when there is an input from 35 to 50 ohms resistance, it shows a certain number for example 02.

So basically, I don't need the values to be linear. I need the values to be made by me manually - I tell which value corresponds to the resistance.

I hope I made myself clearer this time.

I forgot to mention that I'm a beginner at this, so I will need code if possible, I've only experimented a little with Arduino.

Thanks.
12  Using Arduino / Project Guidance / Reading input from potentiometer on: May 03, 2013, 12:10:25 pm
Hi,

How can I make TWO DIGIT 7-segment display to read the value from the potentiometer? For example, if the resistance is greater than 35 ohms, the display shows the digit 1. If the resistance is greater than 50, the display shows the digit 2 and so on.

So basically, I want to manipulate the value of the resistance.

Here is what I need in pseudo-code :

Code:
if(value > 0 && value <= 35)
   displayValue = 00;
if(value > 35 && value <= 50)
   displayValue = 01;
if(value > 50 && value <= 75)
   displayValue = 02;

etc..

And if possible the PCB to have as much less parts as possible.


Thanks for the help.
Pages: [1]