Papilio to Arduino

From Wikiversity
Jump to navigation Jump to search


[edit | edit source]

The papilio can be turned into an arduino. The first step is to go through the unique IDE's examples, find all the hardware required and document how well they work.


[edit | edit source]

Using Arduino IDE to run Arduino Code on the Papilio Board

  • [ENES100] Intro to Engineering Course
  • Digital Class (typically freshman or sophomore year)
  • FPGA VHDL Lab Class (becoming a sophomore class ... mostly senior class)


[edit | edit source]

Download Arduino Papilio IDE Here

Arduino Reference Library


[edit | edit source]
  • OpenSource hardware platform chosen papilio
  • Switches and LEDs provided by the LogicStart MegaWing
  • Code is written in the Arduino programming language, or found in the preloaded Arduino example codes
  • The bit file is sent down the USB cable to the Papilio using the Arduino Papilio IDE, and the AVR 8 soft processor. NOTE: These are different things, both are found in the link given, but you need both
  • The colored template or shell for displaying the VHDL/Arduino code was found in OpenSource editor Notepad + +

Tested Codes:

[edit | edit source]
  • Blink- Flashes LED attached to Pin 13 and ground each Second. Often used as a test to make sure hardware is working.
  • Button- Turns on and off an LED connected to digital pin 13, when pressing a push button attached to pin 7.
  • Hello World- Initiates "Hello World" program where odd LEDs flash on papilio board. ** Does not work on papilio
  • Blink Without Delay- Flashes LED connected to Pin 13, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code.

Next Steps

[edit | edit source]
  • Test more Arduino examples
  • Edit AVR-8 Softprocessor for more digital and fewer analog ports
  • Communicate directly between Papilio and Arduino via three wires as in Papilio to papilio