Forum >loading sketches using DF-Bluetooth V3
ArduinoGeneral

loading sketches using DF-Bluetooth V3

userHead Account cancelled 2011-02-14 12:58:41 5995 Views2 Replies
I have a Arduino based rover that I bought at Robotshop. I also have the DF-Bluetooth V3 module.
The module works great but I cannot use it load a sketch.
I'm using the Arduino IDE (v 22) and I have tried various serial port speeds and configurations and it always hangs and I get the following:

Binary sketch size: 3518 bytes (of a 30720 byte maximum)
C:\Program Files (x86)\arduino-0022\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM7 -b57600 -D -Uflash:w:C:\Users\JONHRA~1\AppData\Local\Temp\build2404152340122704862.tmp\Rover_1_ping.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\Program Files (x86)\arduino-0022\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM7
avrdude: ser_open(): setting dtr
Using Programmer : stk500v1
Overriding Baud Rate : 9600
avrdude: Send: 0 [30] [20]


I will stay here forever.

I have also tied a Mac and it also hangs saying programmer not responding.

Any ideas?
2011-04-20 21:46:37 ey jonh can u tell me how did you do to communicate your bluetooth with the arduino because i can't make that happen. I can link the bluetooth modem conected to the arduino with my laptop but when i run the program i just can send the data, i'm desperate lol, THANKS !! here's my code i used processing but if you know a way i don't have to used it's perfect i just want to send data to my arduino by bluetooth conection !!!



***este es el codigo del software processing
//import class to set up serial connection with wiring board
import processing.serial.*;
//import cc.arduino.*;

Serial port;


//button setup
color currentcolor;
RectButton rect1, rect2;
boolean locked = false;
void setup() {
//println(Arduino.list()); //hace lo mismo que serial.list
  //set up window
  size(200, 200);
  //color baseColor = color(102, 102, 102);
  color baseColor=color(0,0,0);
  currentcolor = baseColor;

  // List all the available serial ports in the output pane.
  // You will need to choose the port that the Wiring board is
  // connected to from this list. The first port in the list is
  // port #0 and the third port in the list is port #2.
  println(Serial.list());

  // Open the port that the Wiring board is connected to (in this case 1
  // which is the second open port in the array)
  // Make sure to open the port at the same speed Wiring is using (9600bps)
  port = new Serial(this, Serial.list()[2], 115200);

  // Define and create rectangle button #1
  int x = 30;
  int y = 100;
  int size = 50;
// color buttoncolor = color(153, 102, 102);
  color buttoncolor=color(47,30,245);
// color highlight = color(102, 51, 51); // el boton rojillo cuando se le pone encima el mouse se pone mas intenso su color
  color highlight = color(22,9,193);
  rect1 = new RectButton(x, y, size, buttoncolor, highlight);

  // Define and create rectangle button #2
  x = 90;
  y = 100;
  size = 50;
  //buttoncolor = color(153, 153, 153);
  buttoncolor=color(10,10,10);
  //highlight = color(102, 102, 102);
  highlight =color(0,0,0);
  rect2 = new RectButton(x, y, size, buttoncolor, highlight);
}


void draw() {

  background(currentcolor);
  stroke(255);
  update(mouseX, mouseY);
  rect1.display();
  rect2.display();
}


void update(int x, int y) {

  if(locked == false) {

    rect1.update();
    rect2.update();
  } else {
    locked = false;
  }

  //Turn LED on and off if buttons pressed where
  //H = on (high) and L = off (low)
  if(mousePressed) {
    if(rect1.pressed()) {            //ON button
      currentcolor = rect1.basecolor;
      port.write('H');
    } else if(rect2.pressed()) {    //OFF button
      currentcolor = rect2.basecolor;
      port.write('L');
    }
  }
}


class Button {

  int x, y;
  int size;
  color basecolor, highlightcolor;
  color currentcolor;
  boolean over = false;
  boolean pressed = false; 

  void update()
  {
    if(over()) {
      currentcolor = highlightcolor;
    } else {
      currentcolor = basecolor;
    }
  }

  boolean pressed()
  {
    if(over) {
      locked = true;
      return true;
    } else {
      locked = false;
      return false;
    }   
  }

  boolean over()
  {
    return true;
  }

  void display()
  {

  }
}


class RectButton extends Button {

  RectButton(int ix, int iy, int isize, color icolor, color ihighlight)
  {
    x = ix;
    y = iy;
    size = isize;
    basecolor = icolor;
    highlightcolor = ihighlight;
    currentcolor = basecolor;
  }

  boolean over()
  {
    if( overRect(x, y, size, size) ) {
      over = true;
      return true;
    } else {
      over = false;
      return false;
    }
  }

  void display()
  {
    stroke(255);
    fill(currentcolor);
    rect(x, y, size, size);
  }
}


boolean overRect(int x, int y, int width, int height) {

  if (mouseX >= x && mouseX <= x+width &&
      mouseY >= y && mouseY <= y+height) {
    return true;
  } else {
    return false;
  }
}




***And this is the code for IDE WIRING ARDUINO
#include <NewSoftSerial.h>

//Wiring Code

char val; //variable que recibe info del puerto serial
int ledPin =13; //LED conectado al pin 13

void setup()
{
  pinMode(ledPin,OUTPUT); //Pin del LED es salida
  Serial.begin(115200); //comienza la comunicación con el puerto serie
}

void loop()
{
  if(Serial.available()) //si hay información para leer ...
  {
    val=Serial.read(); //lee lo que hay en el puerto y lo guarda en 'val'
  }
  //Serial.println(val);
  if(val=='H')
  {
    Serial.println(val);
    digitalWrite(ledPin,HIGH);
  }
  else
  {
    if(val=='L')
    {
      Serial.println(val);
      digitalWrite(ledPin,LOW);
    }
  }
  delay (100);
}
**

userHeadPic R2D2
2011-02-14 18:37:12 Hi Jonh:

The V3 is not designed for wireless uploading the sketches. As the uploading process requires few reset signals other than typical Tx/Rx pins, this is currently not supported by the DF-bluetooth V1/V2/V3.


Admin

userHeadPic R2D2C3PO