Quantcast
Channel: SK Pang Electronics Ltd » Arduino
Viewing all articles
Browse latest Browse all 9

PiDuino Software Installation and Test Guide

$
0
0

After assembly the Arduino IDE software for the Raspberry Pi would now need to be installed.

Plug the PiDuino into the Pi and power up. Follow the Arduino IDE installation from Gordon’s project.

Start the Raspberry Pi GUI from the command line by typing:

startx

Start the Arduino IDE by clicking Programming | Arduino IDE

 

Load the Blink sketch from File | Examples | Basics | Blink

Select the Arduino Pro Mini (3.3v 8MHz) board from Tool | Board | Arduino Pro or Pro Mini (3.3V, 8MHz) w/ ATmega328

Select the Programmer : Tools | Programmer | Raspberry Pi GPIO

 

Make any changes to the sketch as required. For example delay values. Compile and upload the sketch : File | Upload Using Programmer

NOTE

LED1 is connected to the SPI bus, SCK which is pin 11 on the Raspberry Pi. After programming this pin becomes low and would stop the LED flashing. To solve this problem pin 11 would need to configure as an input by:

sudo python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(11,GPIO.IN)

You should now see LED1 flashing.

 

 


Viewing all articles
Browse latest Browse all 9

Trending Articles