Go to advanced search

by hunternet93
Sun May 27, 2012 10:17 pm
Forum: Python
Topic: Restarting a script
Replies: 2
Views: 1386

Re: Restarting a script

You can make parts of your code run many times by using loops. A loop runs the same section of code until a certain condition is met. I would recommend you read about them (and other things) at http://www.learnpython.org/.
by hunternet93
Wed May 09, 2012 11:24 pm
Forum: Automation, sensing and robotics
Topic: Balancing Robot
Replies: 183
Views: 54652

Re: Balancing Robot

<r>I believe the article means your should always use the CPU's clock instead of relying on the OS to run your code. As long as the PID program is given high priority, it should be more than fast enough to keep a robot balanced. You would need to make sure the PID code has enough CPU to function as ...
by hunternet93
Wed May 09, 2012 10:24 pm
Forum: Automation, sensing and robotics
Topic: Balancing Robot
Replies: 183
Views: 54652

Re: Balancing Robot

<r>With proper configuration, I'm fairly confident the the RPi could keep up with a balancing robot. A quick search found this: <URL url="http://www.linuxpcrobot.org/?q=node/4">http://www.linuxpcrobot.org/?q=node/4</URL> which used an Intel Atom based board running Linux to control a balancing bot.<...
by hunternet93
Thu May 03, 2012 3:54 pm
Forum: General discussion
Topic: Can it run OSX? Lol
Replies: 12
Views: 3297

Re: Can it run OSX? Lol

<t>I was all ready to explain the difference between CPU architectures after I saw the title .<br/> <br/> I just installed Docky on my Debian system running XFCE. It works, although I get a warning that it might be buggy since I don't have a compositing (i.e Compiz) window manager running. Both LXDE...
by hunternet93
Mon Apr 30, 2012 9:42 pm
Forum: Troubleshooting
Topic: UART questions
Replies: 6
Views: 17943

Re: UART questions

<t>Gert said: <br/> <br/> <br/> You can use the tty port but you must first make sure it is not used in another process.<br/> <br/> At the moment it is used to print all the start up information.(The same you see on the screen.) I think that is set in the startup file.<br/> <br/> The start up log st...
by hunternet93
Mon Apr 30, 2012 9:23 pm
Forum: Off topic discussion
Topic: Greetings fellow martial artists (?)
Replies: 12
Views: 2887

Re: Greetings fellow martial artists (?)

I have a yellow belt in Pa Sa Ryu (a mixed martial art). I would have kept going, but my instructor had to cancel the classes because everyone but my brother and me dropped out.
by hunternet93
Mon Apr 30, 2012 8:56 pm
Forum: Troubleshooting
Topic: UART questions
Replies: 6
Views: 17943

Re: UART questions

Ok, thanks!
by hunternet93
Mon Apr 30, 2012 7:43 pm
Forum: Troubleshooting
Topic: UART questions
Replies: 6
Views: 17943

Re: UART questions

I'm going to be using the RPi's UART with a microcontroller running at 5v, specifically, the ATmega328 used in the Pololu 3Pi robot. I think the Rpi > ATmega line will work without conversion, does anyone know if the RPi can handle 5v? Or should I build/buy a level converter?
by hunternet93
Mon Apr 30, 2012 6:21 pm
Forum: Automation, sensing and robotics
Topic: Balancing Robot
Replies: 183
Views: 54652

Re: Balancing Robot

You could do this by removing unnecessary parts of the Pi's OS. For example, remove the graphical environment and stop all but the essential system services. Linux also supports configurable process priority, i.e your can tell Linux to give a certain program most of its attention.
by hunternet93
Mon Apr 30, 2012 6:06 pm
Forum: Troubleshooting
Topic: UART questions
Replies: 6
Views: 17943

Re: UART questions

A couple of questions about the on-board UART:

1. What voltage is it? I'm guessing 3.3v, but I'm not sure.

2. How do I access it from Linux? Can I just use /dev/ttywhatever or is more work required?
by hunternet93
Mon Apr 30, 2012 6:00 pm
Forum: Automation, sensing and robotics
Topic: RPi + Pololu 3pi + Python
Replies: 5
Views: 2066

Re: RPi + Pololu 3pi + Python

<t>I'm working on combining a Raspberry Pi with a Pololu 3pi robot. I can successfully control the bot from my computer over serial, and am working on a Python library. I plan to add WiFi, a camera, Bluetooth, and extra battery power to the mix (assuming the 3pi can carry all that!) The naming possi...

Go to advanced search