Arduberry LED Blink

by dexter_industries in Circuits > Raspberry Pi

2745 Views, 20 Favorites, 0 Comments

Arduberry LED Blink

Arduberry_Tutorial_Blink-3.jpg

The Arduberry is a simple and inexpensive way to bring Arduino shields to the Raspberry Pi. The device is a shield that slides over the Raspberry Pi and allows you to stack and use Arduino shields. The Arduberry requires no physical configuration to work with most shields. You can write Arduino sketches (programs) right on your Raspberry Pi.

Blink is the simplest Arduberry example project. This example will show you how to blink an LED connected to the Arduberry.

​Parts Needed

Arduberry_Tutorial_Blink-2-1024x768.jpg

  1. Raspberry Pi
  2. Arduberry
  3. A LED
  4. A 330 ohm resistor
  5. Breadboard
  6. Jumper wires

Connect the LED

ExampleCircuit_sch.png
b1.JPG
Arduberry_Tutorial_Blink-3.jpg

In this step we will wire up the LED using a breadboard. Insert a 330-ohm resistor on a breadboard and connect it to pin 13 on the Arduberry. Attach the long leg of an LED (the positive leg, called the anode) to the resistor. Attach the short leg (the negative leg, called the cathode) to ground using a jumper wire.

Start the Raspberry Pi

open-arduino.jpg

Power on the Raspberry Pi with the Arduberry connected to it and open the Arduino program

Run the Blink Sketch

Upload.jpg

Open the Blink example in Examples folder (Examples ->01.Basics->Blink) and change the programmer to RaspberryPi GPIO (Tools ->Programmer) and press Ctrl +Alt +U to upload the program (Upload using Programmer).

The LED will start blinking.

Have a problem? Did we make a mistake? Post it on the forums and we’ll help you out.