Pages: 1 ... 7 8 [9] 10
 81 
 on: Today at 06:31:20 pm 
Started by Uyctt - Last post by jremington
Sounds like a prison cell.

This project is probably not doable with an Arduino, but let's think through just a few of the difficulties.

First, you need to define what you mean by a person's position. Do you mean the center of mass? What about different standing/sitting/prone positions? Does it matter if the arms or legs are extended? Then, according to your definition, how many measurements are required to determine a person's position? How does movement figure in? If a leg is extended, according to your definition, has that person moved? Then, you raise the issue of more than one person!

 82 
 on: Today at 06:27:26 pm 
Started by Mvedovetto - Last post by Mvedovetto
....
Ma da un certo momento sono tutte blu. Come dovrebbero essere le righe corrette?
Prima c'e' è possibile confrontarle con le nere, qui non si capisce come sarebbero i valori giusti.

Riportando i dati elaborati da un messaggio NMEA il formato è il medesimo. In nero come dovrebbe essere, in blu i bytes effettivamente scritti, in rosso quelli non scritti, mancanti che però sarebbero dovutio comparire.

123114.000,4530.7600,N,00903.6611,E,6.06,270614,g2,6,581,3470
123115.000,4530.7595,N,00903.6588,E,4.58,270614,g2,6,581,3470
123116.000,4530.7594,N,00903.6574,E,2.28,270614,g2,6,581,3470
123117.000,4530.7593,N,00903.6566,E,0.00,270614,g2,6,581,3470
123118.000,4530.7593,N,00903.6566,E,0.00,270614,g2,6,581,3470
123119.000,4530.7592,N,00903.6566,E,0.00,270614,g2,6,581,3470
123120.000,4530.7592,N,00903.6566,E,0.00,270614,g2,6,581,3470
123121.000,4530.7590,N,00903.6533,E,7.00,270614,g2,6,581,3470
123122.000,4530.7586,N,00903.6500,E,9.82,270614,g2,6,581,3470
123123.000,4530.7578,N,00903.6459,E,10.97,270614,g2,6,581,3470
123124.000,4530.7566,N,00903.6412,E,12.91,270614,g2,6,581,3470
...

123228.000,4530.6292,N,00902.5816,E,60.95,270614,g2,6,581,3470
123229.000,4530.6267,N,00902.5579,E,59.82,270614,g2,6,581,3470
123230.000,4530.6241,N,00902.5347,E,58.73,270614,g2,6,581,3470
123231.000,4530.6216,N,00902.5121,E,57.60,270614,g2,6,581,3470
123232.000,4530.6193,N,00902.4899,E,56.48,270614,g2,6,581,3470
123233.000,4530.6169,N,00902.4681,E,55.40,270614,g2,6,581,3470
123234.000,4530.6147,N,00902.4469,E,54.35,270614,g2,6,581,3470
123235.000,4530.6124,N,00902.4260,E,53.35,270614,g2,6,581,3470
...

Sembra quasi che nel trasferimento dei dati via SPI non si riesca a fare in tempo a scrivere dei bytes. Ma l'evento non è sistematico.

 83 
 on: Today at 06:24:57 pm 
Started by Kapoue - Last post by zoomkat
Quote
I am really a beginner and I don't understand how to turn my servo with the motor shield.

You do not need to use the motor shield to operate the continious rotation servo. Wire the servo up like below, and then you can use the bottom code to test the speed/direction of your servo.



Code:
// zoomkat 3-28-14 serial servo incremental test code
// using serial monitor type a character (s to increase or a
// to decrease) and enter to change servo position
// (two hands required, one for letter entry and one for enter key)
// use strings like 90x or 1500x for new servo position
// for IDE 1.0.5 and later
// Powering a servo from the arduino usually *DOES NOT WORK*.

#include<Servo.h>
String readString;
Servo myservo;
int pos=1500; //~neutral value for continous rotation servo
//int pos=90;

