Dedicated to all lazy tech savvy who believes in more of smart work than hard work and try to find out easier ways to accomplish a task.
This INSTRUCTABLE will guide you to make a "user-friendly" bots using AVR(atmega16 or any you are familiar with) micro-controller , sensors and your life companion android device.
I will try to elaborate and discuss all steps including hardware set-up and software part of AVR controller and android app.
The main of making these bots is to use them in our day-to-day life and carry out works saving our time and energy for more technical and personal work.
One step closer to Virtual world :)
Step 1: Parts Required
- AVR development board (or make one yourself)
- Sensors(Gas sensors like MQ-2,MQ-3 ; Temperature sensor LM35 ; IR sensor etc )
- Burner Kit
- DC motors
- HC-05 bluetooth module
- Android Phone
Step 2: Detailed Explanation of Working
Atmega16 is a famous micro-controller used by embedded hobbyist worldwide because as it has in-built ADC and PWM like features.
Now if we combine the power of AVR with that of android, It would be no less than a miracle.
Areas where we can employ AVR+ANDROID bots :
- Transportation of household stuff within house while laying in bed
- Gas leakage check in kitchen or anywhere it could happen (using MQ-2 sensor)
- Temperature check and control (using lm35 sensor)
- Light brightness and intensity control (using LDR sensor)
- And many-many more, everyone tends to find a new use of such an easy-to-use mobile gadget which can be customized as per need
Step 3: Programming AVR
In this step, I will tell you how to interface sensors and use in-built ADC and perform desired operation
First of all, decide which sensor/s you want to go for and then power them and interface to different ADC channels of micro-controller (see datasheet for pin configuration) .
I've attached screenshot of program that can be used to program controller.
Fuse Bits :
Code provided is for manual run as till now I've not discussed android part so you can try it by interfacing switch at pin mentioned in code or change accordingly.
But do run many tests before finalizing to avoid any burned IC's and sensors and refer to datasheet for IO values of sensors and controller you use.
Also avoid using USB burner kits power supply and provide supply by battery or adapter that you wish to use for your bot as IO values tends to differ in both cases.
Step 4: Android Application
It is the simplest part or has been made simpler by MIT.
I've used MIT app inventor to make app (refer screenshot) as it is best and simplest way of creating useful apps without coding each and every segment individually.
The way I've built app is in my knowledge the most efficient and simplest way to make Bluetooth app to communicate to your controller via HC-05 module.
Refer to pic to see changes to be made if you want to control bot via android device.
Ask any doubts you have regarding any part , comment and share :)
Happy inventing :)
"Discovery is curiosity’s product; everything else, including immeasurable economic value, follows."