foxter
Posts: 2
Joined: Tue Oct 18, 2016 5:23 pm
Contact: Website

Arduino

Tue Oct 18, 2016 5:27 pm

Hello,
is there any possibility to install arduino to raspberry pi3? :roll:

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13092
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Arduino

Tue Oct 18, 2016 5:38 pm

You mean the Arduino sketch environment?
Yes, the Linux version should run...
Gertduino does so, see viewforum.php?f=96 and can program the ATMega chip from the PI.

foxter
Posts: 2
Joined: Tue Oct 18, 2016 5:23 pm
Contact: Website

Re: Arduino

Tue Oct 18, 2016 5:46 pm

I would like to replace my board with atmega with RP3.

User avatar
CarlRJ
Posts: 598
Joined: Thu Feb 20, 2014 4:00 am
Location: San Diego, California

Re: Arduino

Tue Oct 18, 2016 5:48 pm

You can also connect an Arduino (say, an Uno) to a Pi via USB and talk to the Arduino over the connection using pyserial (or likely in various other ways).

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Arduino

Tue Oct 18, 2016 10:01 pm

Alex Eames has a good set of tutorials for communicating between a Pi and an arduino (the tutorials are written specifically for his arduino compatible board but will be applicable to any arduino or compatible).
Doug.
Building Management Systems Engineer.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Arduino

Wed Oct 19, 2016 6:52 pm

foxter wrote:I would like to replace my board with atmega with RP3.
Doing that is non-trivial. The Arduino is a micro-controller that usually runs a single-threaded program that performs a single task. The Raspberry Pi is a full scale general purpose micro-computer running a multi-tasking, multi-threading operating system.

You're comparing apples to oranges.

If you really want to run a Raspberry like an Arduino you have to move away from Linux and get a single task, single threaded program running on the bare metal. That's something that's beyond the skills of 95% of the folks on this forum.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

hippy
Posts: 7730
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Arduino

Wed Oct 19, 2016 7:59 pm

foxter wrote:I would like to replace my board with atmega with RP3.
Do you mean using your Pi to interface with what your arduino would interface to ?

If so any programming language which allows GPIO access should allow that fairly easily.

If you want to create arduino scripts and run those on a Pi, or have the Pi so it can accept scripts downloaded from an arduino IDE the RasPiArduino project may be what you need -

https://github.com/me-no-dev/RasPiArduino

Return to “General discussion”