![]() We've provided a pre-written example program that we'll load into the Arduino IDE. New Concepts Introduced in This Activity Exploring Your First Program They are available in a variety of colors your LilyPad Development Board includes five white LEDs and a special tri-color "red-green-blue" (RGB) LED that can display a rainbow of colors. These are electronic components that light up when electricity passes through them. “LED” stands for “ Light Emitting Diode”. ![]() You can use these sew tabs to provide power and ground to LilyPad boards connected to the LilyPad Arduino Simple. Some of the sew tabs have a “+” or “-” next to them. We’ll tell you about these special features in future activities. These symbols describe special features that some of the sew tabs have. You might have noticed that some of the sew tabs have an “A” as part of the label, and some include a tilde or squiggle “~”. These are the names of the sew tabs, which you’ll need to know to control them from your program. If you look closely at the sew tabs, you’ll see that every sew tab has a label next to it. ![]() (We’ll explore this in future activities.) It can use this information to read buttons, switches, and various sensors, and use that information to make decisions. ![]() It can also use them for input, measuring any voltage coming from other components. It can use them for output by turning them on and off (internally connecting them to voltage or not). Most of your input and output will happen through sew tabs the silver petals with holes in them evenly spaced around the outer edge of all LilyPad boards. Unlike larger computers, microcontrollers don’t have keyboards and screens for input and output. It can’t do all the things that a larger computer does, but it’s very good at running programs that control simple hardware like LEDs. The LilyPad Arduino Simple at the center of your ProtoSnap board contains a tiny computer called a microcontroller. We've created a set of of programming examples that you copied to a folder in the Arduino application, we’ll be using them in these activities. This is a specialized text editor with extra buttons to check and send your code to the LilyPad Arduino Simple at the center of your ProtoSnap board. In the Arduino system, you’ll write programs on your computer in a free application called the Arduino IDE (“IDE” stands for Integrated Development Environment). Don’t feel bad, this happens to everyone and is a normal part of writing programs, and we’ll provide you with some troubleshooting tips as you follow along with the activities in this guide. If you type in a word that the computer doesn’t know (or more likely, you misspell a word that the computer should know), you’ll get an error when you try to run your program. These instructions come from a specific list of words that the computer knows. When the computer runs a program, it will start at the first instruction, carry it out, and move on to the next one. This could be blinking LEDs, playing sounds, making decisions based on input from sensors, or a combination of all those things. Programs are sets of instructions that tell a computer to do something, (also called “code” or a “sketch” in Arduino).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |