loading

I made ARDUINO bluetooth car by LEGO.

It is very simple and cheep.

Let's start making!!

Step 1: Material

If you don't have It, you can use another things.

Step 2: Install Program

Install TeraTerm and arduino1.6.7v or arduino1.0.5v.

And copy this code.

void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
void loop() {
if (Serial.available()){
byte data;
data = Serial.read();
if(data=='w') //press 'w' forward
{
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
}
else if(data=='a') //press 'a' left
{
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
}
else if(data=='d') //press 'd' right
{
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
}
else //press another botton stop
{
digitalWrite(2, LOW);
digitalWrite(3, LOW);
}
}
}

Step 3: Video Instruction

Enjoy my video instruction.

This is my first project.

Thank you for watching!

i like this project!!<br>i think you're exceptional talent in making:))
<p>Good !</p>
<p>thank you! here is items/materials list.</p><p>1. Arduino nano</p><p>2. HC-06</p><p>3. DC Motor (Servo form) X 2</p><p>4. C1815 (NPN Transistor) X 2</p><p>5. Breadboard</p><p>6. Pin(arduino connector 2.54mm pin)</p><p>7. Jumper wire X 14(or more)</p><p>8. Wire (6cm) X 4</p><p>9. 9v battery connector</p><p>10. 9v battery</p><p>11. Wire solder</p><p>12. Wheel X 2</p><p>13. LEGO block (2X4) X 6</p><p> LEGO block (1X6) X 4</p><p> LEGO block (2X2) X 5</p><p> LEGO block (2X2/45inv) X 1</p><p> LEGO block (2X8) X 1</p><p> LEGO board (6X16) X 1</p><p> LEGO light(?) X 1</p><p>14. Glue gun</p><p>15. Wire stripper</p><p>16. Soldering iron</p><p>17. Soldering helper</p>
<p>Fun project! Any chance you could name or list the items/materials in step one?</p>

About This Instructable

1,577views

22favorites

License:

Bio: Hello~ I'm a Seoul Robot High School student. Nice to meet you.
More by danielfirst:Arduino LEGO Bluetooth Car 
Add instructable to: