Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Editing the preferences.txt file on: March 15, 2013, 10:35:24 am
What platform are you on?

-br

Fedora 18, KDE. Linux.

Hi everyone. I have a strange problem. I cant upload anything to Uno. So i tried find some infromation. And find some answers about preferences.txt file. So i try to edit this file but have:

Code:
[user@localhost home]$ ~/.arduino/preferences.txt
-bash: /home/user/.arduino/preferences.txt: Permission denied

And even in root i have this:
Code:
[root@localhost user]# .arduino/preferences.txt
-bash: .arduino/preferences.txt: Permission denied

So maybe some one can help me. Thanks.

You are trying to execute the preferences.txt file, which is just a text file and not an executable.
Yes. Just used this
Code:
kwrite ~/.arduino/preferences.txt
with normal user works fine. Thank you.
2  Using Arduino / Programming Questions / Re: Editing the preferences.txt file on: March 14, 2013, 07:34:20 pm
Hi everyone. I have a strange problem. I cant upload anything to Uno. So i tried find some infromation. And find some answers about preferences.txt file. So i try to edit this file but have:

Code:
[user@localhost home]$ ~/.arduino/preferences.txt
-bash: /home/user/.arduino/preferences.txt: Permission denied


And even in root i have this:
Code:
[root@localhost user]# .arduino/preferences.txt
-bash: .arduino/preferences.txt: Permission denied

So maybe some one can help me. Thanks.
3  Using Arduino / Sensors / Re: Different behaviour of Analog ports (A0 vs Ai) on: March 12, 2013, 03:40:44 pm
Thanks for the information. Even at that manner smiley.
Maybe this will help you. Some info about your micro-controller:
4  Using Arduino / Sensors / Re: Different behaviour of Analog ports (A0 vs Ai) on: March 11, 2013, 05:12:13 pm
Quote
I mean you put the pin to read and write?

Actually I think it only sets it to write as the last statement overrides the first.
Then read so?
Code:
pinMode(A3, INPUT);
?
Loop functions seems fine. But setup. Really i need get some more information.
5  Using Arduino / Sensors / Re: Noob question about IR stuff on: March 11, 2013, 05:10:45 pm
Well that sucks. Thanks for the response, though!
There is a distance sensor on the market.
6  Using Arduino / Sensors / Re: Different behaviour of Analog ports (A0 vs Ai) on: March 11, 2013, 05:05:47 pm
Code:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  pinMode(A0, OUTPUT); digitalWrite(A0,LOW);
  pinMode(A1, OUTPUT); digitalWrite(A1,LOW);
  pinMode(A2, OUTPUT); digitalWrite(A2,LOW);
  pinMode(A3, OUTPUT); digitalWrite(A3,LOW);
  delay(20);
  pinMode(A0, INPUT);
  pinMode(A1, INPUT);
  pinMode(A2, INPUT);
  pinMode(A3, INPUT);
  delay(50);
}

Can some one explain me why there is pinMode(A0, OUTPUT) and pinMode(A0, INPUT); in the setup? I mean you put the pin to read and write?
7  Using Arduino / Sensors / Re: How to detect someone easily with an infra-red sensor on: March 11, 2013, 04:52:02 pm
It is just a switch so use the code in this:-
http://arduino.cc/en/tutorial/button

Quote
to detect easily people or animal
There is no discrimination with that detector if it sees IR changes then it will trigger.
So he need to find some racist detector smiley
8  Using Arduino / Sensors / Re: Noob question about IR stuff on: March 11, 2013, 04:45:29 pm
Hi. Can you just draw what you need? Because really it's kinda difficult to understand what you want. Sorry. Sometimes little image can say more that 1000 words. Just draw in paint etc. program. Thank you.
9  Topics / Science and Measurement / Re: Signal generator with >8-bit DAC on: March 07, 2013, 07:21:25 pm
Maybe you can use digital output in PWM(with max. value for all) mode? I am a newbie so be careful smiley.
10  Topics / Science and Measurement / Re: pH sensor, Salinity sensor and Dissolved Oxygen sensor. on: March 07, 2013, 06:11:57 pm
Is it possible to make those sensors using Arduino? And can you use just one Arduino board for all those sensors? And I'm also beginner on Arduino and programming.
Yes i think. In two words. First you need to find a data-sheet of you sensor (probe). Then you can connect probe directly to your arduino board. Or first make a little intermediate board to regulate your current tension etc. But i think in most of probe (sensor) you can find already intermediate board (look the price).
For example.
Pages: [1]