medorpg
Newbie level 5
Hi all,
I'm doing this project of a car that I control using a microcontroller (P18f452) + ENC28J60
the control is done using a web page on the microcontroller
how I can achieve that when a button on the web page is clicked, the car moves ?
I have done this inside the main while loop, Something like this
while(1){ //This is not an accurate code it's just for explanation
if(portb.f1==1) {
portc.f1==1;
}
}
After doing this code the microcontroller load goes high and the car moves isn't smooth
how can I achieve the same goal but in a smoother or smarter way ?
thank you so much.
I'm doing this project of a car that I control using a microcontroller (P18f452) + ENC28J60
the control is done using a web page on the microcontroller
how I can achieve that when a button on the web page is clicked, the car moves ?
I have done this inside the main while loop, Something like this
while(1){ //This is not an accurate code it's just for explanation
if(portb.f1==1) {
portc.f1==1;
}
}
After doing this code the microcontroller load goes high and the car moves isn't smooth
how can I achieve the same goal but in a smoother or smarter way ?
thank you so much.