element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs RPi GPIO Programming using Arduino Web IDE
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: oksbwn
  • Date Created: 15 Aug 2018 6:10 PM Date Created
  • Views 783 views
  • Likes 13 likes
  • Comments 4 comments
  • tutorial
  • raspberry pi project
  • rpibeginner
  • arduino_tutorials
  • arduino_tutorial
  • arduino_techspecs
  • raspberrypi
  • rpi_beginner
  • arduino pinout
  • arduino
  • raspberry_pi_3_b_plus
Related
Recommended

RPi GPIO Programming using Arduino Web IDE

oksbwn
oksbwn
15 Aug 2018

               Recently Arduino has launched support for programming ARM-based SBCs by using the Arduino web editor and Raspberry Pi is one of the SBCs in the list. This video is all about the basic setup to get started with the programming of the Raspberry Pi GPIOs by using Arduino codes. The setup is pretty simple and will help you if you are more comfortable in the Arduino ecosystem as compared to python. More in depth functionalities are yet to be checked.

Pi GPIO mapping wrt Arduino:

 

               The Pin/ GPIO mapping or the numbering convention used by Arduino to address each GPIO pins is straightforward and it uses the actual pin position in the header of the Raspberry Pi. Obviously, pins used for power and GND can't be used as GPIO but still, those pin numbers are not used for other GPIOs.  Pin# defines the PIN no as used by Arduino.

 

 

RPi GPIO Mapping wrt Arduino

Code:

void setup() {
  Serial.begin(9600);
  for(int i=0;i<40;i++)
    pinMode(i, OUTPUT);
  Serial.println("Strating the application.");
}

void loop() {
  //Serial.println("Hello");
  for(int i=1;i<14;i++){//You can skip the power pins to avoid the unusual delays between LED blinks.
    digitalWrite(i, HIGH);
    delay(1000);
    digitalWrite(i, LOW);
    delay(1000);
  }
}

 

Video:
You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
  • Sign in to reply

Top Comments

  • dixonselvan
    dixonselvan over 5 years ago +2
    Thanks oksbwn for sharing. I’ll give this a try.
  • e14phil
    e14phil over 5 years ago +2
    That Is a great video, I'm going to share this blogpost into the Raspberry Pi Projects area.
  • oksbwn
    oksbwn over 5 years ago in reply to dixonselvan +1
    My Pleasure...
  • oksbwn
    oksbwn over 5 years ago in reply to e14phil

    Thanks philhutchins

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14phil
    e14phil over 5 years ago

    That Is a great video, I'm going to share this blogpost into the Raspberry Pi Projects area.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • oksbwn
    oksbwn over 5 years ago in reply to dixonselvan

    My Pleasure...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dixonselvan
    dixonselvan over 5 years ago

    Thanks oksbwn for sharing. I’ll give this a try.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube