Some new stuff
  1. Arduino Park Control
  2. Arduino USB2serial programming the bare bone
  3. Arduino Projects Videos added
  4. Arduino Xbee projects
  5. Arduino dB Meter 
  6. Trying to get the IOIO going. 
  7. IOIO is going....bluetooth
  8. Attiny 2313 bluetooth bee RC car
  9. Compass and temperature added
  10. AVR programmer
  11. USB2Serial and Ethernet POE
  12. Arduino LPG Sensor
  13. Program the Arduino Mini 05
  14. Lipo Rider Pro in action
  15. EZ Robot Builder kit arrived 10 Nov 2012
  16. Arduino VA Meter!
  17. 05 Nov 2012 Project Sentry Gun.
  18. Attiny85 PIR Sensor 10 Dec 2012 
  19. 0-30VDC3A and 2-28VDC10A bench PSU's
  20. 19 Dec 2012 Arduino Voltmeter LCD
  21. 29 Dec 2012 Arduino Tachometer&Speedometer LCD
  22. 03 Jan 2013 Arduino AC Phase Control. 
  23. 18 Jan 2013 Arduino Distance Meter
  24. 22 Jan 2013 Arduino Digital Clock and Date
  25. 31 Jan 2013 Arduino Digital Clock and Date 8x2 LCD
  26. Feb 2013 LCD and Backpack
  27. Feb 2013 7 Segment Serial Clock Sparkfun. Distance Sensor with "newping" library
  28. Feb 2013 Lelo Remote
  29. 01/03/2013 Arduino Adafruit 7 Seg Digital Clock with RTC and backpack 
  30. Arduino Frequency Meter 26/03/2013
  31. Another RC  Car controlled by Arduino 06/04/2013
  32. My quadcopter project update 25 April 2013
  33. My Aqua Quad Copter Flying 26 April 2013enlightened
  34. Another monster RC truck;strong one! 11July2013cool
  35. X-Frame Quad Copter 31 July 2013cool
  36. Arduino GSM Sheild added.28/8/2013
  37. 1.8inch TFT screen 13/09/2013cool
  38. 04/11/2014 added PID Soldering Iron Control
  39. Added bluetooth servo control 04/11/2014
  40. ESP8266 first try.16/03/2015
  41. Arduino Uno Quadcopter 19 May 2015
  42. IOT WemosD1 Amp Meter

 

 




RC 2313 Bluetooth.docx

 RC Car control bluetooth bee and attiny 2313

Arduino DC Control by means of bluetooth connection.

This is not entirely my own code and hardware , but altered with the code to fit the 2313 and our bluetooth connection on 38400 baud. Also the realtek RC IC was ignored and replaced with motor driver board. Also, Schalk from www.house4hack.co.za has done some android application code to play a game with the car. It can be coded to drive in any direction for any given set time instructions and once the RUN button is selected, the RC car will follow the preset values from the phone application via bluetooth.

As someone has reacted: The RC car became a robot!

Website: http://www.mobot.es/MobotBTCar.html 

For me this option is a cheaper method than the expensive IOIO bluetooth combination. 

Here we stripped a RC  carcompletely and replaced the control with arduino (Attiny 2313), Sparkfun TB motor controller break out board and a bluetooth bee.

The android application is from the market.

I want to get rid of the square rechargeable 9V battery and see if we can run the whole lot from the motor voltage source.The 9V battery application and 5V regulator is not a good option in general. I will try the Li on battery options. And so I did. I ended up with Li ion 3.7V on the control circuitry and with Li ion 7.4V regarding the motors. To make sure I ended up with the correct #V# for the seedstudio bluetoot bee, I dropped the VSS over a 1N4007 diode.

Here is the screenshot from the android application coded by schalk Heunis from www.house4hack.co.za

Video HERE

 

 

The truck was hacked by me with a new control board but this time with l298.

You can also see in the video section where the truck runs on the pre set control from the above applications.

Code for the truck:

/*
  MOBOT BTCar
  Author: Daniel Garrote
  Project: MOBOT
  Project URL: www.mobot.es
  Orange Monster Truck Seedstudio 2313 8MHz 
*/

int forward = 12;     // Pin 12 - Forward
int reverse = 11;    // Pin 11 - Reverse
int left = 10;        // Pin 10 - Left
int right = 9;        // Pin 9  - Right
int turbo = 8;        // Pin 8  - Turbo
int short_lights = 7;    // Pin 7  - Short Lights
int long_lights = 6;    // Pin 6  - Long Lights
int back_lights = 5;    // Pin 5  - Back Lights
int reverse_lights = 4;    // Pin 4  - Reverse Lights

