Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I tested all the hardware
The rest was to check if either the PIC was damaged or the coding was incorrect. I changed the PIC and all ok, which concluded that the problem was the code.
If(data == 'a')
{
Turn motor 1 clockwise
}
If(data == 'b')
{
Turn motor 1 counter clockwise
}
If(data == 'c')
{
Turn LED on
}
............................
............................
sorry i am rubbish at maths its my worst subject at school, could you explain how you get a symbol every 10ms at 9600 baud. i tried working it out and only got 1.2ms??? where did i go wrong sorry for the stupid question
what i did was take 9600 bit per second and divide that by 8 as i assume a character is 8 bits (byte) then divide that by 1000 and i got 1.2
i spose in the real world you also have to add the start and stop bit time? as well
LG
hi LG,thanks for that, i thought i had messed up!! as maths is not my strong point and i like to note down stuff like this! still gets me how much a micro can do in 1ms!! amazing stuff
thanks for that, i thought i had messed up!! as maths is not my strong point and i like to note down stuff like this! still gets me how much a micro can do in 1ms!! amazing stuff