Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Raspery PI programming methods

Status
Not open for further replies.

prabhukaran3

Member level 5
Member level 5
Joined
Mar 14, 2013
Messages
93
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Karur
Visit site
Activity points
2,053
Dear All,
How to program Raspery Pi.. I am having experience in PIC controllers.. Nut new to raspery pi board... Like PIC controllers,Is there many compilers available to program raspery PI? If yes please give your ans...

Why phython OS is more powerful.. What is the advantage of Rasperry Pi over PIC controllers?
 

Raspberry Pi uses an ARM chip which is probably at least 10x as fast as the PICs that you are used to using (at least on core processing). It has a built in graphics processing unit as well which makes it easy to plug into a monitor. It typically runs a flavor of Linux. On mine I tend to program in c/c++ or python. C is typically faster (if you need speed) but Python is easier and usually "fast enough" for things that you might do on with the chip. PIC (which I also use) is a microcontroller with on chip SRAM and Flash. These are separate on the RPi . RPi is really a full general purpose computer with an operating system ready to go. PIC is obviously a lot more custom. You can do a lot of IO on both with I2C, SPI, RS232 etc, but the programming will be lower level on the PIC, as RPi uses the Linux hardware abstraction layer. Which one is easier depends on your experience I suppose. The RPi has a great community behind it and a lot of general purpose computing power. The primary limitation compared to the PIC is that the standard system is not real time, and it's considerably harder to control the timing of, whereas with the PIC you are in total control of your timing, but it doesn't have nearly the compute power that an RPi has which can have up to 1GHz clock and a full GPU.

I forgot to mention that Python isn't an OS, it's a byte compiled language that is typically a lot less "picky" than C and tends to be object oriented and easier to program with less for the programmer to keep up with. However for low level bit twiddling I find C just as easy or easier especially with bit and byte level operations. One cool thing is that you can program in python and then if you get a particularly "slow" portion of your program, then you can just write that portion as a C function, as it is fairly easy to interface a C library with python.
 
Last edited by a moderator:
  • Like
Reactions: Samran

    Samran

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top