|
Note: The RoboBlocky Launch menu referred to in the Windows/Mac video is now located above the Workspace, not above the grid.
Program Arduino Board (Chromebook) In this video, you will learn how to program an Arduino board using a Chromebook device. This video walks through Interactive Tutorial #18, where you will connect the Arduino board to your device, test the LED module using the Arduino Controller, and programmatically control the LED to turn on and off using RoboBlocky.
1. Connecting and Using an Arduino Board with RoboBlocky The videos above guide you through the interactive tutorial Program Arduino Board. One video covers Windows and Mac computers, and the other covers Chromebooks. Each of the videos covers material found in this lesson and several upcoming lessons.
2. Digital Output At the most fundamental level, a digital output is like a light switch, as shown in the circuit diagram below (consisting of a 5V battery, a switch, and RGB LED module with a connection to the red LED). If the switch is open, the light is in the off state. If the switch is closed, the light is in the on state.
3. A Flexible Switch with Arduino However, the hardware of a simple switch is inflexible and cannot be changed without altering the physical circuit. That is why microcontrollers, like Arduino, are used for many devices, as they can perform a wide range of tasks through software changes, without changing the circuit itself. The diagram below shows such a circuit with an LED module plugged into an Arduino board:
4. The RGB LED Module A Barobo RGB (“red green blue”) LED module has four pins coming out of it, as shown below. They are labeled “B”, “G”, “R”, and “-“, standing for blue, green, red, and ground.
The LED module can be plugged directly in to an Arduino board. One side of the Arduino board has a row of sockets labeled 0 through 13 and GND. (Sometimes on diagrams these are labeled D0 through D13, the “D” standing for digital. In addition, even though they are sockets, they are usually referred to as pins.) Plug in the LED module so that its “-“ pin goes in the GND socket, and the R, G, and B pins naturally go in to the 13, 12, and 11 sockets, respectively, as shown below:
5. Connect the Arduino to the Computer Once the LED module is connected to the Arduino board, the next step is to connect the board to the computer using a USB cable. If the computer only has USB-C ports, an adapter may be needed.
Windows and Mac computers use ChDuino software to connect, while Chromebooks use Arduino Controller software, which is included in RoboBlocky.
|
| Grid Size: S M L | Simple View: | MinView: |
| Coord: x-axis y-axis | Grid Lines: x-axis y-axis | |||
| Grid: | 12x12 inches | 24x24 inches | 36x36 inches | |
| 72x72 inches | 96x96 inches | 192x192 inches | ||
| 1x1 inches | 2x2 inches | Fraction: | ||
| xy-Range: | ||||
|
|
||||
|
|
||||
| Quad: | 1 Quadrant | 4 Quadrants | 1&4 Quadrants | |
| Units: | US Customary | Metric | Ruler: | |
| Labels: |
|
|
|
|
Font
px
|
|
| Tics Lines: |
|
Width
px
|
| Hash Lines: |
|
Width
px
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
|||||||||||
|
|||||||||||
