Show Posts
Pages: 1 ... 5 6 [7] 8 9
91  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Atmega8(L) - Arduino 3V Version on: May 19, 2006, 01:05:20 pm
I think another solution is to hook up a 3V source in the power connector...
and be sure to change the jumpers near the usb board

but I don't know how the microcontroller will feel about receiving the 5V from the USB if you plug it in fo programming

fallen...how do you do that? did you solder the LM317 on the board instead of the 7805?

cheers
b.
92  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Arduino Map (QUIZ) on: February 07, 2006, 01:51:01 pm
ok thanks for the reply,

maybe a day I'll try it out exactly because I don't have any grasp of analog electronics smiley
hopefully in the process I'll get some more of that needed grasp

thanks&cheers
beltran
93  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Arduino Map (QUIZ) on: February 07, 2006, 12:45:36 pm
fantastic!!!
this post should be linked from the  "Familiarise with the Arduino Board" tutorial...

I'm curious to work on the aref...
can I just stick a pot in the aref and see what happens to another analog input (via serial feedback)?
is this enough or do I need more circuitry?
do I risk somenthing or once I remove the pot from the aref pin it will get back to behaving normally? (I mean playing with it won't "record" any preset in the atmega8, right?)

thanks in advance
b.
94  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using 2 ping))) ultrasonic sensors? on: May 27, 2006, 06:11:03 pm
so you need to have BOTH readings before going into the next step
that "both" is already giving you a hint of the behaviour

in pseudocode it would be described more or less as
Code:
sendpulse1
sendpulse2

do untill you have both readings {
     listenpulse1
     countpulse1Distance
     check_if_Sensor1_is_completely_read
     listenpulse2
     countpulse2Distance
     check_if_Sensor2_is_completely_read
}

go on with your program


now there are a number of ways of doing this
the first than I can think of right now is this... (maybe not the most appropriate...when checking multiple conditions it's almost always a russian roulette where the result can be completely unexpected, expecially if you are not bertrand russel and master the logical flow... note that my name is beltran smiley-wink hehehe)

Code:
//I'm skipping to the read both sensor code ... I assume all variable declaration for the code herafter

//create two pseudo boolean variables that tell us if the sensors have COMPLETED the reading
//completed means that after having started the counting process they receive a low value to stop counting
int readSensor1 = 0; // zero acts as boolean false  ... 1 acts as boolean true
int readSensor2 = 0;
//wait untill BOTH variables are true-> untill both sensors have been completely read
while ( (readSensor1 != 1)  &&  (readSensor2 != 1) ) {
      //read both sensors
      val1 = digitalRead(sensor1);
      val2 = digitalRead(sensor2);
      //count sensor1 only if it's high
      if (val1 == HIGH) {
            //add one to the count
            timecount1++;
            //check again inside this loop if it is actually LOW - this means that the echo has completely arrived
            //note that we are not storing it into a variable because we don't need to reuse it
            //it's just used to mark the boolean value to not perform the timecount operation again
            if( digitalRead(sensor1) == LOW)   readSensor1 = 1;
      }
      //count sensor 2
      if (val2 == HIGH) {
            timecount2++;
            if( digitalRead(sensor2) == LOW)   readSensor2 = 1;
      }

      /*NOW we either have one of the 4 following cases:
      1- both sensors are still LOW  -> so the readSensor1 and 2 variables haven't been marked  -> hence repeat the loop
      2- one of the 2 sensors or both are still HIGH -> the timing has started but not completed -> continue in the loop
      3- one of the 2 sensors has been marked as "read" but not the other -> continue in the loop BUT don't perform the count on the first of the sensor marked as "read"
      4- both sensors are marked as "read" -> exit the loop and continue with the program
        */
}


I haven't tryed it...it might contain mistakes smiley
as I said it might not be the most appropriate method...there is always more than a way to skin a cat...
here you see how the && condition is applied.

try it and tell us if it works..

another thing...why don't you write a small tutorial or give us some reference for the wiki about
driving "the motor in both directions in different speeds (using the L298N and the PWM outputs)"
 smiley-wink
that would be very helpfull
wiki -> www.arduino.cc/playground

hope it helps
b.
95  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using 2 ping))) ultrasonic sensors? on: May 25, 2006, 01:39:47 pm
describe a bit better what you want to obtain...
what are the conditions?
what do you want to measure?

are the 2 sensor exclusive? if you get the right value in one do you still need to read the second?
do you need to count how long the high value stays for?
for both?

first describe in words your project
then see if the tech is the right for you...you might not need these sensors/method for what you want to get.

cheers
b.
96  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using 2 ping))) ultrasonic sensors? on: May 19, 2006, 12:57:06 pm
you can use a while loop that checks for EITHER one condition OR the other
the operand that you need is    ||    which means OR

somenthing like

while (  condition_on_sensor1  ||  condition_on_sensor2  ) {
     val1 = read sensor 1;
     val2 = read sensor 2;
}

it's abstract...I haven't checked the exact working of your code..

obviously your code will look more like

while (  (val1 == HIGH)  ||  (val2 == LOW)  ) {
   //your actions here
}


you can add as many conditions as you want
while ( condition1  ||  condition2  || condition3 ) {
}

 if instead you need to wait that BOTH conditions are true, you must use the AND operand
