Loading...
Pages: [1] 2 3 ... 10
 1 
 on: Today at 08:05:59 pm 
Started by Jack Christensen - Last post by Jack Christensen
Oh, yeah, you need a 2nd 100nF cap, for AVCC. You only have 1 on Vcc.

 smiley-lol

 2 
 on: Today at 08:00:13 pm 
Started by command_z - Last post by command_z
Can anyone point me in the right direction with this?

 3 
 on: Today at 07:58:26 pm 
Started by MartyMacGyver - Last post by WizenedEE
Hopefully this post helps others avoid wasting time debugging an "error" that's not necessarily their own.
I don't know how helpful it will be considering you yourself missed the many other posts about this same bug.

 4 
 on: Today at 07:55:57 pm 
Started by Frisky - Last post by Frisky
I have my ATMega1284p on a bread board presently so I was thinking of using male/female jumpers I have to connect my ethershield up and if it works purchasing a w5100 standalone module to use.

 5 
 on: Today at 07:53:56 pm 
Started by igendel - Last post by terryking228
I have been fighting this for months and finally found MY problem: ESET Smart Security  was apparently constantly checking USB ports and the Virtual com port etc.

My solution:

ESET Smart Security
 - Realtime File system protection
  - Advanced Setup
    - Additonal Threatsense Parameters..
    
  • Advanced heuristics on executable files from removeable media
[exceptions]
          (Mark ALL USB PORTS AND CONTROLLERS)

IDE 1.04 and 1.05 BLINK went from 2 minutes to 15 seconds to Verify!  (FIRST Verify can take a long time.. 60 seconds or so...)

Just one example of weird interactions!




 6 
 on: Today at 07:53:32 pm 
Started by henrique-rafael - Last post by henrique-rafael
if I use shift register? I can control 20 servo without noticiable slowdowns?

I build a robot (the blue is servo)

basic is: 20 servos, arduino uno, gyroscope


 7 
 on: Today at 07:50:12 pm 
Started by cedricmoers - Last post by PeterH
100000 is too big to be held in a 16-bit signed int. Make pitch an unsigned long and that might work better.

Also, pitch<=10 would make more sense if it was pitch>=10.

Also, pitch is not a good name since this is really the half-period, which is more like the inverse of the pitch.

You have defined a global variable named pitch and also a local variable of the same name. The global variable is not used; you could get rid of it.

Since you have defined a variable piezo to record the pin number, it would make sense to use that in the call to pinMode() rather than duplicate the value. For extra brownie points, make piezo a const.

 8 
 on: Today at 07:47:25 pm 
Started by pipopoplin - Last post by pipopoplin
Hello
I found in ... \ Arduino \ hardware \ arduino \ bootloaders \ atmega \ ATmegaBOOT_168.c these microcontrollers:
AVR_ATmega128
AVR_ATmega64
AVR_ATmega32
AVR_ATmega1
AVR_ATmega8
AVR_ATmega88
AVR_ATmega168
AVR_ATmega162
AVR_ATmega163
AVR_ATmega169
AVR_ATmega8515
AVR_ATmega8535

Now I want to know, if all the specified MCU are compatible, to load the Bootloader on these MCUs, from my ARDUINO UNO. Whether are there other compatible and witch board i have to choose in AIDE to upload the bootloader for each.

 smiley-kitty Pip

 9 
 on: Today at 07:47:03 pm 
Started by Mike6158 - Last post by Mike6158
I've downloaded the Arduino APP at least a dozen times and every time OSX says that it's corrupt. So... I downloaded the Arduino source from Github with the intention of using the Apple App developer to compile it. But... I had to download XCode from Apple... and now I'm stuck. I can't figure out how to create the Arduino.app so I can start learning more about the Arduino.

 10 
 on: Today at 07:45:49 pm 
Started by Casey890 - Last post by Casey890
Code:
#include <XBOXRECV.h>
USB Usb;
XBOXRECV Xbox(&Usb);
#include <AFMotor.h>

AF_DCMotor motor1(1, MOTOR12_64KHZ); // create motor1 #2, 64KHz pwm
AF_DCMotor motor2(2, MOTOR12_64KHZ);
AF_DCMotor motor3(3, MOTOR12_64KHZ); // create motor1 #2, 64KHz pwm
AF_DCMotor motor4(4, MOTOR12_64KHZ);

