Pages: 1 [2] 3 4 ... 10
 11 
 on: Today at 08:23:06 am 
Started by gagegage926 - Last post by PaulS
Quote
We have spent the last 3 weeks trying to code the xbee's to transmit the signal from one to another.
Getting one Arduino to talk to another, via XBees, is pretty simple. Just how simple depends on which kind of XBees you are using (Series 1 for point to point makes the most sense), how you have configured them, and how you are attaching them to the Arduinos.

Once we know this, the rest is easy.

 12 
 on: Today at 08:23:04 am 
Started by xavier26700 - Last post by xavier26700
je n'ai plus trop touché mon arduino depuis le dernier message (trop de projets tue les projets) mais j'ai quand même légèrement avancé. Ne trouvant pas comment faire le programme pour me dire à quel pin correspond l'appui de telle touche j'y suis allé tout simplement avec un multimètre. Il ne me manque qu'une touche qui fait de la résistance mais je vais me la faire  smiley-mad
C'est effectivement un clavier très particulier qui correspond pas aux traditionnels 4 lignes et 3 colonnes. Du coup la libraire keyboard me sert elle ?
Comment définir qu'un signal reçu en même temps sur les pin 32 et 34 correspondent à la touche "2" ?

 13 
 on: Today at 08:22:22 am 
Started by xn1ch1 - Last post by PeterH
It may be that in your previous testing you had a hidden wiring fault which left the input pin floating when you weren't touching it. In that case it would be very easy for merely touching the wire to alter the input state - but it would be very difficult to get that working reliably. It would be possible to set up a capacitive sensing input, but not using the sort of pull-up circuit you have been using until now.

 14 
 on: Today at 08:21:55 am 
Started by cpama - Last post by cpama
Thanks for the patient help pylon.
So here's the code i have now:

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

void loop()
{
   
    unsigned int cm = analogRead(0);
    Serial.print("Distance: ");
    Serial.print(cm);
    Serial.println("cm");
    delay(1000);
}
as far as wiring is concerned, I *think* I already have it wired the way you describe.

when i upload it to the unit, it gives me values, but nothing that makes sense.   I put my hand directly infront of the sensor but  it prints out values like:

Distance: 118cm
Distance: 119cm
Distance: 118cm
Distance: 119cm
Distance: 119cm
Distance: 118cm
Distance: 119cm
Distance: 120cm
Distance: 119cm
Distance: 273cm
Distance: 119cm
Distance: 118cm
Distance: 118cm

 15 
 on: Today at 08:19:52 am 
Started by tayloral - Last post by raacampbell
The Arduino should be fast enough to PWM the shift registers. But if you can't be bothered to do this then one option is to use shift registers to gate transistors. One transistor per LED pin. There are ICs that combine multiple transistors. You then can PWM the power you're feeding the transistors. I believe that should work, no?

 16 
 on: Today at 08:19:47 am 
Started by alexpdo - Last post by Brunello
da dove alimenti la motor shield ?

 17 
 on: Today at 08:19:28 am 
Started by gagegage926 - Last post by gagegage926
Hello!  I am a sophomore in our schools engineering class.  Our current project is using the Mattle MindFlex game, and modifying the headset to control an RC car.  We have gotten this to work with the help of this video http://frontiernerds.com/brain-hack .  We were able to see the brain waves in processing.   Once we had gotten that far we wrote our own code in arduino to parse the raw data packet the headset produced.  The code basically says if  X ≥ 60 that car will move forward. 

Our code to do this  much is

Code:
  // Arduino Brain Library
  // Serial out example, grabs the brain data and sends CSV out over the hardware serial.
  // Eric Mika, 2010
 
  #include <Brain.h>
  #include <Servo.h>
 
  const int voltPin = 2;  //names pin 2 as the voltpin
  long interval = 500;
  Servo motor;  //creates a Servo object called motor
 
  // Set up the brain parser, pass it the hardware serial object you want to listen on.
  Brain brain(Serial);
 
  void setup() {
  // Start the hardware serial.
  Serial.begin(9600);
 
          pinMode (voltPin, OUTPUT);  //sets the voltPin as an Output 
          digitalWrite(voltPin, HIGH);  //send 3 volts to the voltpin
   
          motor.attach(6);
          motor.write(90);
         
  }
 
  void loop() {
  // Expect packets about once per second.
  // The .readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format:
  // "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma"
  if (brain.update()) {
    Serial.println(brain.readErrors());
               
                 
  Serial.println(brain.readCSV());
 
                interval = brain.readAttention();               
  }
 
        if (interval >= 0 && interval <= 100) {
 
          if (interval > 60) {
            motor.write(150);
          }
          else {
            motor.write(90);
          }
       
        } else {
          motor.write(90);
        }
         
    }

Now the biggest issue we have is the fact that the headset is wired to the car.  Now what we plan to do next is make them wireless.   In our lab we have a set of series one xbee's and a pair of series two xbee's and can easily get replacement sets if needed.   We have spent the last 3 weeks trying to code the xbee's to transmit the signal from one to another.   We know we will need one Arduino Uno mounted to the RC car which we have the shield mounted to the car then the xbee mounted to the shield.  On the mindflex we have the Shield mounted to the arduino and the xbee mounted to the shield.  We have the set up just not the code to do it.  We are taking this project to the state science fair in a month, and think wireless would be a bit cooler then having a huge wire hanging from your head.

Any help would be amazing!!!!!!!!!

 18 
 on: Today at 08:18:57 am 
Started by bambuino - Last post by PeterH
Sorry, I do not understand how this helps my situation. Is it relevant to my original post/thread? I suppose I have much to learn.

My mistake - I was responding to questions by nightcrawler218 and didn't realise they had hijacked your thread.

 19 
 on: Today at 08:18:20 am 
Started by zahidbtomy - Last post by zahidbtomy
The 2013–14 Copa del Rey is the 110th staging of the Copa del Rey. The competition began on 4 September 2013 and will end on 16 April 2014 with the final. The winners will assure a place for the group stage of the 2014–15 UEFA Europa League. Atlético Madrid were the defending champions, but were eliminated by Real Madrid in the semifinal. Barcelona will face Real Madrid in the final after defeating Real Sociedad. The final will take place at Mestalla Stadium in Valencia. The Montreal Canadiens and Tampa Bay Lightning will face each other in first-round playoff action this week.The two cities are just three hours from each other, but worlds apart in hockey terms.

 20 
 on: Today at 08:17:58 am 
Started by Hertz - Last post by Hertz
Salve a tutti, avrei intenzione di realizzare un sistema pan e tilt con una webcam per seguire gli oggetti ripresi;  Per far questo ho visto che esiste la libreria openCV, ora ho seguito la guida di questo sito:
http://www.allafinedelpalo.it/la-libreria-opencv-configurazione-su-windows/
ma non ho capito come utilizzare la libreria in processing.
La domanda sembrerà banale, ma come devo fare?
Grazie in anticipo per le risposte.

Pages: 1 [2] 3 4 ... 10