wich is written in code &&

while( condition1 && condition2 ) {
}

if this is new to you I suggest you read through the excellent
C tutorial posted on the playground wiki
http://www.arduino.cc/playground/Learning/Programming

look under the "logical operators" section.

b.


97  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: radio frequency on: May 19, 2006, 01:13:30 pm
I've seen some remote controlling using IR infrareds...but that has many downsides...

check on the arduino tutorials section in the playground
http://www.arduino.cc/playground/Learning/Tutorials

after you tutorial with the bluetooth antenna there is another wireless connection
through Zigbee...
http://mrtof.danslchamp.org/AXIC
but I have no clue on how much power demanding is that, ask the author eventually.

why is it too power demanding? what is your problem? the fact that you would like to run it on lower voltages? is it the bluetooth module that is power demanding?
please explain it better...I had in mind something similar to your project and thought that could be eventually ported, after prototype version working on Arduino, to a smaller and less power demanding processor... some atiny or the smd version of the Atmega8.
I'm not totally sure that that is possible though smiley

b.

98  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: where to add the hardware&arduino in wiki on: May 25, 2006, 05:23:15 am
hey fallen,
ideally there is the "components and circuit library" for it
http://www.arduino.cc/playground/Main/ComponentLib

this is where I thought you would put the hardware building blocks,
how to interface them with Arduino
from the multiplexers to bluetooth and stuff...

the fact is that components, hardware and software are so much linked together
that it's not easy to know where to put the information

in the Arduino tutorials section for example there are 2 tutorials on connecting
Arduino+bluetooth   and another Arduino+zigbee...

the circuit library isn't very popular yet...well the whole wiki isn't very used yet ;-)
(guys start typing please!! smiley )
so if you think it would be better to have a interfacing-hardware section I could post it up

what do you think?
is components+circuits library enough? or is better to have an Interfacing-hardware section?
your opinion (as well everybody else) is precious for us all

cheers
b.
99  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Wireless Arduino Working! on: April 28, 2006, 07:59:46 am
It looks great!  smiley

I've made a couple of small layout editing so that code is easier to identify and also the wiring warning is a bit more visible. check them out!

question: have you checked it working on arduino at all? why don't you post the code for arduino directly...even if the image is wiring?!
I'll give an attempt to the tutorial as well and will tell you if all your steps work.

for the moment is fine, but if you'll ever happen to write the code for Arduino please correct it...

thank you very much for contributing...
you win the golden nica for the first arduiner (besides me  and Massimo :-) ) contributing to the wiki...
hopefully it's a good example for everybody!

thanks again
and keep up the good work!
b.
100  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Wireless Arduino Working! on: April 26, 2006, 04:14:00 am
hey,
sorry if the wiki is still a bit confusing...I'll try to work on it in the next days

you can edit every page you want.
you can either choose to put it in the Arduino tutorials section
or make a simple article in the componets+circuit library, you choose, according to the extension of your content.
you choose!

To make it easier for you I've created the link to the page
http://www.arduino.cc/playground/Learning/Tutorial01
so that you would just need to edit it.

tyou can surf to and modify it by going to the menu
Learning center > Arduino Tutorials > wireless...ecc

if you think that it should be elsewhere please put it wherever you think is more appropriate.

thanks for contributing smiley
contact me again if you still have problems
cheers
b.
101  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Wireless Arduino Working! on: April 20, 2006, 05:30:33 am
hey sounds great!
why don't you just post it in the playground wiki
www.arduino.cc/playground
go under the "participate" section and get yourself a user and a pass.
it's very easy and helpfull

thanks for contributing
cheers
b.
102  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: I can't add "Director&Arduino" to wiki on: May 14, 2006, 10:06:30 am
it's already great fallen! smiley
thank you very much for your cool work!

b.
103  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: I can't add "Director&Arduino" to wiki on: May 13, 2006, 05:24:22 am
thank you fallen,
I've read through your example ...
and fixed a couple of minor grammar problems

thanks a lot for contributing!
we are always looking for cheap, open source, indipendent ways of doing things!

thank you again
b.
104  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: I can't add "Director&Arduino" to wiki on: May 12, 2006, 10:31:56 am
hey fallen

thanks for wanting to contribute!  smiley-grin

you can subscribe under
http://www.arduino.cc/playground/Main/LoginForm
you can find it in the
right menu > PARTICIPATE > request contributor access

can you see it?
it's a pity if people can't contribute because they can't find registration form....
what do you think of the name? is "request contributor access" a bit strange?would you have understood it better if it was called "request login"  or "register"  or "get username and password"?

the feedback and help on this from all the community is importat to do a better job.

now for your contribution:
look under the "interfacing" menu
there is already a section about Arduino + Director
http://www.arduino.cc/playground/Interfacing/Director
You can add all your contributions there


thanks again for contributing
and please don't hesitate to ask again if you have more problems
you can write to me at b@progetto25zero1.com
cheers
beltran
105  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: question. on: May 12, 2006, 06:52:21 am
refer to the Arduino tutorials
there is a tutorial specific for tilt sensors

http://www.arduino.cc/en/Main/LearnArduino

b.
Pages: 1 ... 5 6 [7] 8 9