0

I am a mechanical engineering student who is currently doing my final year project.

Basically I am trying to develop coding for the cornering movement for in pipe robots, but my problem now is that I am not familiar with Raspberry Pi 3.

I have the coding which is already run on Arduino, so I want to ask whether there's a way that I can convert the command from Arduino to Python so that it can be run in Raspberry Pi?

hg8
  • 295
  • 2
  • 10
Poli
  • 1
  • 2
    There was a similar question recently. The short answer is no. – joan Mar 07 '17 at 08:43
  • @joan your short answer makes it sound like that RasPiArduino stuff basically doesn't work. Is that the case? – Dmitry Grigoryev Mar 07 '17 at 13:40
  • @DmitryGrigoryev I have no idea what RasPiArduino does. It would be pretty impressive if it could convert an arbitrary Arduino sketch to Python and make it work on the Pi. It would fail immediately if the sketch used analog inputs. – joan Mar 07 '17 at 16:16
  • @joan Well, that's more or less what their readme file says. Sure, there's no analog inputs, and I wouldn't expect the timing to be as precise as it is on a real microcontroller, but still. – Dmitry Grigoryev Mar 07 '17 at 16:30
  • @DmitryGrigoryev It only mentions pinMode/digitalRead/digitalWrite/analogWrite. Arduino has tons of libraries and many more functions. – joan Mar 07 '17 at 16:33
  • @joan It sure has basic functions like delay() and the like. How many libraries are supported is another question. – Dmitry Grigoryev Mar 07 '17 at 16:45
  • Lots on Google about RasPiArduino, but just take a quick look at http://abyz.co.uk/rpi/pigpio/examples.html and it will be immediately obvious that you are better off utilizing @joan's pigpio library so you can go native in Python with confidence. – SDsolar Apr 21 '17 at 17:01

0 Answers0