Skip to main content

Grid solver robot

A grid solving robot is an autonomous robot which is nothing but more brains to a line follower. the grid solver can be programmed to go to specific coordinates like in the videos below. Both the videos have different grids and different coordinates.



The first video, has one inch black tape extension at the outer edges. where as in the second video, there are no extensions as in the first video. This makes a lot of difference. since I had only two sensors. If  you had more sensors, say 8-10 then it is easier for you to program it to get to the edges or corners. both the videos were taken at different institutions. I secured first place in both with this robot. and there is another event tomorrow.



Anyway back to the topic, if you are planning to build one try to add more sensors. more the merrier. I am not going in detail about the construction of the robot. if you are interested to build one like mine, leave a comment and i will post the full procedure. I used an arduino. but you can use any microcontroller as long as you are familiar with it. I used two 300 rpm motor and to control the motor I used L293D motor driver. there is an onboard led on the arduino. I used it to give acknowledgement at each specified coordinates. I had a 6 V motor but I supplied only 4v, because the motor was 300 rpm and it was too fast and would overshoot. to overcome this problem we have to use PID. I will be starting with a PID line follower soon. and I have used IR led and photodiode to detect light.
its quite simple to build. If this is your first robot, I suggest you to build a line follower first then a grid solver.



Comments

  1. Hey Jayant, are you still on that bot buddy? I have been through the most basic line followers and some of the grid followers also but the one you have designed uses two sensors to solve the grid.... if you dont mind, may i have a look on the logic and code you are using for that. That would be a great help. please mail me back at amrahstihom93@gmail.com

    ReplyDelete
    Replies
    1. Sorry for the late reply, I was travelling. hope this helps.
      The logic is quite simple. But requires lot testing.
      say your sensor output is '0' for black line,
      '0''1' left
      '1''0' right
      '1''1' Straight
      '0''0'increment counter, stop for a second and do the necessary action.
      you need to know the linear error and square error of your robot to achieve this precisely. I suggest you to use below 150Rpm motor for smooth operation.


      Delete
    2. But Requires lot of testing*

      Delete

Post a Comment

Popular posts from this blog

Switch debouncer using SR Latch

We use switch in our day to day life to switch ON/OFF a bulb or a fan or  any electrical devices. But when we use switches in digital circuits, we observe a phenomenon called bouncing. This occurs because, when we turn the switch, the mechanical parts vibrate. i.e It toggles between ON and OFF state for some time until the mechanical contact attain equilibrium. this vibrations are minute and are not at all noticeable in electrical circuit. where as in digital circuits, these vibrations create pulses. which are detected by circuits which results in an error.               In the above circuit, there is a switch connected to VCC. You can toggle it between terminal 'a' and terminal 'b'. which as a voltage drop of 'Va' and 'Vb' respectively. In digital circuits if you can observe, it takes a finite amount of time to toggle between terminal 'a' and 'b'. which might approximately take 15ns. Now let us consider the terminal is at 'a'. we...

PIC 18F452 Programming: LED blinking using assembly

Here is the basic program you need to start off with when you learn to use a microcontroller. We are using the microchip family PIC microcontroller. Which stands for Peripheral Interface Controller, PIC 18F452 is a 40 pin 8-bit microcontroller with 32 KBytes flash, 1536 Bytes of RAM and 256 Bytes EEPROM. It also boasts 4 timers, and three external interrupt pins. Coming to our first program, We will be using MPLAB for Building this project. Create a new project and select MPASM Suite for compiling. After writing the program, Dont forget to add the linker file and the source file in the source window. The linker file for the PIC 18F452 can be found in the  C:\Program Files\Microchip\MPASM Suite\LKR. search for 18f452. In this program, the Bit RB0, toggles continuously with some delay. Connect an LED to The RB0 Pin, i.e Pin 33.connect a 330E resistor in series with the LED. PROGRAM #INCLUDE p18f452.INC; CONFIG WDT=OFF; disabling the watchdog timer ORG 0; Specifing th...

PIC Programming: making a port bits toggle using assembly

CIRCUIT: Program: #INCLUDE p18f452.INC ORG 0 CLRF TRISD  L1 SETF PORTD CALL DELAY CLRF PORTD CALL DELAY GOTO L1 DELAY MOVLW 0xff MOVWF 0x10 L2 DECF 0x10,F BNZ L2 RETURN END