Karel the LED can’t turn right, but he can make some great LED art!
The goal of this activity is to download the JavaScript code given below onto a board, then USE the program to introduce new students to the micro:bit. Students will not do the coding this time. They will be users to get familiar with the board.
How to play
A button Turn Left
Does not draw anything just changes the direction Karel (the flashing led) is facing
B button Move Forward
Moves Karel forward one step and leaves the LED on behind him
shake Jump
Moves Karel forward one step without leaving the LED on behind him
A+B button Hide Karel
Shows or hides Karel (the flashing LED), to be used once your artwork is complete
Reset button Clear the board and restart
Restart the program and clear the board
Note, that there is no way to erase, other than restarting.
See if you can make each pattern below using A, B, and shake. Once you have completed a challenge press A and B at the same time to hide Karel. For patterns that you design decide which LEDs you want to turn on and then make that design with Karel.
Each Monday is Micro:bitMonday here at Adafruit! Designed specifically for kids and beginners, the micro:bit is a pocket-sized computer that you can code, customize and control to bring your digital ideas, games and apps to life! Play, learn, explore: get started with micro:bit! Adafruit is an authorized Micro:bit reseller- check out all of our posts, tutorials and Micro:bit related products!
Experimenting with your own Micro:bit project? Use the hashtag #microbitmonday so we can feature your inspiring work on the Adafruit blog!
Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.
Python for Microcontrollers — Python on Microcontrollers Newsletter: New Thonny and Git Versions, Plenty of Projects and More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi