Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
While the robot is moving in backward direction it senses any obstacle while moving, I have used a limit switch when it makes the contact after touching any obstacle the robot should stop. Meanwhile if it gets any command to move forward, right or left it moves. I 've tried various codes to get...
I have set now D0 and D1 as inputs by,
set_tris_d(0x83);
but still I am not getting the desired results, I want to stop the moving robot if D0 or D1 gets zero, it should wait until D0 or D1 gets high, Since the robot is moving backward it must carry on the same direction if D0 or D1 is high...
I have checked the code but it's not working the way I want,
I have also made some modifications but it didn't work too, can someone help me out Please,
I have written a code for a robot which is receiving commands serially, If it Receives 'W' it moves forward,
'S' it moves backward,
'A' it moves left,
'D' it moves right,
I have used limit switches at the rear portion, when it touches any obstacle while moving behind, i.e. the limit switch...
That's not the case both can be used for serious kind of stuff. CCS C compiler is best to my knowledge and can perform any thing you wish to. I am using this compiler within MPLAB. You name anything you want there are built in functions, libraries and example codes as well, to get a basic look...
I have tested the above code in simulation it works, but when I tested on the hardware, it doesn't work, the servo didn't move, I've checked all the parameters of Serial.
can some one guide me on it,
I have written a code using lookup table, let me share.
#include<16f877a.h>
#fuses HS,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,stream=RS232,bits=8)
const int16 rht_lft[7] = {1500, 1583, 1666, 1749, 1832, 1915, 2000};
void main()
{
int16 i...
Yes u are right, Actually I wanted the servo to stop at every 15degree interval that's why I added the delay_ms(300) but now I 've changed the code so that it stops at every 15 degree for some while, and its working fine now.
The code is:
#include<16f877a.h>
#fuses HS,NOLVP
#use...
I have written a code for controlling servo motor using CCS compiler, for the rotation of the motor from its neutral position to its clock wise direction in 15 degrees interval, the code is tested on Proteus its working fine but as I burnt the controller, the motor does not moves in the same...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.