Thursday, November 26, 2015

L293D as motor driver

Today, I would like to introduced one chip called as L293D. This is dual DC motor driver connection and used to control for both direction. The connection of this chip to the Arduino is given in the picture below.
Part lists:
DC Motor x 2
L293D
Arduino Uno (any board)
External battery 9V (to powerup motor)


Circuit done by fritzing

Tuesday, November 24, 2015

PS2 wireless joystick

This is PS2 wireless joystick that I have bought from ebay.com. Today, I want to show how to connect this joystick with the Arduino board. Actually, there have no other electronic components for interfacing between them, just 6 jumper wires and Arduino board.

the connection for the joystick.

Connection wires (green led will stop blinking when it connected)

White (datapin) --> pin D2
Grey (commandPin) --> pin D3
Blue (ground) --> Gnd
Purple (power) --> 5V
Green (attentionPin) --> pin D4
Black (clockPin) --> pin D5

However, this module have their own library. Please download from this link

Run an example that given in that library, change the pin number based on the selected pin above, upload and DONE!


When you press one button in joystick and hold it, it will give you the different number continuously. After you release it, the number back to zero (0). You can check it from Serial monitor.

Wednesday, November 18, 2015

Obstacle Robot Car

This robot car was developed to detect any obstacle in the front of robot and prevent it by changing the direction. 


Parts required:
Arduino Nano
Mini breadboard
Continuous Futaba Servo Motor x 2
3d Printed body
7.4V LIPO battery
Ultrasonic Sensor SR-04
Jumper Wire

Video of this robot

Tuesday, November 3, 2015

Complete arduino trainer

This is arduino trainer for beginner based on the Modul Asas Arduino. I just need to add photoresistor for completing it.

                    D2 - Buzzer                           A0 - Potentiometer 1
                    D3 - LED for PWM              A1 - Potentiometer 2
                    D4 - Button                           A2 - LM35 (Temperature sensor)
                    D13 - LED for digital           A3 - Photoresistor (LDR)

Laser pointer robot