char val;  // Variable to receive data from the serial port
void setup() {
  // initialize the digital pins as output
  pinMode(forward, OUTPUT);
  pinMode(reverse, OUTPUT);
  pinMode(left, OUTPUT);
  pinMode(right, OUTPUT);
  pinMode(turbo, OUTPUT);
  pinMode(short_lights, OUTPUT);
  pinMode(long_lights, OUTPUT);
  pinMode(back_lights, OUTPUT);
  pinMode(reverse_lights, OUTPUT);
 
  // Configuration commands for Bluetooth Bee
  Serial.begin(38400);
  
}
// Fordward action
void go_forward() {
  digitalWrite(forward, HIGH);
  digitalWrite(turbo, LOW);
  digitalWrite(reverse, LOW);
  digitalWrite(long_lights,HIGH);
}

// Stop Forward action
void stop_go_forward() {
  digitalWrite(forward, LOW);
  digitalWrite(long_lights,LOW);
}

// Reverse action
void go_reverse() {
  digitalWrite(reverse, HIGH);
  digitalWrite(forward, LOW);
  digitalWrite(turbo, LOW);
  digitalWrite(short_lights, HIGH);
}

// Stop Reverse action
void stop_go_reverse() {
  digitalWrite(reverse, LOW);
  digitalWrite(short_lights, LOW);
}

// Turbo action
void go_turbo() {
  digitalWrite(turbo, HIGH);
  digitalWrite(forward, HIGH);
  digitalWrite(reverse, LOW);
}

// Stop Turbo action
void stop_go_turbo() {
  digitalWrite(turbo, LOW);
}

// Left action
void go_left() {
  digitalWrite(left, HIGH);
  digitalWrite(right, LOW);
}

// Right action
void go_right() {
  digitalWrite(right, HIGH);
  digitalWrite(left, LOW);
}

// Stop turn action
void stop_turn() {
  digitalWrite(right, LOW);
  digitalWrite(left, LOW);
}

// Stop car
void stop_car() {
  digitalWrite(forward, LOW);
  digitalWrite(reverse, LOW);
  digitalWrite(turbo, LOW);
  digitalWrite(right, LOW);
  digitalWrite(left, LOW);
  digitalWrite(reverse_lights, LOW);
}

// Short Lights ON
void lights_on() {
  digitalWrite(short_lights, HIGH);
  digitalWrite(back_lights, HIGH);
}

// Short Lights OFF
void lights_off() {
  digitalWrite(short_lights, LOW);
  digitalWrite(back_lights, LOW);
}

// Long Lights ON
void long_lights_on() {
  digitalWrite(long_lights, HIGH);
}

// Long Lights OFF
void long_lights_off() {
  digitalWrite(long_lights, LOW);
}

// Reverse Lights ON
void back_lights_on() {
  digitalWrite(reverse_lights, HIGH);
}
// Reverse Lights OFF
void back_lights_off() {
  digitalWrite(reverse_lights, LOW);
}
// Read serial port and perform command
void performCommand() {
  if (Serial.available()) {
    val = Serial.read();
    Serial.write(val);
  }
    if (val == 'f') { // Forward
      go_forward();
    } else if (val == 'z') { // Stop Forward
      stop_go_forward();
    } else if (val == 'd') { // Backward
      go_reverse();
    } else if (val == 'y') { // Stop Backward
      stop_go_reverse();
    } else if (val == 'c') { // Turbo
      go_turbo();
    } else if (val == 'x') { // Stop Turbo
      stop_go_turbo();
    } else if (val == 'r') { // Right
      go_right();
    } else if (val == 'l') { // Left
      go_left();
    } else if (val == 'v') { // Stop Turn
      stop_turn();
    } else if (val == 's') { // Stop
      stop_car();
    } else if (val == 'e') { // Short Lights
      lights_on();
    } else if (val == 'a') { // Stop Short Lights
      lights_off();
    } else if (val == 'g') { // Long Lights
      long_lights_on();
    } else if (val == 'h') { // Stop Long Lights
      long_lights_off();
    }
 }
void loop() {
  performCommand();
}

 

 

 



Photo Gallery
Blue Racer RC Arduino 2313 Bluetooth Bee

Blue Racer RC Arduino 2313 Bluetooth Bee


20120824180027 Small.jpg 20120828082914 Small.jpg 20120828082936 Small.jpg 20120828083002 Small.jpg 20120828121121 Small.jpg 20120828141144 Small.jpg 20120828184728 Small.jpg 20120829125745 Small.jpg 20120829125755 Small.jpg 20120829125804 Small.jpg

20120824180027 Small.jpg

Back Back to top