140 likes | 365 Views
BoeBot. BoeBot heet u welkom. Kennismaking Inleiding BoeBot orientatie Project opdracht Programma bespreking Vragen?. Inleiding. Embedded systems. Boe-Bot orientatie. Onderdelen en sensoren Servo’s Mechaniche aftasting Fotocel navigatie Infrarood navigatie Object detectie
E N D
BoeBot BoeBot heet u welkom
Kennismaking • Inleiding • BoeBot orientatie • Project opdracht • Programma bespreking • Vragen?
Inleiding • Embedded systems
Boe-Bot orientatie • Onderdelen en sensoren • Servo’s • Mechaniche aftasting • Fotocel navigatie • Infrarood navigatie • Object detectie • Afstands meting
Servo’s • Aansturing servo’s • Kalibratie sevo’s
Fotocel navigatie • Lichtgevoelig • RC-tijd • Afstelling
IR-Navigatie • Werking
Project opdracht • Navigatie • Lijnvolger • Object ontwijking
Main lin_LDR_met: = 0 rec_LDR_met: = 0 freqout 2, 2000, 3000 uitgang 12: = laag uitgang 13: = laag merker: = 0 counter: = 0 merker = 0 ? Nee Ja freqout 7,1: = 38500 Programma meting lin_IR: = ingang 8 freqout 1,1: = 38500 rec_IR: = ingang 0 RCTIJD: (lin_LDR > rec_LDR_met) V (lin_LDR > rec_LDR_met) ? Ja Nee (lin_IR = 0 ) (rec_IR = 0) ? Programma lijnvolger Ja Nee lin_IR = 0 ? ACHTERUIT: Ja Nee Zolang counter 75 rec_IR = 0 ? ACHTERUIT: Ja Nee pulsout 12: = 1000 Zolang counter 35 ACHTERUIT: Pulsout 12: = 500 pulsout 13: = 1000 pulsout 12: = 1000 Zolang counter 35 Pulsout 13: = 1000 pauze 20 pulsout 13: = 1000 pulsout 12: = 500 Pause 20 counter: = counter + 1 pauze 20 pulsout 13: = 500 counter: = counter + 1 pauze 20 counter: = counter + 1 totdat oneindig Programma bespreking
Lijnvolger RCTIJD: freqout 7, 1, 38500 lin_IR: = ingang 8 freqout 1, 1, 38500 rec_IR: = ingang 0 (lin_IR = 0) V (rec_IR = 0) ? Ja Nee abs(lin_LDR – rec_LDR) > 15 Ja Nee zolang counter 70 lin_LDR < rec_LDR pulsout 12: = 500 pulsout 12: = 500 Nee Ja pulsout 13: = 1000 pulsout 13: = 500 pulsout 12: = 1000 pulsout 12: = 500 pauze 20 pauze 20 pulsout 13: = 1000 pulsout 13: = 500 counter: = counter +1 pauze 20 pauze 20 counter: = 0 totdat oneindig Programma lijnvolger
meting zolang counter 50 RCTIJD: pulsout 12: = 500 pulsout 13: = 1000 pauze 20 (lin_LDR > lin_LDR-met) ? Ja Nee (rec_LDR > rec_LDR_met) ? Ja Nee lin_LDR_met: = lin_LDR rec_LDR_met: = rec_LDR counter: = counter +1 merker : = 1 Programma meting
RCTIJD uitgang 3: = hoog pauze 3 rctime 3,1: = rec_LDR uitgang 5: = hoog pauze 3 rctime 5,1: = lin_LDR geef terug: ACHTERUIT zolang counter 50 pulsout 12: = 1000 pulsout 13: = 500 pauze 20 counter: = counter + 1 pauze 3 geef terug: Subroutines