CLIL - Praktická cvičení
Z MediaWiki SPŠ a VOŠ Písek
(Rozdíly mezi verzemi)
(→T7 – Programování automatické pračky) |
|||
(Není zobrazeno 7 mezilehlých verzí od 1 uživatele.) | |||
Řádka 1: | Řádka 1: | ||
− | == | + | '''CLIL - Content and Language Integrated Learning''' |
+ | |||
+ | == T3 - Popis vývoje uP aplikace s RD2kit == | ||
+ | |||
+ | CLIL - Microcontroller - INTRO | ||
+ | |||
+ | == T4 – Programování světelné křižovatky == | ||
+ | |||
+ | CLIL - Programimg Trafic Lights | ||
+ | |||
+ | == T5 – Programování mikroprocesoru == | ||
+ | |||
+ | CLIL - Programming Microcontrollers | ||
+ | |||
+ | == T6 - Realizace mikroprocesorové sestavy == | ||
+ | |||
+ | CLIL - How to build microcontroller board | ||
+ | |||
+ | == T7 – Programování automatické pračky == | ||
+ | |||
+ | |||
+ | CLIL - How to programming washing machine | ||
+ | |||
+ | |||
+ | http://www.explainthatstuff.com/washingmachine.html | ||
+ | |||
+ | http://www.howitworksdaily.com/technology/how-does-a-washing-machine-work/ | ||
+ | |||
+ | == T9 - Popis robota NXT == | ||
+ | |||
+ | CLIL - NXT robot introduction | ||
+ | |||
+ | == T10 – Vývoj aplikace s robotem NXT == | ||
+ | |||
+ | CLIL - How robot NXT works | ||
+ | |||
+ | == T12 - Vývoj mit aplikace s robotem Boe-Bot == | ||
+ | |||
+ | CLIL - Experiments with Boe Bot | ||
Řádka 8: | Řádka 46: | ||
<gallery> | <gallery> | ||
Soubor:AVR-PRG-01.jpg|[[Vývojová deska ATMEL včetně AVR ATmega16 v2|VYV50 Vývojová deska ATMEL (ATmega16) v2]] | Soubor:AVR-PRG-01.jpg|[[Vývojová deska ATMEL včetně AVR ATmega16 v2|VYV50 Vývojová deska ATMEL (ATmega16) v2]] | ||
− | soubor:logo_winavrR.png|[[Soubor:Icon-pdf.gif]] [http://winide51.wz.cz/downloads/avr/manual.pdf WinAVR] | + | soubor:logo_winavrR.png|IDE: [[Soubor:Icon-pdf.gif]] [http://winide51.wz.cz/downloads/avr/manual.pdf WinAVR] |
− | soubor:logo_AVR.png|[[AVR Studio]] | + | soubor:logo_AVR.png|IDE: [[AVR Studio]] |
− | soubor:logo_CVAVR.jpg|[[CodeVisionAVR]] | + | soubor:logo_CVAVR.jpg|IDE: [[CodeVisionAVR]] |
</gallery> | </gallery> | ||
+ | |||
+ | ====MCU WinAVR Install==== | ||
+ | |||
+ | [http://newbiehack.com/MicrocontrollerProgrammingEnvironmentWinAVRInstall.aspx original link] | ||
+ | |||
+ | {{#widget:YouTube|height=180|width=240|id=bEfjFJlrGxs}} | ||
====Understanding Button Debouncing ==== | ====Understanding Button Debouncing ==== | ||
Řádka 28: | Řádka 72: | ||
DDRB &= ~(1 << PINB1); //Data Direction Register input PINB1 | DDRB &= ~(1 << PINB1); //Data Direction Register input PINB1 | ||
PORTB |= 1 << PINB1; //Set PINB1 to a high reading | PORTB |= 1 << PINB1; //Set PINB1 to a high reading | ||
+ | |||
+ | //DDRB = 0b00000101; | ||
+ | //PORTB = 0b0000001; | ||
+ | |||
int Pressed = 0; //Initialize/Declare the Pressed variable | int Pressed = 0; //Initialize/Declare the Pressed variable | ||
Aktuální verze z 17. 2. 2013, 19:05
CLIL - Content and Language Integrated Learning
T3 - Popis vývoje uP aplikace s RD2kit
CLIL - Microcontroller - INTRO
T4 – Programování světelné křižovatky
CLIL - Programimg Trafic Lights
T5 – Programování mikroprocesoru
CLIL - Programming Microcontrollers
T6 - Realizace mikroprocesorové sestavy
CLIL - How to build microcontroller board
T7 – Programování automatické pračky
CLIL - How to programming washing machine
http://www.explainthatstuff.com/washingmachine.html
http://www.howitworksdaily.com/technology/how-does-a-washing-machine-work/
T9 - Popis robota NXT
CLIL - NXT robot introduction
T10 – Vývoj aplikace s robotem NXT
CLIL - How robot NXT works
T12 - Vývoj mit aplikace s robotem Boe-Bot
CLIL - Experiments with Boe Bot
Microcontroller - A Beginners Guide
IDE: WinAVR
IDE: AVR Studio
IDE: CodeVisionAVR
MCU WinAVR Install
Understanding Button Debouncing
#include <avr/io.h> int main(void) { DDRB |= 1 << PINB0; //Set Direction for output on PINB0 PORTB ^= 1 << PINB0; //Toggling only Pin 0 on port b DDRB |= 1 << PINB2; //Set Direction for Output on PINB2 DDRB &= ~(1 << PINB1); //Data Direction Register input PINB1 PORTB |= 1 << PINB1; //Set PINB1 to a high reading //DDRB = 0b00000101; //PORTB = 0b0000001; int Pressed = 0; //Initialize/Declare the Pressed variable while (1) { if (bit_is_clear(PINB, 1)) //Check is the button is pressed { //Make sure that the button was released first if (Pressed == 0) { PORTB ^= 1 << PINB0; //Toggle LED in pin 0 PORTB ^= 1 << PINB2; //Toggle LED on pin 2 Pressed = 1; } } else { //This code executes when the button is not pressed. Pressed = 0; } } }
exercise with NXT
maybe: