Thursday, March 10, 2016

Arduino Bluetooth Controller - Detailed Schematic Representation

Components Used:


  • Arduino Uno
  • Breadboard and bunch of jumper cables
  • HC-06 (I bought a JY-MCU from ebay)
  • L293D (I bought a Motor Shield which has 2 of these ICs for cheap from ebay)
  • Chasis (includes the motors) 
  • 6V rechargeable battery – I connected a separate set to power the motors.


Connecting various components with Arduino.  

Below is the schematic representation of the Bluetooth Controlled Car.


Resistor on Row E - 100 ohm
Resistor on Row D - 220 ohm


Pin Configuration


Pins
Connections
2
Trigger – Ultrasonic Sensor
3
L293D – Motor : Right Back
4
Echo – Ultrasonic Sensor
5
L293D – Motor : Right Forward
6
L293D – Motor : Left Back
7
TX à to RX of Bluetooth Module
8
RX à to TX of Bluetooth Module
11
L293D – Motor : Left Forward

Connecting the Bluetooth module:

P.S. Now I have heard of various people complaining about frying their chips when a (TX) transmitting signal of 5v is sent across to RX of Bluetooth module so why risk it, below are the steps to starve the TX input of Bluetooth module.
For cutting down the input from 5v to 3.3 volt. You can configure the resistors as below. I have used 100 ohm and 220ohm resistors, the 220 ohm resistor is connected between GND and RX of BT module and 100 between TX of Arduino and RX of BT module as below.









Note: Now did you notice about the TX RX confusion? TX of Arduino will be connected to RX of Bluetooth module and RX to TX. Think about it for sometime and you will get it – The Bluetooth will be receiving the data only when arduino actually transmits it. So for Arduino it is a TX signal while the same is RX for Bluetooth Module. 







Configuring the L293D

Why L293D? – remember we need a car that roams around freely not just forward. For this we have to use the same motor to move clockwise or anticlockwise and one clockwise and another anticlockwise when turning and vice-versa when turning the other way.

So this chip is actually an H-Bridge which does the magic of flipping the flow of current to the motors so that it moves in the said direction. If you want to skip the details and just need the schematic diagram then here you go.




If you need to go for a deepdive then follow this


Configuring Ultrasonic Sensor

 This is pretty simple and straight forward. Just follow the diagram and you are good to go.







1 comment: