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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Joey Thompson's Blog Chip Kit Pi: Personal Thoughts
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: screamingtiger
  • Date Created: 12 May 2015 4:51 PM Date Created
  • Views 1343 views
  • Likes 1 like
  • Comments 15 comments
  • quadcop_project
  • chipkit_pi
  • propeller
  • arduino
Related
Recommended

Chip Kit Pi: Personal Thoughts

screamingtiger
screamingtiger
12 May 2015

I am going to withhold this post from my SciFI Your Pi project.   I have to admit, this ChipKit stuff is really poorly supported.  The two versions I have read up on are the uno32 and the Pi version.  I have been using the Pi version for a week now.  Its been problem after problem!

 

I had an arduino pro mini coded and completely working.  It took about 2 weeks to convert my code over the to the ChipKit Pi.  Honestly, I am still not sure it is going to work.

-The Servo Library is broken when using I2c

-The I2c only receives 1 byte at a time, or rather the callback function is called for each byte received in a block.

-There are7 missing I/O pins, but they are present on the breakout board.  After some research I realized they are just duds.

-Some of the pins are there but require jumpers to be set.

-It connects to the RPi and eats up half the pins on the pi, and yet its not using any of them except power.  However they are not all exposed on the top of the unit either.

     -The serial pins of the Pi are completely covered and required me to solder wires on the break out to be able to use the serial pins.

     -A few GPIO pins are just simply covered, and not used.

-The MPIDE doesn't detect the Pi's serial port and requires a symbolic link /dev/ttyS0 to be created

-The MPIDE recompiles ALL the code regardless of what changed, and this includes all the internal libraries.  (lots of fun on the Pi).

-Honestly, other than getting power and form factor, I see no reason this thing should connect up to the Pi, it should just be stand alone.

All you are getting is the serial ports are connected up for you, wow.

The last point, there is little support.  Many of the issues have been tossed around online since 2012 and in the Uno32 case, 2011.  Its almost like the support is the open source community but there only seem to be a few people working on it.

Currently it can only be programmed with an IDE, no command line.  I love the command line.

 

Ok I am done complaining, let me talk about some good stuff.

Its FAST, I mean really fast. relative to the arduino.

It has a task scheduler which is a really nice way to think of interrupts.  You don't have this issue of interfering with timers etc like you do in the Arduino world.

The ISRs run much faster so have more room to code instead of optimizing.

Its 32 bit, this is good and bad.  Be careful if you expect the registers to roll over during calculations.

It does attach nicely to the pi, and the pi can still be inside a case.  It makes a great real time component to the Pi.

The overhead in the calls and timer functions is much smaller.  Making timing more accurate.

It has 2 uarts (serial ports).

 

The arduino struggles with working servos and reading PWM.  You have to get down to the AVR level coding to really get it smooth if you have lots of servos.  The chipkit pi handles servos and reading PWM like a champ with no real efficiency in the coding.

 

Today will be a real test if it all works together.  I plan to fly the my QuadCopter with the chipkit Pi relaying my controls to the flight controller via the SoftwarePWMServo library.

 

I would be 2 week ahead of my project instead of 2 weeks behind but I wanted to use this to give it some spot light.  I really think it is usable and once the issues are spelled out its not so bad.  If I knew about the issues up front it may of saved some time.  I do like it but I think marketing it towards arduino users for anything complex is misleading.  It does have a small bridge between the two but it diverges quickly.

 

Honestly I may consider just switching to pic 32 and ditching arduino in the long run.  However there is now a C compiler for the Parallax propeller.  I've had a start kit for 3 years and I refused to learn spin or  assembler for that processor.  Now that there is C it may be the king of real time.  Now they need a Propeller Pi!   A multi-core real time device with lots of I/O attached to a multi-core device with a OS and lots of IO.  Now that's power!

 

 

 

PS I did a speed compare between Arduino and the ChipKit Pi in my project block.

quadcop_project

  • Sign in to reply

Top Comments

  • clem57
    clem57 over 10 years ago +1
    I like the summary even with the g00d, the bAd, and the ugly.
  • balearicdynamics
    balearicdynamics over 10 years ago +1
    Joey, I partially agree to what you write but I think that there are some mistakes in the general approach for the creators of ChipKit PI. In my opinion, they has used this "pin compatible with Arduino…
  • screamingtiger
    screamingtiger over 10 years ago in reply to balearicdynamics +1
    All good points, as you can tell I am looking at from the an Arduino perspective, and it quickly diverges into something else. The servo library interferes with I2C and vise versa, however someone created…
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to screamingtiger

    Got it! image

     

    I supposed well (if the ChipKit PI was 5V it was not only a mistake but a project error). Take a look to this forum thread has the opposite need. As a matter of fact, the PIC32 works at 3.3 that is a compatible level with the raspberry.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to screamingtiger

    Me too. But having three raspberry PI here, it is not the time to explore this part.

     

    Instead about the power, I have nothing sure at this moment. Logic says that from the GPIO a logic signa (0 -3.3V) to a digital input pin in the ChipKit should work without damage as it is a logic signal. What I am not sure is the case of the opposite. I am investigating.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • screamingtiger
    screamingtiger over 10 years ago in reply to clem57

    Other than a few bugs, lack of support and the MPIDE issues, nothing is "bad" or "ugly" about it.  image

    I thought I could take a sketch that works on an Arduino, upload it to the ChipKit Pi, and by magic it works but runs 10 times faster.  I also though I might have more IO as well.  That is the marketing department's fault.  Heck calling it the UNO32 implies that, and the UNO32 is the same thing as the ChipKit pi but lacking a bottom connector for the Pi.

     

    A very simple sketch will transfer but anything worth doing will require some work.  That was the source of my frustration, that I thought it would be easy to convert to.  But its full of surprises  image

     

    Overall it is a great board and I am just venting I lost a week getting it to work.  If only they provided a form factor like the arduino Mini Pro it would be a Gold Cup Winner.  It looks like they have something Akin to the Nano but its only 1/2 the speed of the chipkit pi.

     

    Im hoping the judges in my design challenge recognize I am going to lengths to use parts in the kit  image


    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • screamingtiger
    screamingtiger over 10 years ago in reply to balearicdynamics

    I have not been able to get USB upload to work.  The UNO 32 has more documentation and posts, and it is the same thing.  Perhaps Google that will provide more answers.

     

    One thing perhaps you can help with, is can I plug a GPIO pin from the ChipKit Pi directly into the Raspberry Pi?  The Pi uses 3.3V but I am not sure if everything is 5V tolerant or not.  I have not checked if CHipKit GPIO pins are 3.3 or 5V.  I can say that I have had 5V pins from Arduino going to the Pi and there have been no problems that I can tell.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to screamingtiger

    I will investigate in depth then I wil update you image

     

    BTW, just to close the scenario of ChipKit PI + Raspi, my consideration is that the board is great for a lot of reasons but it is very Raspberry-oriented. It is true that it can work stand-alone (despite the fact that I have not yet discovered on how to upload programs from the IDE to the board outside the RPI but on a PC, what connection should be used and so on). Then with the Bord + Raspi configuration there is an interesting trick that in most cases can save a lot of circuit design and probably firmware too:

     

    as the GPIO is replicated, you can use the GPIO and e.g. a python program to manage the behaviour of the ChipKit from the Raspi just only pluggind cables between two connectors.

    • Cancel
    • Vote Up +1 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 © 2025 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