void setup()
{
  myservo.attach(7, 400, 2600); //servo control pin, and range if desired
  Serial.begin(9600);
  Serial.println("serial servo incremental test code");
  Serial.println("type a character (s to increase or a to decrease)");
  Serial.println("and enter to change servo position");
  Serial.println("use strings like 90x or 1500x for new servo position");
  Serial.println();
}

void loop()
{
  while (Serial.available()) {
    char c = Serial.read();  //gets one byte from serial buffer
    readString += c; //makes the string readString
    delay(2);  //slow looping to allow buffer to fill with next character
  }
  if (readString.length() >0) {
    if(readString.indexOf('x') >0) {
      pos = readString.toInt();
    }

    if(readString =="a"){
      (pos=pos-1); //use larger numbers for larger increments
      if(pos<0) (pos=0); //prevent negative number
    }
    if (readString =="s"){
      (pos=pos+1);
    }

    if(pos >= 400) //determine servo write method
    {
      Serial.println(pos);
      myservo.writeMicroseconds(pos);
    }
    else
    {   
      Serial.println(pos);
      myservo.write(pos);
    }
  }
  readString=""; //empty for next input
}


 84 
 on: Today at 06:24:37 pm 
Started by Qdeathstar - Last post by Qdeathstar
Will state change be responsive while the arduino is doing something in a function? 

my plan is to drive LED strips, but then while strips are being driven, if the arduino detects a button press, start up a menu to allow changes to the strips program.



I should mention that when i was wiring all this up, I wired the buttons according to the InputPullup diagram, which for interrupts makes using hardware debounce impossible without resoldering my switches smiley-sad

http://arduino.cc/en/uploads/Tutorial/inputPullupButton.png

 85 
 on: Today at 06:23:11 pm 
Started by PedroA - Last post by Coding Badly

Interrupt service routine is empty.  Handle the pushbutton in loop as you normally do.

 86 
 on: Today at 06:23:07 pm 
Started by olimex - Last post by Brunello
un qualcosa del genere dovrebbe funzionare

 87 
 on: Today at 06:21:59 pm 
Started by PedroA - Last post by PedroA
Hello,

I need to do use a pin change interrupt with a current project as all the other pins are used up and i am only left with A0 free. I will use this pin to put the Arduino to sleep and wake it up. What is the best way to use software to debounce the button press as there can be multiple interrupts when the button is pressed.

Thank you

 88 
 on: Today at 06:21:18 pm 
Started by georgep - Last post by georgep
Perfect, I'll find the thread you mention. That approach makes a lot of sense. Good tip about the boot loader as well.

cheers,
george

 89 
 on: Today at 06:14:59 pm 
Started by Plystire - Last post by Coding Badly

In a house, insulation in the walls separates the interior of the house from the outside.  The capacitors act like somewhat like house insulation; electrically separating (isolating) what is on one side from what is on the other side.  I assume the capacitors you are seeing are different sizes.  The different sizes provide isolation at different frequencies.

The 0.1 uF capacitors near the processor are a great example.  The processor is electrically fairly quiet until the system clock ticks.  At that moment there is a flurry of activity resulting in the processor drawing significantly more current ("significantly more" being several milliamps).  If the power supply and power delivery was perfect, those oscillations between quiet and flurry would not matter.  But neither is perfect.  The result is that the oscillations show up in other parts of the circuit were they could cause problems.  The 0.1 uF capacitors help to isolate the oscillations to just the part of the circuit that includes the processor.

 90 
 on: Today at 06:14:37 pm 
Started by Mvedovetto - Last post by Mvedovetto
OK, vero, scusate... era talmente tanta la "disperazione" che per la fretta non ho osservato la netiquette dei forum...
Ho provveduto a presentarmi ... ed ho letto il regolamento.. giusta tiratina d'orecchi... me la merito tutta    smiley-razz
Ciao

Pages: 1 ... 7 8 [9] 10