Pages: 1 ... 7 8 [9] 10
 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!

 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.



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.

 on: Today at 06:24:57 pm 
Started by Kapoue - Last post by zoomkat
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.

// 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*.

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.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");

void loop()
  while (Serial.available()) {
    char c =;  //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"){

    if(pos >= 400) //determine servo write method
  readString=""; //empty for next input

 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

 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.

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

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

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

 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.


 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.

 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

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