Programmierbeispiele in Python für den PiHut Maker Kalender
Go to file
Joachim Hummel 9b2b6d37ac Added 6-te December 2023-12-06 21:28:00 +00:00
images Moved Picture in subfolder 2023-12-02 12:51:06 +00:00
pdf Moved PDF 2023-12-05 16:35:09 +00:00
2-dezember.py First Initial 2023-12-02 12:03:13 +00:00
3-dezember.py Day 3 Script added 2023-12-03 10:50:05 +00:00
4-dezember-led-blinken.py Added 4 December Scripts 2023-12-04 18:00:57 +00:00
4-dezember-led-regelung.py Added 4 December Scripts 2023-12-04 18:00:57 +00:00
5-dezember.py Added 5 December 2023-12-05 16:27:53 +00:00
6-dezember.py Added 6-te December 2023-12-06 21:28:00 +00:00
README.md Added 5 December 2023-12-05 16:27:53 +00:00

README.md

Day 2 Complete!

Another great day of learning how to code with the Raspberry Pi Pico and MicroPython! Today you have:

Created your first circuit!
Learnt how to use the time module to add delays to programs
Learnt how to use while loops and conditions
Learnt about variables (our counter)
Learnt about code commentary
Created a dashing, flashing sequence of LEDs

Day 3 Complete!

Great job makers, you ve now got the skills to use physical inputs with MicroPython (which will come in handy for the rest of the calendar) and can code if statements in all sorts of interesting new ways!

Today you have learnt:

How to create a circuit with physical inputs
How to code physical inputs with MicroPython
What if statements are and how to use them
How to use elif and else within if statements
How to use 'and and 'or' within if statement conditions
Combined physical inputs with physical outputs

Day 4 Complete!

Well done makers! We know today was a little heavier as we introduced slightly more advanced topics such as analogue and PWM, so take the time to go back over today's examples and play with the code if you'd like more practice - make it, break it, fix it, learn!

Today you have:

Learnt about analogue and the difference between analogue and digital signals
Built a circuit with a potentiometer
Leant how to use the ADC built into the Raspberry Pi Pico
Controlled LEDs with an analogue signal
Learnt about PWM including duty cycle and frequency

Day 5 Complete!

We've covered lots today fellow makers, pat yourselves on the back!

As we cover more advanced topics such as functions, you may find that you need to refer back to these days to refresh your memory later on - and that's absolutely normal! Even the most seasoned professional programmers have to use search engines regularly (some even admit it!).

So what did we cover on day #5? Today you have:

Built a circuit with a buzzer, your first audio component
Learnt how to use the buzzer with MicroPython and the Pico
Learnt about PWM frequencies and duty cycle with buzzers
Used analogue inputs to control audio volume using PWM
Created a festive jingle with MicroPython
Learnt how to use functions to make your code easier to manage and more efficient