element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry I/O galore in new Gertboard video
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 19 replies
  • Subscribers 698 subscribers
  • Views 2907 views
  • Users 0 members are here
  • raspberry_pi
  • arduino
  • gertboard
Related

Raspberry I/O galore in new Gertboard video

fustini
fustini over 14 years ago

Howdy,

 

I was very excited to see a new video posted today on the Gertboard:

 

http://www.raspberrypi.org/archives/868

Here’s some video from Gert on the new revision of Gertboard, an expansion board for the Raspberry Pi which brings out the GPIO. There are some lovely demos of Gertboard enabling the Raspberry Pi to work with an analog slider controller and a motor here.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The Rev2 board looks like it is full of fantastic possibilities.  I'm very happy to see both an ADC and DAC.  Moving the slider to control the motor speed is a nice visual demo.  Gert has posted in the blog post comments a link to pic of DAC output on a scope:

http://img803.imageshack.us/img803/7035/dac.jpg

 

Another interesting development is that the PIC microcontroller has now been replaced with an AVR.  He refers to it as an Arduino in the video and has tested with an ATMega168 and ATMega328 (http://www.raspberrypi.org/forum/educational-applications/gertboard/page-12/#p57407).

 

Gert closes by saying that a production run of 1,000 is about to commence and the plan is that they'll be ready in 4-5 weeks and sold via the RaspberryPi.org website store.  I believe it will be just the bare PCB, but blog comments from Liz mentioned that there might be a kit option, too.

 

Did anyone else dig the ASCII graphics in the demo? image

 

Cheers,

Drew

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 14 years ago in reply to michaelkellett

    The MAC is not on the SOC; it's part of the USB Hub. Not exactly ideal, latency-wise.

     

    The SPI is documented here: http://www.element14.com/community/docs/DOC-43016/l/broadcom-datasheet-for-bcm2835-soc-used-in-raspberry-pi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fustini
    fustini over 14 years ago in reply to morgaine

    Ah, thanks for pointing that out about the high precision realtime control.  I'm a Linux user and have worked with microcontrollers, so I've been excited at the prospect of using Linux in embedded projects.  The BeagleBone and Pi videos I've seen make the GPIO with Linux look great, but I wasn't considering the difficulty of getting timing correct when it matters.

     

    And thanks for the Maple IDE link.  I hadn't realized that is so closely resembled the Arduino IDE.  I had thought only Digilent/Agilent had accomplished that level of software compatibility so far.  Looks like Maple is a better route for Arduino on ARM than the Arduino DUE (which seems missing in action).

     

    Thanks,

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • GreenYamo
    GreenYamo over 14 years ago

    All of you above seem to have a *very* in-depth knowledge of interfacing devices like this - do you have any suggested guides for a newbie ? (Me)

     

    I have an Arduino or two and also a Picaxe board and one of the things I was interested in doing with the Pi was interfacing to sensors.

     

    Any suggestions gratefully received, please be gentle with me.

     

    Thank you.

     

    Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 14 years ago in reply to GreenYamo

    Steve, if you have some Arduinos then the absolutely epic series of tutorials at http://tronixstuff.wordpress.com/tutorials/ is a must-read.  And lucky lucky you image, the answers to your question are right there:

     

        SPI bus - https://tronixstuff.wordpress.com/2011/05/13/tutorial-arduino-and-the-spi-bus/

     

        I2C bus - http://tronixstuff.wordpress.com/2010/10/20/tutorial-arduino-and-the-i2c-bus/

     

    That guy really deserves a medal.

     

    PS. If you search for "I2C" in his list of tutorials, you'll find 3 chapters about it, an Intro, the Part One I linked, and a Part Two.

     

     

    PS2. Since we're on Element 14's website, it's nice to give Jeremy Blum a plug for his very easy to follow video tutorial on I2C + Arduino, as he's sponsored by Element 14 --  https://www.youtube.com/watch?v=GJX0BRUagCg  --, as well as the Element 14 Arduino group which is full of excellent info --  www.element14.com/.../arduino  .

     

     

    Morgaine.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • GreenYamo
    GreenYamo over 14 years ago in reply to morgaine

    Thank you Morgaine those links look extremely useful and exactly what I am after.

     

    Looks like I'll have plenty of time to learn whilst I'm waiting for the pi to arrive...

     

    Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fustini
    fustini over 14 years ago

    FYI - the RaspberryPi.org blog has just posted with a link to download the software for the Gerboard:

     

    http://www.raspberrypi.org/archives/960

    Gert has had a lot of requests from you guys for the software used in the last Gertboard video (Gertboard, for those who are new round here, is a GPIO expansion board you can use to get your Raspberry Pi to drive motors, lights, sensors and all that good stuff.)

     

    For now, you can download the Gertboard software here

     

    A cursory look shows that it is written in C and appears to use memory mapping to interface with the ARM peripherals.  In addition to LEDs and buttons via GPIO, it includes an example of interfacing with an external ADC and DAC via SPI.  It also show how to use the ARM's built-in PWM capability (including some nice ASCII art).

     

    Cheers,

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 14 years ago

    GertBoard, the Raspberry-PI IO breakout board is an Arduino !?

    I think I'm lost.

     

    Upvote for Morgaine for all his good references

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fustini
    fustini over 14 years ago in reply to Former Member

    There is a DIP socket which could accomodate an ATMega168 or ATMega328 which makes it possible to act as an Arduino.  However, the examples in the video (and download) are just using the Broadcom SoC ARM processor directly to interact with the components on the Gertboard.  It appears that that the C program accesses ARM periphials like the GPIO port via memory mapping.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 14 years ago in reply to fustini

    I took a quick look at the C code too, which incidentally compiles fine on an Intel Linux box as well.

     

    This is the kind of program that should never be run on a Linux machine, as it contains timing loops and polls and busy waits, burning up CPU instead of being I/O event-driven like all good Unix programs should be.

     

    (It's just a demo of course, which is fine in itself, but the trouble is, people take demos and extend them into non-demo applications which preserve all the problems of the demo code.)

     

    It's because of problems like this that the Gertboard has a microcontroller of its own.  The general idea is that you put timing loops, polling and busy waiting down in the micro where it can be done with good realtime constraints, only occasionally sending I/O events back to the Rpi where the user-space program waits passively on a file descriptor.  That way you don't suffer all the poor timing and latency issues of Linux user space, and you don't burn up CPU in wasted loops on the host machine.

     

    Issues like this will become an integral part of the technical education which the Rpi is intended to provide.  Expose our youngsters to the right way of doing things and we'll end up with better engineers in times ahead.  The opposite is also true.

     

    See also: http://en.wikipedia.org/wiki/Busy_waiting

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 2026 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