use front sensor to adjust micromouse

preview_player
Показать описание
use 2 front walls of micromouse Green Giant V2.2 to calibrate the position to the wall. code are as follow:
Рекомендации по теме
Комментарии
Автор

void adjuster(void)
{
int curt = micros();//start to track time in order to make one adjust every 1000us
readSensor();
setLeftPwm((2900- LFSensor));//set left motor speed
setRightPwm((2500 - RFSensor));//set right motor speed
TIM2->CNT=25000;//keep resetting encoder counts prevent overflow
TIM3->CNT=25000;
elapseMicros(1000, curt);//elapse 1000 micro seconds
}

Greenye
Автор

Its been a while since this video was uploaded but I am having some issues. I want to achieve the exactly same goals but I cant wrap my head around how you do this. Do you use IR or ultrasound sensors? Do they produce analog output based on how far is the wall? How do you determine if the robot is not looking straight at the wall?

lukaspetrikas
Автор

what ir sensor and micro controller are you using?

maxx-se
Автор

Im worried about uneven lighting causing issues, is it not that big of a deal? Or are there ways of working around it

scaratb
Автор

Where to find these motors, gears and wheels? Thumbs up

isithachamikabandara
Автор

What encoders have you used in this one?

aniruddhagaikwad
Автор

Where I can find that micromouse for sell.

diegocueva
Автор

In my country they don't do micromouse, all I can find is stupid sales people that copied the name for their own shitty cat toys :D

MarinusMakesStuff
visit shbcf.ru