Higgins909 wrote:I started to question what is compatible with python?
pigpio says its got a C library, but has a python module?
The video I watched mentioned python and arduino, but having issues finding python in arduino.
adafruit seems to be python compatible?
Right now I'm also wondering if I can ever program python to take a live input from ssh or even do any of this over ssh?
or do I need a gui? I planed for it to be a remote use and use ssh and somehow have a python script that would take live input from my keyboard till I ctrl + c out. Like arrow keys on keyboard 1-9 to give different forward speeds, every left or right arrow would change steering servo by 2 deg or something, all without typing commands.
I am also just beginning with all that.
I am using
minicom -b 115200 -o -D /dev/ttyAMA0
via ssh on my Raspberry for the serial connection to the Arduino Spider board .
The Spider controller is just an Arduino Mega 2560.
The Arduino is connected to the motor controller.
Therefore I have defined a set of keyboard controls to control my robot remotely via WLAN.
E.g. up = increase speed
down = decrease speed
s = full stop
r = back
v = forward (I am speaking German, therefore (v)orwärts = forward, (r)ückwärts = back
w = actual PWM value , amperes drawn by motors, encoder counts
h = half speed
f = full speed
My plan is to pack Raspberry B+, Spider controller (which will do servo control also) and motor controller onto the robot
and then the only connection to the robot will be PC <----WLAN(UMTS?)--->Raspberrry.
With some tiny modifications I also managed to program the Spider controller on my Raspberry with arduino 1.0.1 .
The instructions here:
say that one has to disable serial communication but that was not necessary in my case.
I have minicom running and arduino 1.0.1 at the same time.
Sounds complicated but it is very easy:
PC/N900 as Handy <---WLAN + ssh ----> Raspberry B+ <----serial/USB for programming with arduino---> Spider Motor controller <-----> 4CH Motor controller <---> Dagu 5 Rover