Raspberry Pi..any opportunities

Here you find known solutions about the X-Sim software.
Do not post any questions, use the sections below instead!

Raspberry Pi..any opportunities

Postby museumsteve » Thu 21. Jun 2012, 10:51

I know people have started getting their Raspberry Pi units (mine's enroute) so I guess I'm curious to see if there's anywhere that it may fit into the x-sim setup.
museumsteve
X-Sim Supporter
 
Posts: 79
Images: 10
Joined: Fri 6. Apr 2012, 03:01
Has thanked: 1 time
Been thanked: 0 time

Re: Raspberry Pi..any opportunities

Postby sirnoname » Thu 21. Jun 2012, 16:27

What do you like to control with that big CPU?
Arduino and basic Stamps are controller CPU's.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Raspberry Pi..any opportunities

Postby museumsteve » Thu 21. Jun 2012, 16:37

lol..never mind.
museumsteve
X-Sim Supporter
 
Posts: 79
Images: 10
Joined: Fri 6. Apr 2012, 03:01
Has thanked: 1 time
Been thanked: 0 time

Re: Raspberry Pi..any opportunities

Postby wptm » Mon 26. Nov 2012, 01:42

I also have a Raspberry Pi which waits for some nice project.
It has the GPIO (General Purpose Input/Output) pins to do interfacing with the real world. A nice documentation on it:
http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28Python.29

But there's here an important fact:
http://pypi.python.org/pypi/RPi.GPIO

Note that this module is unsuitable for real-time or timing critical applications. This is because you can not predict when Python will be busy garbage collecting. It also runs under the Linux kernel which is not suitable for real time applications - it is multitasking O/S and another process may be given priority over the CPU, causing jitter in your program. If you are after true real-time performance and predictability, buy yourself an Arduino http://www.arduino.cc !


So, we cannot rely on it.
User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: Raspberry Pi..any opportunities

Postby DaveStephenson » Wed 28. Nov 2012, 20:33

With the out of the box kernel probably not. You would need to build your own kernel I think. There are kernel modules to make our run some of the low level systems in real time. They are packaged mostly for audio recording distributions.

How far that would get you I'm not sure without trying it out. I haven't had chance to play around with my pi yet. Would probably be Christmas before I have chance. I guess my first port of call just became seeing what's possible in terms of building a realtime kernel.

If the only interface to the IO pins is in python then that issue would still remain.
DaveStephenson
 
Posts: 1
Joined: Tue 21. Aug 2012, 23:19
Has thanked: 0 time
Been thanked: 0 time

Re: Raspberry Pi..any opportunities

Postby thaparser » Wed 6. Nov 2013, 17:33

The converter running on rPI maybe? That is, if it can handle the processing required by the converter for math and such. otherwise it has 1 COM port and could support additional via USB, eventually.
It could be configured via a simple web server from a mobile device, for example.
possible?

cheers!
thaparser
X-Sim Supporter
 
Posts: 65
Images: 26
Joined: Thu 5. Sep 2013, 17:00
Location: GL, RO
Has thanked: 5 times
Been thanked: 13 times

Re: Raspberry Pi..any opportunities

Postby sirnoname » Thu 7. Nov 2013, 12:45

30€ Raspbery vs. 30€ Android device make no sense for me.
This device is technical and out of the price absolutely uninteresting for any development.
Most can not calculate and do not see the time and equipment you need for this device compared to android with its arduino support.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Raspberry Pi..any opportunities

Postby thaparser » Thu 7. Nov 2013, 13:26

I was actually thinking of it as a remote X-Sim converter, not as motor controller, given it has the computation power for the math algos and sending the commands to the motor shields via USB/UARTs.

otherwise, how would you use Android and Arduino? (I may have missed something)
thaparser
X-Sim Supporter
 
Posts: 65
Images: 26
Joined: Thu 5. Sep 2013, 17:00
Location: GL, RO
Has thanked: 5 times
Been thanked: 13 times

Re: Raspberry Pi..any opportunities

Postby sirnoname » Thu 7. Nov 2013, 15:02

No, such portations are not available.
Do you like to program such a device with a mini converter?
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Raspberry Pi..any opportunities

Postby thaparser » Thu 7. Nov 2013, 15:17

I was thinking if it would be possible to have the rPI 'under' the sim next to the motor controllers, connected to the network (wired or wifi) as remote X-Sim converter.
I'm no stranger to Linux embedded and I would like to try porting what would be needed if there are no hard dependencies to Windows OS.
it is a pity, since the X-Sim software is quite modular we could have the converter ported to small PCs to do the work remotely since JRKs and Arduinos are supported in Linux as well so commanding those from the rPI wouldn't be a problem.
I've already tried using the X-Sim converter over WiFi and the response was quite good (didn't feel a difference).
anyway, I think it might be worth a try.. eventually.

cheers!
thaparser
X-Sim Supporter
 
Posts: 65
Images: 26
Joined: Thu 5. Sep 2013, 17:00
Location: GL, RO
Has thanked: 5 times
Been thanked: 13 times

Next

Return to X-Sim Q&A/FAQs

Who is online

Users browsing this forum: No registered users and 1 guest