void setup() {
  Serial.begin(115200);
  if (Usb.Init() == -1) {
    Serial.print(F("\r\nOSC did not start"));
    while(1); //halt
  }
  Serial.print(F("\r\nXbox Wireless Receiver Library Started"));
   
}
void loop() {
  Usb.Task();
  if(Xbox.XboxReceiverConnected) {
    for(uint8_t i=0;i<4;i++) {
      if(Xbox.Xbox360Connected[i]) {
        if(Xbox.getButtonPress(i,L2) || Xbox.getButtonPress(i,R2)) {
          Serial.print("L2: ");
          Serial.print(Xbox.getButtonPress(i,L2));
          Serial.print("\tR2: ");
          Serial.println(Xbox.getButtonPress(i,R2));
          Xbox.setRumbleOn(i,Xbox.getButtonPress(i,L2),Xbox.getButtonPress(i,R2));
         
        }
       
        if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500 || Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500 || Xbox.getAnalogHat(i,LeftHatY) < 7500 || Xbox.getAnalogHat(i,LeftHatY) > -7500) {
          motor1.setSpeed(LeftHatY/131);
          motor2.setSpeed(LeftHatY/131);
          if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500) {
            Serial.print(F("LeftHatX: "));
            Serial.print(Xbox.getAnalogHat(i,LeftHatX));
            Serial.print("\t");
          }
          if(Xbox.getAnalogHat(i,LeftHatY) > 7500) {
            Serial.print(F("LeftHatY: "));
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            Serial.print(LeftHatY);
                  // set the speed to 200/255
            motor1.run(FORWARD);
            motor2.run(FORWARD);      // turn it on going forward
           
            Serial.print("\t");
          }
          else
          if(Xbox.getAnalogHat(i,LeftHatY) < 7500 && Xbox.getAnalogHat(i,LeftHatY) > -7500) {
            Serial.print(F("LeftHatY: "));
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
           // set the speed to 200/255
            motor1.run(RELEASE);
            motor2.run(RELEASE);      // stops motor11
           
            Serial.print("\t");
          }
         if(Xbox.getAnalogHat(i,LeftHatY) < -7500) {
           
           Serial.print(F("LeftHatY: "));
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
                // set the speed to 200/255
            motor1.run(BACKWARD);
            motor2.run(BACKWARD);      // turn it on going forward
           
            Serial.print("\t");
          }
          else
          if(Xbox.getAnalogHat(i,LeftHatY) < 7500 && Xbox.getAnalogHat(i,LeftHatY) > -7500) {
            Serial.print(F("LeftHatY: "));
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
         // set the speed to 200/255
            motor1.run(RELEASE);
            motor2.run(RELEASE);       // stops motor1
           
            Serial.print("\t");
          }
        //  if(Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500) {//
       
          if(Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500 || Xbox.getAnalogHat(i,RightHatX) < 7500 || Xbox.getAnalogHat(i,RightHatX) > -7500) {
          motor3.setSpeed(RightHatY/131);
          motor4.setSpeed(RightHatY/131);
          if(Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500) {
            Serial.print(F("RightHatX: "));
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
            Serial.print("\t");
          }
          if(Xbox.getAnalogHat(i,RightHatX) > 7500) {
            Serial.print(F("RightHatY: "));
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
            Serial.print(RightHatY);
                  // set the speed to 200/255
            motor3.run(BACKWARD);
            motor4.run(BACKWARD);      // turn it on going forward
           
            Serial.print("\t");
          }
          else
          if(Xbox.getAnalogHat(i,RightHatX) < 7500 && Xbox.getAnalogHat(i,RightHatX) > -7500) {
            Serial.print(F("RightHatY: "));
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
           // set the speed to 200/255
            motor3.run(RELEASE);
            motor4.run(RELEASE);      // stops motor31
           
            Serial.print("\t");
          }
         if(Xbox.getAnalogHat(i,RightHatX) < -7500) {
           
           Serial.print(F("RightHatY: "));
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
                // set the speed to 200/255
            motor3.run(FORWARD);
            motor3.run(FORWARD);      // turn it on going forward
           
            Serial.print("\t");
          }
          else
          if(Xbox.getAnalogHat(i,RightHatX) < 7500 && Xbox.getAnalogHat(i,RightHatX) > -7500) {
            Serial.print(F("RightHatY: "));
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
         // set the speed to 200/255
            motor3.run(RELEASE);
            motor4.run(RELEASE);       // stops motor3
           
            Serial.print("\t");
          }



        if(Xbox.getButtonClick(i,UP)) {
          Xbox.setLedOn(i,LED1);
          Serial.println(F("Up"));
         
         
        }     
        if(Xbox.getButtonClick(i,DOWN)) {
          Xbox.setLedOn(i,LED4);
          Serial.println(F("Down"));
        }
        if(Xbox.getButtonClick(i,LEFT)) {
          Xbox.setLedOn(i,LED3);
          Serial.println(F("Left"));
        }
        if(Xbox.getButtonClick(i,RIGHT)) {
          Xbox.setLedOn(i,LED2);
          Serial.println(F("Right"));
        }       

        if(Xbox.getButtonClick(i,START)) {
          Xbox.setLedMode(i,ALTERNATING);
          Serial.println(F("Start"));
        }
        if(Xbox.getButtonClick(i,BACK)) {
          Xbox.setLedBlink(i,ALL);
          Serial.println(F("Back"));
        }
        if(Xbox.getButtonClick(i,L3))
          Serial.println(F("L3"));
        if(Xbox.getButtonClick(i,R3))
          Serial.println(F("R3"));

        if(Xbox.getButtonClick(i,L1))
          Serial.println(F("L1"));
        if(Xbox.getButtonClick(i,R1))
          Serial.println(F("R1"));
        if(Xbox.getButtonClick(i,XBOX)) {
          Xbox.setLedMode(i,ROTATING);
          Serial.print(F("Xbox (Battery: "));
          Serial.print(Xbox.getBatteryLevel(i)); // The battery level in the range 0-3
          Serial.println(F(")"));
        }
        if(Xbox.getButtonClick(i,SYNC))
          Serial.println(F("Sync"));

        if(Xbox.getButtonClick(i,A))
          Serial.println(F("A"));
        if(Xbox.getButtonClick(i,B))
          Serial.println(F("B"));
        if(Xbox.getButtonClick(i,X))
          Serial.println(F("X"));
        if(Xbox.getButtonClick(i,Y))
          Serial.println(F("Y"));
      }
    }
  } 
  delay(1);
}
  }
  }


This was from another forum...
However the issue is I Based on the USB host documentation, it sounds like you may have a conflict on pins 11 & 12.

Digital I/O pins 8-13. In this group, the shield in its default configuration uses pins 9 and 10 for INT and SS interface signals. However, standard-sized Arduino boards, such as Duemilanove and UNO have SPI signals routed to pins 11-13 in addition to ICSP connector, therefore shields using pins 11-13 combined with standard-sized Arduinos will interfere with SPI. INT and SS signals can be re-assigned to other pins (see below); SPI signals can not.

I need advice and am willing to provide anything needed.

Pages: [1] 2 3 ... 10